SetColorStroke

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

public class SetColorStroke extends BasicSetColorOperator

Class representing SC operator set color for stroking color operators.

Constructors

ConstructorDescription
SetColorStroke()Initializes operator.
SetColorStroke(int index, ICommand command)Constructor for operator class.
SetColorStroke(double g)Set color for stroking operators for DeviceGray, CalGray and Indexed color spaces.
SetColorStroke(double r, double g, double b)Set color for stroking operator for DeviceRGB, CalRGB, and Lab color spaces
SetColorStroke(double[] color)Constructor which allows to set color components.
SetColorStroke(double c, double m, double y, double k)Set color for stroking operator for CMYK color space

Methods

MethodDescription
getColor()Returns color specified by operator.
getC()Gets or sets the cyan component.
setC(double value)Gets or sets the cyan component.
getM()Gets or sets the magenta component.
setM(double value)Gets or sets the magenta component.
getY()Gets or sets the yellow component.
setY(double value)Gets or sets the yellow component.
getK()Gets or sets the black component.
setK(double value)Gets or sets the black component.
getR()Gets or sets the red component.
setR(double value)Gets or sets the red component.
getG()Gets or sets the green component.
setG(double value)Gets or sets the green component.
getB()Gets or sets the blue component.
setB(double value)Gets or sets the blue component.
accept(IOperatorSelector visitor)Accepts visitor object to process operator.

SetColorStroke()

public SetColorStroke()

Initializes operator.

SetColorStroke(int index, ICommand command)

public SetColorStroke(int index, ICommand command)

Constructor for operator class.

Parameters:

ParameterTypeDescription
indexintIndex of operator.
commandICommandOperator command.

SetColorStroke(double g)

public SetColorStroke(double g)

Set color for stroking operators for DeviceGray, CalGray and Indexed color spaces.

Parameters:

ParameterTypeDescription
gdoubleColor value.

SetColorStroke(double r, double g, double b)

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

Set color for stroking operator for DeviceRGB, CalRGB, and Lab color spaces

Parameters:

ParameterTypeDescription
rdoubleRed component.
gdoubleGreen component.
bdoubleBlue component.

SetColorStroke(double[] color)

public SetColorStroke(double[] color)

Constructor which allows to set color components.

Parameters:

ParameterTypeDescription
colordouble[]Array of color components.

SetColorStroke(double c, double m, double y, double k)

public SetColorStroke(double c, double m, double y, double k)

Set color for stroking operator for CMYK color space

Parameters:

ParameterTypeDescription
cdoubleCyan component.
mdoubleMagenta component.
ydoubleYellow component.
kdoubleBlack component.

getColor()

public Color getColor()

Returns color specified by operator.

Returns: Color - Color specified by operator.

getC()

public final double getC()

Gets or sets the cyan component.

Returns: double - doable value

setC(double value)

public final void setC(double value)

Gets or sets the cyan component.

Parameters:

ParameterTypeDescription
valuedoubledoable value

getM()

public final double getM()

Gets or sets the magenta component.

Returns: double - doable value

setM(double value)

public final void setM(double value)

Gets or sets the magenta component.

Parameters:

ParameterTypeDescription
valuedoubledoable value

getY()

public final double getY()

Gets or sets the yellow component.

Returns: double - doable value

setY(double value)

public final void setY(double value)

Gets or sets the yellow component.

Parameters:

ParameterTypeDescription
valuedoubledoable value

getK()

public final double getK()

Gets or sets the black component.

Returns: double - doable value

setK(double value)

public final void setK(double value)

Gets or sets the black component.

Parameters:

ParameterTypeDescription
valuedoubledoable value

getR()

public final double getR()

Gets or sets the red component.

Value: The level of red from 0.0 to 1.0

Returns: double - doable value

setR(double value)

public final void setR(double value)

Gets or sets the red component.

Value: The level of red from 0.0 to 1.0

Parameters:

ParameterTypeDescription
valuedoubledoable value

getG()

public final double getG()

Gets or sets the green component.

Value: The level of green from 0.0 to 1.0

Returns: double - doable value

setG(double value)

public final void setG(double value)

Gets or sets the green component.

Value: The level of green from 0.0 to 1.0

Parameters:

ParameterTypeDescription
valuedoubledouble value

getB()

public final double getB()

Gets or sets the blue component.

Value: The level of blue from 0.0 to 1.0

Returns: double - doable value

setB(double value)

public final void setB(double value)

Gets or sets the blue component.

Value: The level of blue from 0.0 to 1.0

Parameters:

ParameterTypeDescription
valuedoubledoable value

accept(IOperatorSelector visitor)

public void accept(IOperatorSelector visitor)

Accepts visitor object to process operator.

Parameters:

ParameterTypeDescription
visitorIOperatorSelectorVisitor object.