|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.aviatrix3d.pipeline.graphics.ViewportResizeManager
public class ViewportResizeManager
Convenience class for managing the resizing of the viewports based on listener feedback from the surface.
This class deals only with fullscreen resizing capabilities. All viewports registered for management will resize to the full screen size handed to us by the listener.
Constructor Summary | |
---|---|
ViewportResizeManager()
Create a new instance of this manager now. |
Method Summary | |
---|---|
void |
addManagedViewport(Viewport view)
Add a viewport to be managed. |
void |
clear()
Clear all of the current viewports from the manager. |
void |
graphicsDeviceResized(int x,
int y,
int width,
int height)
Notification that the graphics output device has changed dimensions to the given size. |
void |
removeManagedViewport(Viewport view)
Remove a viewport that is being managed. |
void |
sendResizeUpdates()
Clock the updates that should be sent now. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewportResizeManager()
Method Detail |
---|
public void graphicsDeviceResized(int x, int y, int width, int height)
graphicsDeviceResized
in interface GraphicsResizeListener
x
- The lower left x coordinate for the viewy
- The lower left y coordinate for the viewwidth
- The width of the viewport in pixelsheight
- The height of the viewport in pixelspublic void sendResizeUpdates()
public void addManagedViewport(Viewport view)
view
- The viewport instance to usepublic void removeManagedViewport(Viewport view)
view
- The viewport instance to removepublic void clear()
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |