|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdks.src.borderEditor.CBorder
public class CBorder
This class implement a border which can be saved in a XML format
date : 3 sept. 07
Constructor Summary | |
---|---|
CBorder(java.awt.Color color,
int width)
The Constructor. |
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)
Equals. |
java.awt.Color |
getColor()
Gets the color. |
java.awt.BasicStroke |
getStroke()
Gets the stroke. |
int |
getWidth()
Gets the width. |
int |
hashCode()
Hash code. |
boolean |
isVisible()
the visibility of the border. |
void |
removeChangeListener(javax.swing.event.ChangeListener listener)
Remove a ChangeListener |
void |
setColor(java.awt.Color color)
Sets the color. |
void |
setVisible(boolean visible)
the visibility of the border. |
void |
setWidth(int width)
Sets the width. |
java.lang.String |
toString()
|
void |
XMLload(org.jdom.Element root)
XMLload. |
void |
XMLsave(org.jdom.Element root)
XMLsave. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CBorder(java.awt.Color color, int width)
color
- the color of the borderwidth
- the width of the borderMethod Detail |
---|
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- the color of the borderpublic int getWidth()
public void setWidth(int width)
width
- the width of the borderpublic boolean isVisible()
public void setVisible(boolean visible)
visible
- the visibility of the borderpublic java.awt.BasicStroke getStroke()
public void XMLload(org.jdom.Element root) throws org.jdom.JDOMException
XMLload
in interface XMLWritable
root
- the XML DOM element used to load the properties of the border
org.jdom.JDOMException
- the JDOM exceptionXMLWritable.XMLload(org.jdom.Element)
public void XMLsave(org.jdom.Element root)
XMLsave
in interface XMLWritable
root
- the XML DOM element used to save the properties of the borderXMLWritable.XMLsave(org.jdom.Element)
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 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 |