|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--gumbo.visualize.data.client.ClientLabelGraphic
A wrapper for a label graphic that allows updates of the label according to client data. The identity (equals(), hashCode()) is that of the target.
| Constructor Summary | |
ClientLabelGraphic(LabelGraphic target)
Creates an instance with the specified wrapper target. |
|
| Method Summary | |
boolean |
clientDataChanged(java.lang.Object clientData)
Updates this label according to the client data. |
void |
clientDataChanged(java.lang.Object source,
DataModel target)
Called after a change occurs in the client data of the target data model, such as when a new (possibly null) client data object is set or the state of the current client data object changes. |
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
getGraphic()
Returns the target graphic object represented by this proxy interface, which may be needed to take advantage of native graphic capabilities. |
javax.swing.Icon |
getIcon()
Gets the label text. |
java.lang.String |
getText()
Gets the label text. |
int |
hashCode()
|
void |
setIcon(javax.swing.Icon icon)
Sets the label icon. |
void |
setText(java.lang.String text)
Sets the label text. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ClientLabelGraphic(LabelGraphic target)
target - Reference to the target. Never null.| Method Detail |
public boolean clientDataChanged(java.lang.Object clientData)
clientData - The new client data. None if null.
public void clientDataChanged(java.lang.Object source,
DataModel target)
DataModelListener
clientDataChanged in interface DataModelListenersource - The source object sending the event. Never null.target - The affected data model. Never null.public javax.swing.Icon getIcon()
LabelGraphic
getIcon in interface LabelGraphicpublic java.lang.String getText()
LabelGraphic
getText in interface LabelGraphicpublic void setIcon(javax.swing.Icon icon)
LabelGraphic
setIcon in interface LabelGraphicicon - The new icon. None if null.public void setText(java.lang.String text)
LabelGraphic
setText in interface LabelGraphictext - The new text. None if null.public java.lang.Object getGraphic()
Graphic
getGraphic in interface Graphicpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||