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 TypeMethodDescriptionvoid
Notification that the component has been hidden.void
Notification that the component has been moved.void
Notification that the component has been resized.void
Notification that the component has been shown.void
setSurfaces
(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:
componentResized
in interfaceComponentListener
- Parameters:
e
- The event that caused this method to be called
-
componentMoved
Notification that the component has been moved.- Specified by:
componentMoved
in 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:
componentShown
in interfaceComponentListener
- Parameters:
e
- The event that caused this method to be called
-
componentHidden
Notification that the component has been hidden.- Specified by:
componentHidden
in 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
-