SetGrayStroke
Contents
[
Hide
]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
Constructor | Description |
---|---|
SetGrayStroke(int index, ICommand command) | Constructor for operator class. |
SetGrayStroke(double gray) | Initializes operator with the specified color. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
index | int | Index of operator. |
command | ICommand | Operator command. |
SetGrayStroke(double gray)
public SetGrayStroke(double gray)
Initializes operator with the specified color.
Parameters:
Parameter | Type | Description |
---|---|---|
gray | double | The 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:
Parameter | Type | Description |
---|---|---|
value | double | double value |
accept(IOperatorSelector visitor)
public void accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
Parameters:
Parameter | Type | Description |
---|---|---|
visitor | IOperatorSelector | Visitor object. |
toString()
public String toString()
Returns text representation of operator.
Returns: java.lang.String - Text representation of operator.