|
fop 0.90alpha1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fo.properties.Property
org.apache.fop.fo.properties.ColorTypeProperty
Superclass for properties that wrap ColorType values
Nested Class Summary | |
static class |
ColorTypeProperty.Maker
Inner class for creating instances of ColorTypeProperty |
Field Summary | |
protected float |
alpha
the alpha component (indicator of opaque-ness) 0.0 - 1.0; 0.0 is completely transparent; 1.0 is completely opaque see definition at http://java.sun.com/j2se/1.3/docs/api/java/awt/Color.html |
protected float |
blue
the blue component |
protected float |
green
the green component |
protected static java.lang.String[] |
NAMES
The names of the predefined colors |
protected float |
red
the red component |
protected static int[][] |
VALUES
The color values for the predefined colors |
Fields inherited from class org.apache.fop.fo.properties.Property |
log |
Constructor Summary | |
ColorTypeProperty(float red,
float green,
float blue)
Main constructor |
|
ColorTypeProperty(java.lang.String value)
Set the colour given a particular String specifying either a colour name or #RGB or #RRGGBB |
Method Summary | |
static int |
convertChannelToInteger(float floatValue)
|
float |
getAlpha()
Returns the alpha (degree of opaque-ness) component of the color. |
java.awt.Color |
getAWTColor()
Returns an AWT instance of this color |
float |
getBlue()
Returns the blue component of the color. |
ColorTypeProperty |
getColorType()
Can't convert to any other types |
float |
getGreen()
Returns the green component of the color. |
java.lang.Object |
getObject()
This method expects to be overridden by subclasses |
float |
getRed()
Returns the red component of the color. |
java.lang.String |
toString()
|
Methods inherited from class org.apache.fop.fo.properties.Property |
getCharacter, getCondLength, getEnum, getKeep, getLength, getLengthPair, getLengthRange, getList, getNCname, getNumber, getNumeric, getSpace, getSpecifiedValue, getString, isAuto, setSpecifiedValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected float red
protected float green
protected float blue
protected float alpha
protected static final java.lang.String[] NAMES
protected static final int[][] VALUES
Constructor Detail |
public ColorTypeProperty(float red, float green, float blue)
red
- red componentgreen
- green componentblue
- blue componentpublic ColorTypeProperty(java.lang.String value)
value
- RGB value as String to be parsedMethod Detail |
public float getBlue()
getBlue
in interface ColorType
public float getGreen()
getGreen
in interface ColorType
public float getRed()
getRed
in interface ColorType
public float getAlpha()
getAlpha
in interface ColorType
public java.awt.Color getAWTColor()
getAWTColor
in interface ColorType
public static int convertChannelToInteger(float floatValue)
floatValue
- value (between 0.0 and 1.0) of color channel
public java.lang.String toString()
toString
in class Property
Object.toString()
public ColorTypeProperty getColorType()
getColorType
in class Property
public java.lang.Object getObject()
Property
getObject
in class Property
|
fop 0.90alpha1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |