SetCharWidthBoundingBox

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

public class SetCharWidthBoundingBox extends Operator

Class representing d1 operator (set glyph and bounding box).

Constructors

ConstructorDescription
SetCharWidthBoundingBox(double wx, double wy, double llx, double lly, double urx, double ury)Initializes SetCharWidthBoundingBox operator.
SetCharWidthBoundingBox(int index, ICommand command)Constructor for operator class.

Methods

MethodDescription
getWx()Horizontal displacement of glyph.
getWy()Vertical displacement of glyph.
getLlx()Lower-left horizontal coordinate of bounding rectangle.
getLly()Lower-left vertical coordinate of bounding rectangle.
getUrx()Upper-right horizontal coordinate of bounding rectangle.
getUry()Upper-right vertical coordinate of bounding rectangle.
accept(IOperatorSelector visitor)Accepts visitor object to process operator.
fromCommand(ICommand command)
toCommand()
toString()Returns text representation of operator.

SetCharWidthBoundingBox(double wx, double wy, double llx, double lly, double urx, double ury)

public SetCharWidthBoundingBox(double wx, double wy, double llx, double lly, double urx, double ury)

Initializes SetCharWidthBoundingBox operator.

Parameters:

ParameterTypeDescription
wxdoubleDenotes the horizontal displacement in the glyph coordinate.
wydoubleDenotes the vertical displacement in the glyph coordinate. Shall be 0.
llxdoubleDenotes X coordinate of the lower-left corner.
llydoubleDenotes Y coordinate of the lower-left corner.
urxdoubleDenotes X coordinate of upper-right corner.
urydoubleDenotes Y coordinate of upper-right corner.

SetCharWidthBoundingBox(int index, ICommand command)

public SetCharWidthBoundingBox(int index, ICommand command)

Constructor for operator class.

Parameters:

ParameterTypeDescription
indexintIndex of operator.
commandICommandOperator command.

getWx()

public double getWx()

Horizontal displacement of glyph.

Returns: double - double value

getWy()

public double getWy()

Vertical displacement of glyph.

Returns: double - double value

getLlx()

public double getLlx()

Lower-left horizontal coordinate of bounding rectangle.

Returns: double - double value

getLly()

public double getLly()

Lower-left vertical coordinate of bounding rectangle.

Returns: double - double value

getUrx()

public double getUrx()

Upper-right horizontal coordinate of bounding rectangle.

Returns: double - double value

getUry()

public double getUry()

Upper-right vertical coordinate of bounding rectangle.

Returns: double - double value

accept(IOperatorSelector visitor)

public void accept(IOperatorSelector visitor)

Accepts visitor object to process operator.

Parameters:

ParameterTypeDescription
visitorIOperatorSelectorVisitor object.

fromCommand(ICommand command)

public void fromCommand(ICommand command)

Parameters:

ParameterTypeDescription
commandICommand

toCommand()

public ICommand toCommand()

Returns: ICommand

toString()

public String toString()

Returns text representation of operator.

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