|
org.netbeans.api.visual 2.10 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.visual.widget.BirdViewController
public final class BirdViewController
This class controls a bird view created for a specific scene. The bird is tracking mouse-cursor over the main scene view.
You can specify a separate zoom-factor and you can enable and disable it by calling show
and hide
methods.
When a bird view is enabled then it consumes all events of a main scene view therefore you cannot do anything except watch the scene with bird view.
Method Summary | |
---|---|
void |
hide()
Disables the bird view. |
void |
setWindowSize(Dimension size)
Sets a size of the bird view window. |
void |
setZoomFactor(double zoomFactor)
Sets a zoom factor of the bird view. |
void |
show()
Enables the bird view. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setZoomFactor(double zoomFactor)
zoomFactor
- the zoom factorpublic void setWindowSize(Dimension size)
size
- the window sizepublic void show()
Note: Has to be invoked after Scene.createView
method.
Note: An user has to initially move cursor over the visible area of the main scene view to show the window up for the first time after the method call.
public void hide()
|
org.netbeans.api.visual 2.10 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |