org.apache.fop.fo.properties
Class ColorProperty
public class ColorProperty
Superclass 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.
ColorProperty
public ColorProperty(Color value)
Create a new ColorProperty with a given color.
value - the color to use.
ColorProperty
public ColorProperty(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
ColorUtil.parseColorString(String)
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
getObject
public Object getObject()
- getObject in interface Property
- this.colorType cast as an Object
toString
public String toString()
- toString in interface Property
java.lang.Object.toString()
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.