org.pentaho.reporting.engine.classic.core.modules.gui.commonswing
Class WindowSizeLimiter

java.lang.Object
  extended by java.awt.event.ComponentAdapter
      extended by org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.WindowSizeLimiter
All Implemented Interfaces:
ComponentListener, EventListener

public class WindowSizeLimiter
extends ComponentAdapter

A small helper class to limit the maximum size of an element to the elements maximum size. If the element is resized, the defined maximum size is enforced on the element.

Author:
Thomas Morgner

Constructor Summary
WindowSizeLimiter()
          Default-Constructor.
 
Method Summary
 void componentResized(ComponentEvent e)
          Invoked when the component's size changes.
 
Methods inherited from class java.awt.event.ComponentAdapter
componentHidden, componentMoved, componentShown
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowSizeLimiter

public WindowSizeLimiter()
Default-Constructor.

Method Detail

componentResized

public void componentResized(ComponentEvent e)
Invoked when the component's size changes.

Specified by:
componentResized in interface ComponentListener
Overrides:
componentResized in class ComponentAdapter
Parameters:
e - the event.