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(Object o) |
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,
String value)
Set the color given a particular String.
|
Object |
getObject()
This method expects to be overridden by subclasses
|
int |
hashCode() |
String |
toString() |
getCharacter, getCondLength, getEnum, getKeep, getLength, getLengthPair, getLengthRange, getList, getNCname, getNumber, getNumeric, getSpace, getSpecifiedValue, getString, isAuto, setSpecifiedValuepublic static ColorProperty getInstance(FOUserAgent foUserAgent, 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 Color getColor(FOUserAgent foUserAgent)
public ColorProperty getColorProperty()
public Object getObject()
PropertyCopyright © 2025 Apache Software Foundation. All rights reserved.