|
|||||||||||
| 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.swt.graph.SwtGraphPanelLayoutObserver
Instances of SwtGraphPanelLayoutObserver are used in order to manage
redrawing for layout animation in the SWT context.
LayoutController by means of the
LayoutController.addObserver(Observer)
method before the layout is applied.
| 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 | |
SwtGraphPanelLayoutObserver(GraphPanel graphpanel)
Initializes this instance with
AbstractLayoutObserver.ADJUST_VIEWPORT_LEFTTOP viewports adjustment.
|
|
SwtGraphPanelLayoutObserver(GraphPanel graphpanel,
int updatesteps)
Initializes this instance with
AbstractLayoutObserver.ADJUST_VIEWPORT_LEFTTOP viewports adjustment.
|
|
SwtGraphPanelLayoutObserver(GraphPanel graphpanel,
int updatesteps,
int viewportadjustment)
Initializes this instance.
|
|
| 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 SwtGraphPanelLayoutObserver(GraphPanel graphpanel)
Initializes this instance with
SwtGraphPanelLayoutObserverAbstractLayoutObserver.ADJUST_VIEWPORT_LEFTTOP viewports adjustment.
graphpanel - the graph panel to update during the layout.
public SwtGraphPanelLayoutObserver(GraphPanel graphpanel,
int updatesteps)
Initializes this instance with
SwtGraphPanelLayoutObserverAbstractLayoutObserver.ADJUST_VIEWPORT_LEFTTOP viewports adjustment.
graphpanel - the graph panel to update during the layout.updatesteps - repaint only every updatesteps.
public SwtGraphPanelLayoutObserver(GraphPanel graphpanel,
int updatesteps,
int viewportadjustment)
Initializes this instance.
SwtGraphPanelLayoutObserver
graphpanel - the graph panel to update during the layout.updatesteps - repaint only every updatesteps.viewportadjustment - constant that defines the view's viewport.
One of AbstractLayoutObserver.ADJUST_VIEWPORT_LEFTTOP or
AbstractLayoutObserver.ADJUST_VIEWPORT_ACCORDING_TO_GRAPH| 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 | ||||||||||