org.pentaho.reporting.engine.classic.core.modules.gui.commonswing
Class WindowSizeLimiter
java.lang.Object
java.awt.event.ComponentAdapter
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
WindowSizeLimiter
public WindowSizeLimiter()
- Default-Constructor.
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.