public final class ColorProperty extends Property
| Modifier and Type | Class and Description |
|---|---|
static class |
ColorProperty.Maker
Inner class for creating instances of ColorTypeProperty
|
| Modifier and Type | Method and Description |
|---|---|
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(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() |
getCharacter, getCondLength, getEnum, getKeep, getLength, getLengthPair, getLengthRange, getList, getNCname, getNumber, getNumeric, getSpace, getSpecifiedValue, getString, isAuto, setSpecifiedValuepublic static ColorProperty getInstance(FOUserAgent foUserAgent, java.lang.String value) throws PropertyException
foUserAgent - FOP user agentvalue - RGB value as String to be parsedPropertyException - if the value can't be parsedColorUtil.parseColorString(FOUserAgent, String)public java.awt.Color getColor(FOUserAgent foUserAgent)
public ColorProperty getColorProperty()
public java.lang.Object getObject()
Propertypublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.