com.jrefinery.report.util
Class WindowSizeLimiter

java.lang.Object
  extended byjava.awt.event.ComponentAdapter
      extended bycom.jrefinery.report.util.WindowSizeLimiter
All Implemented Interfaces:
java.awt.event.ComponentListener, java.util.EventListener

public class WindowSizeLimiter
extends java.awt.event.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()
           
 
Method Summary
 void componentResized(java.awt.event.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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowSizeLimiter

public WindowSizeLimiter()
Method Detail

componentResized

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

Parameters:
e - the event.