|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdks.src.gradientEditor.CGradientColor
public class CGradientColor
The class implements a color which can be save in a XML format
date : 3 sept. 07
Constructor Summary | |
---|---|
CGradientColor(java.awt.Color color,
int position)
|
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener listener)
Add a ChangeListener which will notify when the object change |
int |
compareTo(CGradientColor color)
|
boolean |
equals(java.lang.Object obj)
|
java.awt.Color |
getColor()
|
int |
getPosition()
|
int |
hashCode()
|
void |
removeChangeListener(javax.swing.event.ChangeListener listener)
Remove a ChangeListener |
void |
setColor(java.awt.Color color)
|
void |
setPosition(int position)
|
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 CGradientColor(java.awt.Color color, int position)
color
- the color to useposition
- the position of the colorMethod Detail |
---|
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- the color to usepublic int getPosition()
public void setPosition(int position)
position
- the position of the colorpublic int compareTo(CGradientColor color)
compareTo
in interface java.lang.Comparable<CGradientColor>
Comparable.compareTo(java.lang.Object)
public void addChangeListener(javax.swing.event.ChangeListener listener)
Changeable
addChangeListener
in interface Changeable
listener
- the ChangeListener to addpublic void removeChangeListener(javax.swing.event.ChangeListener listener)
Changeable
removeChangeListener
in interface Changeable
listener
- the ChangeListener to removepublic void XMLload(org.jdom.Element root) throws org.jdom.JDOMException
XMLWritable
XMLload
in interface XMLWritable
root
- the XML Dom element used to save the properties of the color
org.jdom.JDOMException
XMLWritable.XMLload(org.jdom.Element)
public void XMLsave(org.jdom.Element root)
XMLWritable
XMLsave
in interface XMLWritable
root
- the XML DOM element used to load the properties of the colorXMLWritable.XMLsave(org.jdom.Element)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- 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 |