com.aspose.pdf.operators

Class SetCharWidth



  • public class SetCharWidth
    extends Operator

    Class representing d0 operator (set glyph width).

    • Constructor Detail

      • SetCharWidth

        public SetCharWidth(double wx,
                            double wy)

        Constructor.

        Parameters:
        wx - Horizontal displacement of glyph.
        wy - Vertical displacement of glyph.
      • SetCharWidth

        public SetCharWidth(int index,
                            com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)

        Constructor for operator class.

        Parameters:
        index - Index of operator.
        command - Operator command.
    • Method Detail

      • getWx

        public double getWx()

        Horizontal displacement of glyph coordinate.

        Returns:
        double value
      • getWy

        public double getWy()

        Vertical displacement of glyph coordinate.

        Returns:
        double value
      • accept

        public void accept(IOperatorSelector visitor)

        Accepts visitor object to process operator.

        Specified by:
        accept in class Operator
        Parameters:
        visitor - Visitor object.
      • toCommand

        public com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand toCommand()
        Description copied from class: Operator
        For internal usage only!

        saves operator to command

        Returns:
        ICommand value ICommand object
      • fromCommand

        public void fromCommand(com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
        Description copied from class: Operator
        For internal usage only!

        Loads operator from command

        Parameters:
        command - ICommand value
      • toString

        public String toString()

        Returns text representation of operator.

        Overrides:
        toString in class Operator
        Returns:
        Text representation of representation