public class ViewpointManager extends Object implements org.j3d.ui.navigation.ViewpointSelectionListener
Internationalisation Resource Names
| Constructor and Description |
|---|
ViewpointManager()
Create a new manager for the viewpoint information with no handlers or
information set and the default transition time of 2 seconds.
|
ViewpointManager(int time)
Create a new manager for the viewpoint information with no handlers or
information set and the the given transition time.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setFrameUpdateListener(FrameUpdateListener l)
Set the listener for frame update notifications.
|
void |
setToolbar(org.j3d.ui.navigation.ViewpointToolbar tbr)
Set the toolbar instance to use.
|
void |
setTransitionTime(int time)
Change the transition time between viewpoints.
|
void |
setViewInfo(Viewpoint view,
TransformGroup tg)
Set the view and it's related transform group to use.
|
void |
viewpointSelected(org.j3d.ui.navigation.ViewpointData vp)
A new viewpoint has been selected and this is it.
|
public ViewpointManager()
public ViewpointManager(int time)
throws IllegalArgumentException
time - The time to transit when changingIllegalArgumentException - The time was negativepublic void viewpointSelected(org.j3d.ui.navigation.ViewpointData vp)
viewpointSelected in interface org.j3d.ui.navigation.ViewpointSelectionListenervp - The new viewpoint to usepublic void setToolbar(org.j3d.ui.navigation.ViewpointToolbar tbr)
tbr - The new toolbar instance to usepublic void setTransitionTime(int time)
time - The new time to use in millisecondsIllegalArgumentException - The time was negativepublic void setViewInfo(Viewpoint view, TransformGroup tg)
view - is the View object that we're modifying.tg - The transform group above the view object that should be usedpublic void setFrameUpdateListener(FrameUpdateListener l)
l - The listener to use for this transition
Copyright © 2001 - 2015 j3d.org