UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.lib.gesture.util
Class HystericResizer

java.lang.Object
  |
  +--java.awt.event.ComponentAdapter
        |
        +--edu.berkeley.guir.lib.gesture.util.HystericResizer
All Implemented Interfaces:
ComponentListener, EventListener

public class HystericResizer
extends ComponentAdapter

Adds hysteresis to a Component. That is, when the user resizes the Component, that becomes its preferredSize, so subsequent pack() operations will not change its size (although it can still be resized manually or with setSize() and its preferredSize can be changed with setPreferredSize()).


Constructor Summary
HystericResizer()
           
 
Method Summary
 void componentResized(ComponentEvent e)
           
 
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

HystericResizer

public HystericResizer()
Method Detail

componentResized

public void componentResized(ComponentEvent e)
Overrides:
componentResized in class ComponentAdapter

Copyright Information