daoc.editor.model.properties
Class PointProperty

java.lang.Object
  extended bydaoc.editor.model.properties.Property
      extended bydaoc.editor.model.properties.PointProperty
All Implemented Interfaces:
java.io.Serializable

public class PointProperty
extends Property

A two component point (x, y). Also used for texture coordinates and sizes.

See Also:
Serialized Form

Constructor Summary
PointProperty(org.w3c.dom.Element p, java.lang.String child)
           
PointProperty(int x, int y)
           
PointProperty(java.lang.String name)
           
 
Method Summary
 int getX()
           
 int getY()
           
 void setX(int a)
           
 void setY(int b)
           
 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

PointProperty

public PointProperty(java.lang.String name)

PointProperty

public PointProperty(org.w3c.dom.Element p,
                     java.lang.String child)

PointProperty

public PointProperty(int x,
                     int y)
Method Detail

getX

public int getX()

getY

public int getY()

setX

public void setX(int a)

setY

public void setY(int b)

writeXML

public void writeXML(java.io.Writer fout,
                     int indent)
              throws java.io.IOException
Specified by:
writeXML in class Property
Throws:
java.io.IOException