textbender.o.awt
Class ComponentBoundsPreference

java.lang.Object
  extended by ComponentBoundsPreference

public final class ComponentBoundsPreference
extends Object

Preference storage for component bounds. This is a convenience class that encapsulates together a ComponentLocationPreference and a ComponentSizePreference.


Field Summary
(package private) static RunBuffer runBuffer
          A slow run buffer, anywhere from 500 to 2000 ms.
 
Constructor Summary
ComponentBoundsPreference(Component c, Preferences preferences)
          Creates a ComponentBoundsPreference.
 
Method Summary
 ComponentLocationPreference location()
          Returns the preference storage for the component's location.
 ComponentSizePreference size()
          Returns the preference storage for the component's size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runBuffer

static final RunBuffer runBuffer
A slow run buffer, anywhere from 500 to 2000 ms.

Constructor Detail

ComponentBoundsPreference

public ComponentBoundsPreference(Component c,
                                 Preferences preferences)
Creates a ComponentBoundsPreference.

There is currently no way to remove it from the component. Create one only per component, or they will accumulate.

Parameters:
c - component whose bounds to store and restore
preferences - node, per ComponentLocationPreference.preferences() and ComponentSizePreference.preferences()
Method Detail

location

public ComponentLocationPreference location()
Returns the preference storage for the component's location.


size

public ComponentSizePreference size()
Returns the preference storage for the component's size.