|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.beans.graph.DefaultGraphNode
The position if the node should be displayed. If no position has been defined then the position is set to (0,0).
Field Summary | |
private static String |
CLASSNAME
|
private String |
description
|
static String |
DESCRIPTION
Label for the attribute. |
private String |
icon
|
static String |
ICON
Label for the attribute. |
private String |
key
|
static String |
KEY
Label for the attribute. |
static String |
LISTENER_LIST
Label for the attribute. |
private EventListenerList |
listenerList
|
private Point |
position
|
static String |
POSITION
Label for the attribute. |
private static String |
RESOURCE
|
static String |
SELECTED_ICON
Label for the attribute. |
private String |
selectedIcon
|
(package private) static long |
serialVersionUID
|
private static String |
versionID
|
Constructor Summary | |
DefaultGraphNode()
|
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
private void |
descriptionValidate(String a_Description)
|
private void |
fireGraphNodeChanged(String propertyName,
Object oldValue,
Object newValue)
|
String |
getDescription()
Gets the value of the attribute: DESCRIPTION. |
String |
getIcon()
Gets the value of the attribute: ICON. |
String |
getKey()
Gets the value of the attribute: KEY. |
Point |
getPosition()
Gets the value of the attribute: POSITION. |
String |
getSelectedIcon()
Gets the value of the attribute: SELECTED_ICON. |
private void |
iconValidate(String a_Icon)
|
private void |
keyValidate(String a_Key)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private void |
readOldVersion(ObjectInput input,
long readSerialVersionUID)
Reads the non-transient fields of this class from an external source, which is not the current version. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
|
private void |
selectedIconValidate(String a_SelectedIcon)
|
void |
setDescription(String a_Description)
Sets the value of the attribute: DESCRIPTION. |
void |
setIcon(String a_Icon)
Sets the value of the attribute: ICON. |
void |
setKey(String a_Key)
Sets the value of the attribute: KEY. |
void |
setPosition(int x,
int y)
|
void |
setPosition(Point a_Position)
Sets the value of the attribute: POSITION. |
void |
setSelectedIcon(String a_SelectedIcon)
Sets the value of the attribute: SELECTED_ICON. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String CLASSNAME
private static final String versionID
static final long serialVersionUID
public static final String ICON
private String icon
public static final String SELECTED_ICON
private String selectedIcon
public static final String POSITION
private Point position
public static final String DESCRIPTION
private String description
public static final String KEY
private String key
public static final String LISTENER_LIST
private EventListenerList listenerList
private static final String RESOURCE
Constructor Detail |
public DefaultGraphNode()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
private void readOldVersion(ObjectInput input, long readSerialVersionUID) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
-
IOException
ClassNotFoundException
public String getIcon()
getIcon
in interface GraphNode
public void setIcon(String a_Icon) throws WTPropertyVetoException
a_Icon
-
WTPropertyVetoException
private void iconValidate(String a_Icon) throws WTPropertyVetoException
a_Icon
-
WTPropertyVetoException
public String getSelectedIcon()
getSelectedIcon
in interface GraphNode
public void setSelectedIcon(String a_SelectedIcon) throws WTPropertyVetoException
a_SelectedIcon
-
WTPropertyVetoException
private void selectedIconValidate(String a_SelectedIcon) throws WTPropertyVetoException
a_SelectedIcon
-
WTPropertyVetoException
public Point getPosition()
getPosition
in interface GraphNode
public void setPosition(Point a_Position)
a_Position
- public String getDescription()
getDescription
in interface GraphNode
public void setDescription(String a_Description) throws WTPropertyVetoException
a_Description
-
WTPropertyVetoException
private void descriptionValidate(String a_Description) throws WTPropertyVetoException
a_Description
-
WTPropertyVetoException
public String getKey()
getKey
in interface GraphNode
public void setKey(String a_Key) throws WTPropertyVetoException
a_Key
-
WTPropertyVetoException
private void keyValidate(String a_Key) throws WTPropertyVetoException
a_Key
-
WTPropertyVetoException
private void fireGraphNodeChanged(String propertyName, Object oldValue, Object newValue)
propertyName
- oldValue
- newValue
- public void setPosition(int x, int y)
setPosition
in interface GraphNode
x
- y
- public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in interface GraphNode
listener
- public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface GraphNode
listener
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |