java.awt.event
Class HierarchyBoundsAdapter

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.event.HierarchyBoundsAdapter
All Implemented Interfaces:
HierarchyBoundsListener sample code for java.awt.event.HierarchyBoundsListener definition code for java.awt.event.HierarchyBoundsListener , EventListener sample code for java.util.EventListener definition code for java.util.EventListener

public abstract class HierarchyBoundsAdapter
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements HierarchyBoundsListener sample code for java.awt.event.HierarchyBoundsListener definition code for java.awt.event.HierarchyBoundsListener

An abstract adapter class for receiving ancestor moved and resized events. The methods in this class are empty. This class exists as a convenience for creating listener objects.

Extend this class and override the method for the event of interest. (If you implement the HierarchyBoundsListener interface, you have to define both methods in it. This abstract class defines null methods for them both, so you only have to define the method for the event you care about.)

Create a listener object using your class and then register it with a Component using the Component's addHierarchyBoundsListener method. When the hierarchy to which the Component belongs changes by resize or movement of an ancestor, the relevant method in the listener object is invoked, and the HierarchyEvent is passed to it.

Since:
1.3
See Also:
HierarchyBoundsListener sample code for java.awt.event.HierarchyBoundsListener definition code for java.awt.event.HierarchyBoundsListener , HierarchyEvent sample code for java.awt.event.HierarchyEvent definition code for java.awt.event.HierarchyEvent

Constructor Summary
HierarchyBoundsAdapter sample code for java.awt.event.HierarchyBoundsAdapter.HierarchyBoundsAdapter() definition code for java.awt.event.HierarchyBoundsAdapter.HierarchyBoundsAdapter() ()
           
 
Method Summary
 void ancestorMoved sample code for java.awt.event.HierarchyBoundsAdapter.ancestorMoved(java.awt.event.HierarchyEvent) definition code for java.awt.event.HierarchyBoundsAdapter.ancestorMoved(java.awt.event.HierarchyEvent) (HierarchyEvent sample code for java.awt.event.HierarchyEvent definition code for java.awt.event.HierarchyEvent  e)
          Called when an ancestor of the source is moved.
 void ancestorResized sample code for java.awt.event.HierarchyBoundsAdapter.ancestorResized(java.awt.event.HierarchyEvent) definition code for java.awt.event.HierarchyBoundsAdapter.ancestorResized(java.awt.event.HierarchyEvent) (HierarchyEvent sample code for java.awt.event.HierarchyEvent definition code for java.awt.event.HierarchyEvent  e)
          Called when an ancestor of the source is resized.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

HierarchyBoundsAdapter sample code for java.awt.event.HierarchyBoundsAdapter() definition code for java.awt.event.HierarchyBoundsAdapter()

public HierarchyBoundsAdapter()
Method Detail

ancestorMoved sample code for java.awt.event.HierarchyBoundsAdapter.ancestorMoved(java.awt.event.HierarchyEvent) definition code for java.awt.event.HierarchyBoundsAdapter.ancestorMoved(java.awt.event.HierarchyEvent)

public void ancestorMoved(HierarchyEvent sample code for java.awt.event.HierarchyEvent definition code for java.awt.event.HierarchyEvent  e)
Called when an ancestor of the source is moved.

Specified by:
ancestorMoved sample code for java.awt.event.HierarchyBoundsListener.ancestorMoved(java.awt.event.HierarchyEvent) definition code for java.awt.event.HierarchyBoundsListener.ancestorMoved(java.awt.event.HierarchyEvent) in interface HierarchyBoundsListener sample code for java.awt.event.HierarchyBoundsListener definition code for java.awt.event.HierarchyBoundsListener

ancestorResized sample code for java.awt.event.HierarchyBoundsAdapter.ancestorResized(java.awt.event.HierarchyEvent) definition code for java.awt.event.HierarchyBoundsAdapter.ancestorResized(java.awt.event.HierarchyEvent)

public void ancestorResized(HierarchyEvent sample code for java.awt.event.HierarchyEvent definition code for java.awt.event.HierarchyEvent  e)
Called when an ancestor of the source is resized.

Specified by:
ancestorResized sample code for java.awt.event.HierarchyBoundsListener.ancestorResized(java.awt.event.HierarchyEvent) definition code for java.awt.event.HierarchyBoundsListener.ancestorResized(java.awt.event.HierarchyEvent) in interface HierarchyBoundsListener sample code for java.awt.event.HierarchyBoundsListener definition code for java.awt.event.HierarchyBoundsListener