Color Class Documentation
classColorNamespace:com::datalogics::PDFL
Detailed Description
A color specified by values appropriate for its color space. The values that are offered range from 0 to 1.0 for red, green, and blue (RGB) or cyan, magenta, yellow, and black (CYMK).
Referenced by
Uses types
Constructor & Destructor Documentation
Color
Color(ColorSpacecolorSpace, java.util.List< Double >values)Parameters
colorSpace: ColorSpacethe color space in which to create the color
values: java.util.List< Double >the values to place into the color
Create a new color in an arbitrary color space. The number of values passed must match the number of values in the color space.
Color
Color(doublec, doublem, doubley, doublek)Parameters
c: doublethe cyan color value for the new color (0.0 - 1.0)
m: doublethe magenta color value for the new color (0.0 - 1.0)
y: doublethe yellow color value for the new color (0.0 - 1.0)
k: doublethe black color value for the new color (0.0 - 1.0)
Create a new color in the DeviceCMYK colorspace with the specified value.
Color
Color(doublegrey)Parameters
grey: doublethe grayscale color value for the new color (0.0 - 1.0)
Create a new color in the DeviceGray colorspace with the specified value.
Color
Color(doubler, doubleg, doubleb)Parameters
r: doublethe red color value for the new color (0.0 - 1.0)
g: doublethe green color value for the new color (0.0 - 1.0)
b: doublethe blue color value for the new color (0.0 - 1.0)
Create a new color in the DeviceRGB colorspace with the specified value.
Color
Color(Patternpattern)Parameters
pattern: PatternThe pattern to turn into a color
Create a new color in the pattern color space.
Member Function Documentation
DisposeChildren
voidDisposeChildren()Returns:
void[static initializer]
static void[static initializer]()colorFromAWTColor
static ColorcolorFromAWTColor(java.awt.Colorc)Parameters
c: java.awt.Colorthe java.awt.Color object to use as a source
Returns:
ColorCreate a Color from a standard java.awt.Color object.
delete
synchronized voiddelete(Booleandisposing)Parameters
disposing: Boolean
Returns:
synchronized voiddelete
synchronized voiddelete()Returns:
synchronized voidequals
booleanequals(Objectrhs)Parameters
rhs: Object
Returns:
booleanfinalize
voidfinalize()Returns:
voidgetPattern
PatterngetPattern()Returns:
PatternThe pattern of the color
getSpace
ColorSpacegetSpace()Returns:
ColorSpaceThe color space of the color
getValue
java.util.List< Double >getValue()Returns:
java.util.List< Double >The values of the color. Not valid for pattern-based colors.
sameTypeEquals
booleansameTypeEquals(Colorarg0)Parameters
arg0: Color
Returns:
booleantoString
StringtoString()Returns:
Stringa string representing the color.