Class OverlayWrapper
java.lang.Object
org.web3d.vrml.renderer.common.browser.OverlayWrapper
- All Implemented Interfaces:
ComponentListener,EventListener
Simple utility class that interfaces between the drawing component and the
overlay node types to pass resize information.
- Version:
- $Revision: 1.1 $
- Author:
- Justin Couch
-
Constructor Summary
ConstructorsConstructorDescriptionOverlayWrapper(Component comp) Construct a new wrapper that works with the given component. -
Method Summary
Modifier and TypeMethodDescriptionvoidNotification that the component has been hidden.voidNotification that the component has been moved.voidNotification that the component has been resized.voidNotification that the component has been shown.voidsetSurfaces(List<VRMLSurfaceNodeType> list) Reset the list of overlays to use.
-
Constructor Details
-
OverlayWrapper
Construct a new wrapper that works with the given component. Assumes the reference is non-null.- Parameters:
comp- The component to use
-
-
Method Details
-
componentResized
Notification that the component has been resized.- Specified by:
componentResizedin interfaceComponentListener- Parameters:
e- The event that caused this method to be called
-
componentMoved
Notification that the component has been moved.- Specified by:
componentMovedin interfaceComponentListener- Parameters:
e- The event that caused this method to be called
-
componentShown
Notification that the component has been shown. This is the component being shown, not the window that it is contained in.- Specified by:
componentShownin interfaceComponentListener- Parameters:
e- The event that caused this method to be called
-
componentHidden
Notification that the component has been hidden.- Specified by:
componentHiddenin interfaceComponentListener- Parameters:
e- The event that caused this method to be called
-
setSurfaces
Reset the list of overlays to use. Clears the current list and replaces it with the new list and tells them their dimensions.- Parameters:
list- The list of surfaces to add
-