SetRGBColorStroke

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

public class SetRGBColorStroke extends SetColorOperator

Class representing RG operator (set RGB color for stroking operators).

Constructors

Constructor Description
SetRGBColorStroke(int index, ICommand command) Constructor for operator class.
SetRGBColorStroke(double r, double g, double b) Constructor for writing program.
SetRGBColorStroke(Color color) Initializes operator with color.

Methods

Method Description
accept(IOperatorSelector visitor) Accepts visitor object to process operator.
equals(Object arg0)
getCMYKColor(double[] rgb, double[] cmykOut)
getClass()
getColor() Returns color specified by operator.
getCommand() Gets command
getCommandName() Gets operator name.
getIndex() Get Operator index in page operators list.
getParameters() Gets array of operator parameters.
hashCode()
isTextShowOperator(Operator op) Determines if the operator is operator which responsible for text output (Tj, TJ, etc)
notify()
notifyAll()
reset() For internal usage only
setIndex(int value) Set Operator index in page operators list.
toString() Returns text representation of operator.
toString(IPdfPrimitive primitive) Returns text representation of Pdf primitive (string, array, dictionary etc.) according to PDF specification.
wait()
wait(long arg0)
wait(long arg0, int arg1)

SetRGBColorStroke(int index, ICommand command)

public SetRGBColorStroke(int index, ICommand command)

Constructor for operator class.

Parameters:

Parameter Type Description
index int Index of operator.
command ICommand Operator command.

SetRGBColorStroke(double r, double g, double b)

public SetRGBColorStroke(double r, double g, double b)

Constructor for writing program.

Parameters:

Parameter Type Description
r double The level of red from 0.0 to 1.0
g double The level of green from 0.0 to 1.0
b double The level of blue from 0.0 to 1.0

SetRGBColorStroke(Color color)

public SetRGBColorStroke(Color color)

Initializes operator with color.

Parameters:

Parameter Type Description
color java.awt.Color java.awt.Color object

accept(IOperatorSelector visitor)

public void accept(IOperatorSelector visitor)

Accepts visitor object to process operator.

Parameters:

Parameter Type Description
visitor IOperatorSelector Visitor object.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

getCMYKColor(double[] rgb, double[] cmykOut)

public void getCMYKColor(double[] rgb, double[] cmykOut)

Parameters:

Parameter Type Description
rgb double[]
cmykOut double[]

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getColor()

public Color getColor()

Returns color specified by operator.

Returns: Color - Color specified by operator.

getCommand()

public ICommand getCommand()

Gets command

Returns: ICommand - ICommand object

getCommandName()

public String getCommandName()

Gets operator name.

Returns: java.lang.String - String value

getIndex()

public int getIndex()

Get Operator index in page operators list.

Returns: int - int value

getParameters()

public ArrayList<CommandParameter> getParameters()

Gets array of operator parameters.

Returns: java.util.ArrayList<com.aspose.pdf.engine.commondata.pagecontent.operators.commands.CommandParameter> - ArrayList of CommandParameter value

hashCode()

public native int hashCode()

Returns: int

isTextShowOperator(Operator op)

public static boolean isTextShowOperator(Operator op)

Determines if the operator is operator which responsible for text output (Tj, TJ, etc)

Parameters:

Parameter Type Description
op Operator Operator object

Returns: boolean - True if this is text output operator

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

reset()

public void reset()

For internal usage only

setIndex(int value)

public void setIndex(int value)

Set Operator index in page operators list.

Parameters:

Parameter Type Description
value int int value

toString()

public String toString()

Returns text representation of operator.

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

toString(IPdfPrimitive primitive)

public static String toString(IPdfPrimitive primitive)

Returns text representation of Pdf primitive (string, array, dictionary etc.) according to PDF specification.

Parameters:

Parameter Type Description
primitive IPdfPrimitive Primitive

Returns: java.lang.String - Text represetation of the primitive

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int