daoc.editor.model.properties
Class ColorProperty
java.lang.Object
daoc.editor.model.properties.Property
daoc.editor.model.properties.ColorProperty
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ColorPropProperty
- public class ColorProperty
- extends Property
A four component color r, g, b, a.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorProperty
public ColorProperty(java.lang.String name)
ColorProperty
public ColorProperty(org.w3c.dom.Element p,
java.lang.String child)
getR
public int getR()
getG
public int getG()
getB
public int getB()
getA
public int getA()
getColor
public java.awt.Color getColor()
setColor
public void setColor(int r,
int g,
int b,
int a)
writeXML
public void writeXML(java.io.Writer fout,
int indent)
throws java.io.IOException
- Specified by:
writeXML in class Property
- Throws:
java.io.IOException