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
-
-
Constructor Summary
Constructors Constructor Description WindowSizeLimiter()
Default-Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
componentResized(ComponentEvent e)
Invoked when the component's size changes.-
Methods inherited from class java.awt.event.ComponentAdapter
componentHidden, componentMoved, componentShown
-
-
-
-
Method Detail
-
componentResized
public void componentResized(ComponentEvent e)
Invoked when the component's size changes.- Specified by:
componentResized
in interfaceComponentListener
- Overrides:
componentResized
in classComponentAdapter
- Parameters:
e
- the event.
-
-