org.apache.fop.fo.properties
Class ColorProperty
public final class ColorProperty
Class for properties that wrap Color values
protected Color | color - The color represented by this property.
|
getCharacter , getColor , getCondLength , getEnum , getKeep , getLength , getLengthPair , getLengthRange , getList , getNCname , getNumber , getNumeric , getObject , getSpace , getSpecifiedValue , getString , isAuto , setSpecifiedValue , toString |
color
protected final Color color
The color represented by this property.
equals
public boolean equals(Object o)
getColor
public Color getColor(FOUserAgent foUserAgent)
Returns an AWT instance of this color
- getColor in interface Property
foUserAgent
- FOP user agent
- float the AWT color represented by this ColorType instance
getColorProperty
public ColorProperty getColorProperty()
Can't convert to any other types
getInstance
public static ColorProperty getInstance(Color color)
Returns an instance of a color property given a color
getInstance
public static ColorProperty getInstance(FOUserAgent foUserAgent,
String value)
throws PropertyException
Set the color given a particular String. For a full List of supported
values please see ColorUtil.
foUserAgent
- FOP user agentvalue
- RGB value as String to be parsed
getObject
public Object getObject()
- getObject in interface Property
- this.colorType cast as an Object
hashCode
public int hashCode()
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.