|
fop 0.92beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.area.Trait.Color
Serializable ColorType implementation for the area tree.
Constructor Summary | |
Trait.Color(ColorType col)
Copy constructor |
|
Trait.Color(float r,
float g,
float b,
float a)
Creates a new Color instance |
Method Summary | |
boolean |
equals(java.lang.Object obj)
|
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. |
float |
getGreen()
Returns the green component of the color. |
float |
getRed()
Returns the red component of the color. |
int |
hashCode()
|
static ColorType |
makeSerializable(ColorType col)
Converts a given color to a serializable instance if necessary. |
java.lang.String |
toString()
|
static Trait.Color |
valueOf(java.lang.String s)
Returns a Color represtation of a string of the format "#RRGGBB". |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Trait.Color(float r, float g, float b, float a)
r
- the red componentg
- the green componentb
- the blue componenta
- the alpha componentpublic Trait.Color(ColorType col)
col
- the ColorType instance which shall be duplicatedMethod Detail |
public float getRed()
ColorType
getRed
in interface ColorType
ColorType.getRed()
public float getGreen()
ColorType
getGreen
in interface ColorType
ColorType.getGreen()
public float getBlue()
ColorType
getBlue
in interface ColorType
ColorType.getBlue()
public float getAlpha()
ColorType
getAlpha
in interface ColorType
ColorType.getAlpha()
public java.awt.Color getAWTColor()
ColorType
getAWTColor
in interface ColorType
ColorType.getAWTColor()
public static ColorType makeSerializable(ColorType col)
col
- the colorpublic int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public static Trait.Color valueOf(java.lang.String s)
s
- the stringpublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
fop 0.92beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |