Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.renderer.common.browser
Class OverlayWrapper

java.lang.Object
  extended by org.web3d.vrml.renderer.common.browser.OverlayWrapper
All Implemented Interfaces:
java.awt.event.ComponentListener, java.util.EventListener

public class OverlayWrapper
extends java.lang.Object
implements java.awt.event.ComponentListener

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
OverlayWrapper(java.awt.Component comp)
          Construct a new wrapper that works with the given component.
 
Method Summary
 void componentHidden(java.awt.event.ComponentEvent e)
          Notification that the component has been hidden.
 void componentMoved(java.awt.event.ComponentEvent e)
          Notification that the component has been moved.
 void componentResized(java.awt.event.ComponentEvent e)
          Notification that the component has been resized.
 void componentShown(java.awt.event.ComponentEvent e)
          Notification that the component has been shown.
 void setSurfaces(java.util.List list)
          Reset the list of overlays to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverlayWrapper

public OverlayWrapper(java.awt.Component comp)
Construct a new wrapper that works with the given component. Assumes the reference is non-null.

Parameters:
comp - The component to use
Method Detail

componentResized

public void componentResized(java.awt.event.ComponentEvent e)
Notification that the component has been resized.

Specified by:
componentResized in interface java.awt.event.ComponentListener
Parameters:
e - The event that caused this method to be called

componentMoved

public void componentMoved(java.awt.event.ComponentEvent e)
Notification that the component has been moved.

Specified by:
componentMoved in interface java.awt.event.ComponentListener
Parameters:
e - The event that caused this method to be called

componentShown

public void componentShown(java.awt.event.ComponentEvent e)
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 interface java.awt.event.ComponentListener
Parameters:
e - The event that caused this method to be called

componentHidden

public void componentHidden(java.awt.event.ComponentEvent e)
Notification that the component has been hidden.

Specified by:
componentHidden in interface java.awt.event.ComponentListener
Parameters:
e - The event that caused this method to be called

setSurfaces

public void setSurfaces(java.util.List list)
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

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium