|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object camera3d.gui.ViewportWindowManager
This class manages all ViewportInternalCombos present at the application. One of its responsibilities is notifying the ViewportInternalCombos of changes in the number of VcViews of the scene.
Constructor Summary | |
ViewportWindowManager(javax.swing.JDesktopPane desktop,
J3DBase base,
GUIControl guiControl)
|
|
ViewportWindowManager(javax.swing.JDesktopPane desktop,
J3DBase base,
GUIControl guiControl,
SelectionList list)
|
Method Summary | |
void |
addViewport(VcView view)
Adds a new viewport window to workspace. |
void |
disableMessageInAllViewports()
|
void |
enableMessageInAllViewports(java.lang.String s)
|
java.util.List |
getListOfFrames()
Returns a list of active ViewportFrames |
int |
getNumberOfViewports()
Returns the number of active viewports |
Viewport |
getViewportByLabel(java.lang.String viewName)
Returns a reference to a viewport given its name. |
void |
moveViewportToFront(Viewport viewport)
Moves input Viewport to front. |
void |
printListOfViews()
|
void |
sceneObjectsChanged(SceneObjectsChangedEvent event)
Method from SceneObjectsChangeListener interface. |
void |
setCursorInViewports(TransformType type)
|
void |
setPickingInViewports(boolean pickEnable)
|
void |
setSelectionList(SelectionList list)
|
void |
setViewInViewport(int viewportIndex,
VcView view)
Changes the view shown by a certain viewport. |
void |
setViewportLocation(int viewportIndex,
boolean internal,
int x,
int y,
int width,
int height)
|
void |
setViewportsEventHandler(ViewportsEventHandler handler)
|
void |
vcObjectChanged(VcObjectEvent event)
Method from VcObjectChangeListener interface. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ViewportWindowManager(javax.swing.JDesktopPane desktop, J3DBase base, GUIControl guiControl)
public ViewportWindowManager(javax.swing.JDesktopPane desktop, J3DBase base, GUIControl guiControl, SelectionList list)
Method Detail |
public void setViewportsEventHandler(ViewportsEventHandler handler)
public void setViewInViewport(int viewportIndex, VcView view)
viewportIndex
- index of viewport whose view will be changed.view
- new view to be shown by viewport. Must be non null.
java.lang.IndexOutOfBoundsException
- if viewportIndex is invalid.public void moveViewportToFront(Viewport viewport)
public void addViewport(VcView view)
view
- VcView that will be shown by new viewport window.public int getNumberOfViewports()
public java.util.List getListOfFrames()
public void setViewportLocation(int viewportIndex, boolean internal, int x, int y, int width, int height)
public void sceneObjectsChanged(SceneObjectsChangedEvent event)
sceneObjectsChanged
in interface SceneObjectsChangeListener
event
- signals changes in the scene graph.public void vcObjectChanged(VcObjectEvent event)
vcObjectChanged
in interface VcObjectChangeListener
event
- Signals changes made to objects in the scene graph.public void printListOfViews()
public Viewport getViewportByLabel(java.lang.String viewName)
viewName
- name of the view to be retrieved.
public void enableMessageInAllViewports(java.lang.String s)
public void setCursorInViewports(TransformType type)
public void disableMessageInAllViewports()
public void setPickingInViewports(boolean pickEnable)
public void setSelectionList(SelectionList list)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |