|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--snap.adapter.TechnologyAdapter | +--snap.adapter.JavaTechnologyAdapter
Adapter between Snap's general interface to the interface specific for Java visualizations. This adapter makes the event multi-threaded by implementing a thread for event visualization. All events are queued and fired in FIFO manner. The adapter adds a "Load" action as a supported event. Any "Load" SnapEvents are converted into a call to the Snapable interface's load() method.
Constructor Summary | |
JavaTechnologyAdapter(snap.Snap snap,
snap.Snapable visualization)
Constructs the JavaTechnologyAdapter with a reference to the Java-based visualization that it will talk to. |
Method Summary | |
javax.swing.Icon |
getIcon()
Returns the component's Icon or tries to find a default Icon |
java.util.Enumeration |
getSupportedActions()
Returns the list of Actions supported by the visualization |
void |
load(snap.database.Query query)
Enqueues the Query to be loaded by the visualization |
void |
performSnapEvent(snap.SnapEvent event)
Enqueues the SnapEvent to be performed by the visualization |
void |
run()
Run's the JavaTechnologyAdapter in its own thread. |
void |
snapEventOccured(snap.SnapEvent e)
Enqueues the SnapEvent to be performed by Snap |
Methods inherited from class snap.adapter.TechnologyAdapter |
addSnapEventListener, getNode, removeSnapEventListener, setNode |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JavaTechnologyAdapter(snap.Snap snap, snap.Snapable visualization)
Method Detail |
public javax.swing.Icon getIcon()
getIcon
in class TechnologyAdapter
public void load(snap.database.Query query)
load
in class TechnologyAdapter
public void performSnapEvent(snap.SnapEvent event)
performSnapEvent
in class TechnologyAdapter
public void snapEventOccured(snap.SnapEvent e)
snapEventOccured
in interface SnapEventListener
public java.util.Enumeration getSupportedActions()
getSupportedActions
in class TechnologyAdapter
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |