|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.util.AbstractDisposable | +--gumbo.visualize.data.impl.swing.SwingDataProxy
A GraphicView intended for use as a non-spatial proxy for a displayable shape, such as for use by a Swing cell renderer (see JTree, JList). Includes capabilities for interaction feedback and global consistency management (see ConsistencyManager.getGlobalConsistencyManager()). Also includes support for automatically updating a graphic label if the associated data model's client data changes.
Constructor Summary | |
SwingDataProxy(PartView view)
Creates an instance. |
Method Summary | |
void |
clientDataChanged(java.lang.Object source,
DataModel target)
Default implementation: If getAutoLabel() is null or the client data is unknown, nothing happens; otherwise, calls getAutoLabel().clientDataChanged(), then updateFeedback(). |
protected ClientLabelGraphic |
getAutoLabel()
Called by the system to get this graphic view's label, which will be automatically updated if the associated data model's client data changes and is recognized (see clientDataChanged()). |
DataView |
getDataView()
Gets the data view implemented by this graphic view. |
java.lang.Object |
getGraphic()
Returns this object because no native graphic is involved since realization is handled by the whole view graphic. |
InteractorState |
getInteractorState()
Gets the interactor state value for this interactor. |
protected void |
implDispose()
Removes this from the consistency and data model managers, then disposes the super. |
protected SwingDataProxy |
initSwingDataProxy(LabelGraphic label)
Used by subclasses and serialization to initialize this object, including its label. |
void |
prepareGraphicPresence()
Default implementation: Does nothing. |
void |
realizeGraphicPresence()
Does nothing because realization is handled by the whole view graphic. |
protected void |
updateFeedback()
Called by the system to prepare and realize the graphic's interaction feedback according to the current interaction state. |
Methods inherited from class gumbo.util.AbstractDisposable |
dispose, isDisposed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gumbo.util.Disposable |
dispose, isDisposed |
Constructor Detail |
public SwingDataProxy(PartView view)
java.lang.IllegalStateException
- getGraphic() is not a JComponent.Method Detail |
protected final SwingDataProxy initSwingDataProxy(LabelGraphic label)
label
- Reference to the label. Null if none.
protected void updateFeedback()
protected final ClientLabelGraphic getAutoLabel()
public void clientDataChanged(java.lang.Object source, DataModel target)
clientDataChanged
in interface DataModelListener
source
- The source object sending the event. Never null.target
- The affected data model. Never null.public InteractorState getInteractorState()
Interactor
getInteractorState
in interface Interactor
public DataView getDataView()
GraphicView
getDataView
in interface GraphicView
public void prepareGraphicPresence()
prepareGraphicPresence
in interface GraphicPresence
public void realizeGraphicPresence()
realizeGraphicPresence
in interface GraphicPresence
public java.lang.Object getGraphic()
getGraphic
in interface Graphic
protected void implDispose()
implDispose
in class AbstractDisposable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |