|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swing.graph.AbstractLayoutObserver
com.tensegrity.gui.swing.graph.SwingGraphPanelLayoutObserver
This class manages redrawing for layout animation. It should be used in the
case where the associated GraphPanel is not embeded within the
skeleton application framework.
It is used by the GraphLayoutDialog and in other places where graph-layout is initiated.
| Field Summary |
| Fields inherited from class com.tensegrity.gui.swing.graph.AbstractLayoutObserver |
ADJUST_VIEWPORT_ACCORDING_TO_GRAPH, ADJUST_VIEWPORT_LEFTTOP, stepcounter, suppressFilling, suppressNavigatorAnimation, suppressText, suppressZoomToFit, updatesteps, viewportadjustment |
| Constructor Summary | |
SwingGraphPanelLayoutObserver(GraphPanel graphpanel)
Initializes this instance.
|
|
SwingGraphPanelLayoutObserver(GraphPanel graphpanel,
int updatesteps)
Initializes this instance.
|
|
SwingGraphPanelLayoutObserver(GraphPanel graphpanel,
int updatesteps,
int viewportadjustment)
Constructs a SwingGraphPanelLayoutObserver instance
associated with the given GraphPanel reference for managing
repainting during layout animation. |
|
| Method Summary | |
void |
update(Observable observable,
java.lang.Object arg)
This callback is invoked if the layoutservice returned STATUS_PARTIAL. |
| Methods inherited from class com.tensegrity.gui.swing.graph.AbstractLayoutObserver |
getSuppressFilling, getSuppressNavigatorAnimation, getSuppressText, getSuppressZoomToFit, prepare, setSuppressFilling, setSuppressNavigatorAnimation, setSuppressText, setSuppressZoomToFit, unprepare, updateVisualGraphView |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwingGraphPanelLayoutObserver(GraphPanel graphpanel)
Initializes this instance.
SimpleSwingLayoutObserver
graphpanel - the graph panel to update during the layout.
public SwingGraphPanelLayoutObserver(GraphPanel graphpanel,
int updatesteps)
Initializes this instance.
SimpleSwingLayoutObserver
graphpanel - the graph panel to update during the layout.updatesteps - repaint only every updatesteps.
public SwingGraphPanelLayoutObserver(GraphPanel graphpanel,
int updatesteps,
int viewportadjustment)
SwingGraphPanelLayoutObserver instance
associated with the given GraphPanel reference for managing
repainting during layout animation.
graphpanel - the graph panel to update during the layoutupdatesteps - repaint only every updatesteps.viewportadjustment - constant that defines the view's viewport
adjustment mode| Method Detail |
public void update(Observable observable,
java.lang.Object arg)
observable - the source of the call.arg - additional information.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||