|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdks.src.warpEditor.CPoint
public class CPoint
This class implements a point which can be saved in a XML format
date : 5 sept. 07
| Constructor Summary | |
|---|---|
CPoint()
|
|
CPoint(int transformationX,
int transformationY)
|
|
| Method Summary | |
|---|---|
void |
addChangeListener(javax.swing.event.ChangeListener listener)
Add a ChangeListener which will notify when the object change |
boolean |
equals(java.lang.Object obj)
|
int |
getTransformationX()
|
int |
getTransformationY()
|
int |
hashCode()
|
void |
removeChangeListener(javax.swing.event.ChangeListener listener)
Remove a ChangeListener |
void |
setTransformationX(int transformationX)
|
void |
setTransformationY(int transformationY)
|
java.lang.String |
toString()
|
void |
XMLload(org.jdom.Element root)
Construct the object with the data contains in the root DOM Element |
void |
XMLsave(org.jdom.Element root)
Generate a DOM Element containing the children make by the object |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CPoint()
public CPoint(int transformationX,
int transformationY)
| Method Detail |
|---|
public int getTransformationX()
public void setTransformationX(int transformationX)
transformationX - the transformation in the X axispublic int getTransformationY()
public void setTransformationY(int transformationY)
transformationY - the transformation in the Y axispublic void XMLload(org.jdom.Element root)
XMLWritable
XMLload in interface XMLWritableroot - the XML DOM Element used to load the point propertiesXMLWritable.XMLload(org.jdom.Element)public void XMLsave(org.jdom.Element root)
XMLWritable
XMLsave in interface XMLWritableroot - the XML DOM Element used to save the point propertiesXMLWritable.XMLsave(org.jdom.Element)public void addChangeListener(javax.swing.event.ChangeListener listener)
Changeable
addChangeListener in interface Changeablelistener - The listener to add which is invoked when the position of the point changeCListenerDelegate.addListener(java.lang.Object)public void removeChangeListener(javax.swing.event.ChangeListener listener)
Changeable
removeChangeListener in interface Changeablelistener - The listener to removeCListenerDelegate.removeListener(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare
Object.equals(java.lang.Object)public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||