public static class Operator.SetColor extends Operator.BasicSetColorOperator
Represents class for sc operator (set color for non-stroknig operations).
Operator.BasicSetColorAndPatternOperator, Operator.BasicSetColorOperator, Operator.BDC, Operator.BI, Operator.BlockTextOperator, Operator.BMC, Operator.BT, Operator.BX, Operator.Clip, Operator.ClosePath, Operator.ClosePathEOFillStroke, Operator.ClosePathFillStroke, Operator.ClosePathStroke, Operator.ConcatenateMatrix, Operator.CurveTo, Operator.CurveTo1, Operator.CurveTo2, Operator.Do, Operator.DP, Operator.EI, Operator.EMC, Operator.EndPath, Operator.EOClip, Operator.EOFill, Operator.EOFillStroke, Operator.ET, Operator.EX, Operator.Fill, Operator.FillStroke, Operator.GlyphPosition, Operator.GRestore, Operator.GS, Operator.GSave, Operator.ID, Operator.LineTo, Operator.MoveTextPosition, Operator.MoveTextPositionSetLeading, Operator.MoveTo, Operator.MoveToNextLine, Operator.MoveToNextLineShowText, Operator.MP, Operator.ObsoleteFill, Operator.Re, Operator.SelectFont, Operator.SetAdvancedColor, Operator.SetAdvancedColorStroke, Operator.SetCharacterSpacing, Operator.SetCharWidth, Operator.SetCharWidthBoundingBox, Operator.SetCMYKColor, Operator.SetCMYKColorStroke, Operator.SetColor, Operator.SetColorOperator, Operator.SetColorRenderingIntent, Operator.SetColorSpace, Operator.SetColorSpaceStroke, Operator.SetColorStroke, Operator.SetDash, Operator.SetFlat, Operator.SetGlyphsPositionShowText, Operator.SetGray, Operator.SetGrayStroke, Operator.SetHorizontalTextScaling, Operator.SetLineCap, Operator.SetLineJoin, Operator.SetLineWidth, Operator.SetMiterLimit, Operator.SetRGBColor, Operator.SetRGBColorStroke, Operator.SetSpacingMoveToNextLineShowText, Operator.SetTextLeading, Operator.SetTextMatrix, Operator.SetTextRenderingMode, Operator.SetTextRise, Operator.SetWordSpacing, Operator.ShFill, Operator.ShowText, Operator.Stroke, Operator.TextOperator, Operator.TextPlaceOperator, Operator.TextShowOperator, Operator.TextStateOperator
Constructor and Description |
---|
SetColor()
Initializes operator.
|
SetColor(double g)
Set color for stroking operators for DeviceGrey, CalGrey and Indexed color spaces.
|
SetColor(double[] color)
Constructor which allows to specify color components.
|
SetColor(double r,
double g,
double b)
Set color for stroking operator for DeviceRGB, CalRGB, and Lab color spaces
|
SetColor(double c,
double m,
double y,
double k)
Set color for non-stroking operator for CMYK colro space
|
Modifier and Type | Method and Description |
---|---|
void |
accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
|
Color |
getColor()
Returns color specified by the operator.
|
String |
toString()
String represenation.
|
getB, getC, getColorArray, getG, getGrey, getK, getM, getR, getY
clear, getCommand, getCommandName, getIndex, getParameters, isTextShowOperator, reset, setIndex
public SetColor()
Initializes operator.
public SetColor(double g)
Set color for stroking operators for DeviceGrey, CalGrey and Indexed color spaces.
g
- Color value.public SetColor(double r, double g, double b)
Set color for stroking operator for DeviceRGB, CalRGB, and Lab color spaces
r
- Red component.g
- Green component.b
- Blue component.public SetColor(double c, double m, double y, double k)
Set color for non-stroking operator for CMYK colro space
c
- Cyan component.m
- Magenta component.y
- Yellow component.k
- Black component.public SetColor(double[] color)
Constructor which allows to specify color components.
color
- Array of color components.public Color getColor()
Returns color specified by the operator.
getColor
in class Operator.SetColorOperator
public void accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
Copyright © 2017 Aspose. All Rights Reserved.