com.aspose.pdf.operators

Class SetGray



  • public class SetGray
    extends SetColorOperator

    Set gray level for non-stroking operations.

    • Constructor Detail

      • SetGray

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

        Constructor for operator class.

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

        public SetGray(double gray)

        Constructor for writing program.

        Parameters:
        gray - The level of gray value.
    • Method Detail

      • getColor

        public Color getColor()

        Returns color specified by operator.

        Specified by:
        getColor in class SetColorOperator
        Returns:
        Color specified by operator.
      • 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 string represnetation of operator.

        Overrides:
        toString in class Operator
        Returns:
        String representation of operator.