|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swt.graph.ViewScrollingController
This class gathers the logic behind the view scrolling of the .
Its main methods are SwtGraphPanel
and #adjustViewport(boolean, int, int, int). They respectively allow
adjusting the viewports when the selection changes on the sliders and to
update the sliders after changes have been made on the view.
updateSliders()
One must call the method when an instance
of destroy() is no longer needed.
ViewScrollingController
| Constructor Summary | |
ViewScrollingController(TENSlider sliderHorizontal,
TENSlider sliderVertical,
SwtGraphPanel graphPanel)
Initializes a instance with
the passed and their associated .
|
|
| Method Summary | |
void |
destroy()
Call this method when the instance of
is no longer needed. |
void |
updateSliders()
Method updating the sliders depending on the scrollbar values defined on the local . |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ViewScrollingController(TENSlider sliderHorizontal,
TENSlider sliderVertical,
SwtGraphPanel graphPanel)
Initializes a instance with
the passed ViewScrollingController and their associated TENSlider.
SwtGraphPanel
sliderHorizontal - The graph panel horizontal slidersliderVertical - The graph panel vertical slidergraphPanel - The SwtGraphPanel instances of this class control the view scrolling of.| Method Detail |
public void destroy()
Call this method when the instance of
is no longer needed. This routine performs the required clean-up, for instance
it unregister listeners set on the sliders.
ViewScrollingController
public void updateSliders()
Method updating the sliders depending on the scrollbar values defined on
the local . See VisualGraphView
and CompositeView.getHorizontalScrollbarValues().
CompositeView.getVerticalScrollbarValues()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||