com.aspose.pdf.operators

Class SetGrayStroke



  • public class SetGrayStroke
    extends SetColorOperator

    Class representing gray level for stroking operations.

    • Constructor Detail

      • SetGrayStroke

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

        Constructor for operator class.

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

        public SetGrayStroke(double gray)

        Initializes operator with the specified color.

        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 text representation of operator.

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