|
fop 0.95 | |||||||||
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.ColorProperty
public final class ColorProperty
Class for properties that wrap Color values
Nested Class Summary | |
---|---|
static class |
ColorProperty.Maker
Inner class for creating instances of ColorTypeProperty |
Field Summary | |
---|---|
protected java.awt.Color |
color
The color represented by this property. |
Fields inherited from class org.apache.fop.fo.properties.Property |
---|
log |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.awt.Color |
getColor(FOUserAgent foUserAgent)
Returns an AWT instance of this color |
ColorProperty |
getColorProperty()
Can't convert to any other types |
static ColorProperty |
getInstance(java.awt.Color color)
Returns an instance of a color property given a color |
static ColorProperty |
getInstance(FOUserAgent foUserAgent,
java.lang.String value)
Set the color given a particular String. |
java.lang.Object |
getObject()
This method expects to be overridden by subclasses |
int |
hashCode()
|
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, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final java.awt.Color color
Method Detail |
---|
public static ColorProperty getInstance(FOUserAgent foUserAgent, java.lang.String value) throws PropertyException
foUserAgent
- FOP user agentvalue
- RGB value as String to be parsed
PropertyException
- if the value can't be parsedColorUtil.parseColorString(FOUserAgent, String)
public static ColorProperty getInstance(java.awt.Color color)
color
- the color value
public java.awt.Color getColor(FOUserAgent foUserAgent)
getColor
in class Property
foUserAgent
- FOP user agent
public java.lang.String toString()
toString
in class Property
public ColorProperty getColorProperty()
public java.lang.Object getObject()
Property
getObject
in class Property
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |