SetGrayStroke

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

public class SetGrayStroke extends SetColorOperator

Class representing gray level for stroking operations.

Constructors

ConstructorDescription
SetGrayStroke(int index, ICommand command)Constructor for operator class.
SetGrayStroke(double gray)Initializes operator with the specified color.

Methods

MethodDescription
getColor()Returns color specified by operator.
getGray()Gets or sets the level of gray value.
setGray(double value)Gets or sets the level of gray value.
accept(IOperatorSelector visitor)Accepts visitor object to process operator.
toString()Returns text representation of operator.

SetGrayStroke(int index, ICommand command)

public SetGrayStroke(int index, ICommand command)

Constructor for operator class.

Parameters:

ParameterTypeDescription
indexintIndex of operator.
commandICommandOperator command.

SetGrayStroke(double gray)

public SetGrayStroke(double gray)

Initializes operator with the specified color.

Parameters:

ParameterTypeDescription
graydoubleThe level of gray value.

getColor()

public Color getColor()

Returns color specified by operator.

Returns: Color - Color specified by operator.

getGray()

public final double getGray()

Gets or sets the level of gray value.

Returns: double - double value

setGray(double value)

public final void setGray(double value)

Gets or sets the level of gray value.

Parameters:

ParameterTypeDescription
valuedoubledouble value

accept(IOperatorSelector visitor)

public void accept(IOperatorSelector visitor)

Accepts visitor object to process operator.

Parameters:

ParameterTypeDescription
visitorIOperatorSelectorVisitor object.

toString()

public String toString()

Returns text representation of operator.

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