|
|||||||||||
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 DataModelListener
source
- The source object sending the event. Never null.target
- The affected data model. Never null.public javax.swing.Icon getIcon()
LabelGraphic
getIcon
in interface LabelGraphic
public java.lang.String getText()
LabelGraphic
getText
in interface LabelGraphic
public void setIcon(javax.swing.Icon icon)
LabelGraphic
setIcon
in interface LabelGraphic
icon
- The new icon. None if null.public void setText(java.lang.String text)
LabelGraphic
setText
in interface LabelGraphic
text
- The new text. None if null.public java.lang.Object getGraphic()
Graphic
getGraphic
in interface Graphic
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |