daoc.editor.model.properties
Class ColorProperty

java.lang.Object
  extended bydaoc.editor.model.properties.Property
      extended bydaoc.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

Constructor Summary
ColorProperty(org.w3c.dom.Element p, java.lang.String child)
           
ColorProperty(java.lang.String name)
           
 
Method Summary
 int getA()
           
 int getB()
           
 java.awt.Color getColor()
           
 int getG()
           
 int getR()
           
 void setColor(int r, int g, int b, int a)
           
 void writeXML(java.io.Writer fout, int indent)
           
 
Methods inherited from class daoc.editor.model.properties.Property
addUpdateListener, getName, removeUpdateListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorProperty

public ColorProperty(java.lang.String name)

ColorProperty

public ColorProperty(org.w3c.dom.Element p,
                     java.lang.String child)
Method Detail

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