DESY ACOP Beans Home

com.cosylab.gui.components
Class ResizableTextLabel.ResizableAdapter

java.lang.Object
  extended by java.awt.event.ComponentAdapter
      extended by com.cosylab.gui.components.ResizableTextLabel.ResizableAdapter
All Implemented Interfaces:
java.awt.event.ComponentListener, java.awt.event.HierarchyListener, java.util.EventListener
Enclosing class:
ResizableTextLabel

protected class ResizableTextLabel.ResizableAdapter
extends java.awt.event.ComponentAdapter
implements java.awt.event.HierarchyListener

Helper class that notifies the resizable text label to resize its font when itself is being resized.

Version:
$id$
Author:
Jernej Kamenik
See Also:
ComponentAdapter

Constructor Summary
protected ResizableTextLabel.ResizableAdapter()
           
 
Method Summary
 void componentResized(java.awt.event.ComponentEvent e)
          Invoked when the label is being resized.
 void hierarchyChanged(java.awt.event.HierarchyEvent e)
          Invoke resizing of the font when the hiearachy changes, because this action might as well change the size of the components, but the resize is not fired, because the component did not have parent prior to that.
 
Methods inherited from class java.awt.event.ComponentAdapter
componentHidden, componentMoved, componentShown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizableTextLabel.ResizableAdapter

protected ResizableTextLabel.ResizableAdapter()
Method Detail

componentResized

public void componentResized(java.awt.event.ComponentEvent e)
Invoked when the label is being resized.

Specified by:
componentResized in interface java.awt.event.ComponentListener
Overrides:
componentResized in class java.awt.event.ComponentAdapter
Parameters:
e - ComponentEvent
See Also:
ComponentListener.componentResized(ComponentEvent)

hierarchyChanged

public void hierarchyChanged(java.awt.event.HierarchyEvent e)
Invoke resizing of the font when the hiearachy changes, because this action might as well change the size of the components, but the resize is not fired, because the component did not have parent prior to that.

Specified by:
hierarchyChanged in interface java.awt.event.HierarchyListener
Parameters:
e - the event describing the hierarchy change


Copyright © 2010. All Rights Reserved.