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 | Field and Description |
---|---|
protected java.awt.Color |
color
The color represented by this property.
|
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, setSpecifiedValue
public 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()
Property
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.