com.aspose.pdf.operators

Class Do



  • public class Do
    extends Operator

    Class representing Do operator (Invoke XObject).

    • Constructor Detail

      • Do

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

        Constructor for operator class.

        Parameters:
        index - Index of operator.
        command - Operator command.
      • Do

        public Do(String name)

        Constructs new Do operator.

        Parameters:
        name - Name of invoked XObject.
      • Do

        public Do()

        Constructs new Do operator. Used for retrieving all Do operators, i.e. without checking their argument names.

    • Method Detail

      • getName

        public String getName()

        Get name of XObject argument of the operator.

        Returns:
        String value
      • setName

        public void setName(String value)

        Set name of XObject argument of the operator.

        Parameters:
        value - String value
      • accept

        public void accept(IOperatorSelector visitor)

        Accepts visitor object to process operator.

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

        public String toString()

        Returns text representation of operator.

        Overrides:
        toString in class Operator
        Returns:
        Text representation of operator.
      • 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