SetCharWidth

Inheritance: java.lang.Object, com.aspose.pdf.Operator

public class SetCharWidth extends Operator

Class representing d0 operator (set glyph width).

Constructors

ConstructorDescription
SetCharWidth(double wx, double wy)Constructor.
SetCharWidth(int index, ICommand command)Constructor for operator class.

Methods

MethodDescription
getWx()Horizontal displacement of glyph coordinate.
getWy()Vertical displacement of glyph coordinate.
accept(IOperatorSelector visitor)Accepts visitor object to process operator.
toCommand()
fromCommand(ICommand command)
toString()Returns text representation of operator.

SetCharWidth(double wx, double wy)

public SetCharWidth(double wx, double wy)

Constructor.

Parameters:

ParameterTypeDescription
wxdoubleHorizontal displacement of glyph.
wydoubleVertical displacement of glyph.

SetCharWidth(int index, ICommand command)

public SetCharWidth(int index, ICommand command)

Constructor for operator class.

Parameters:

ParameterTypeDescription
indexintIndex of operator.
commandICommandOperator command.

getWx()

public double getWx()

Horizontal displacement of glyph coordinate.

Returns: double - double value

getWy()

public double getWy()

Vertical displacement of glyph coordinate.

Returns: double - double value

accept(IOperatorSelector visitor)

public void accept(IOperatorSelector visitor)

Accepts visitor object to process operator.

Parameters:

ParameterTypeDescription
visitorIOperatorSelectorVisitor object.

toCommand()

public ICommand toCommand()

Returns: ICommand

fromCommand(ICommand command)

public void fromCommand(ICommand command)

Parameters:

ParameterTypeDescription
commandICommand

toString()

public String toString()

Returns text representation of operator.

Returns: java.lang.String - Text representation of representation