|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.forms.layout.FormLayout.ComponentSizeCache
private static final class FormLayout.ComponentSizeCache
A cache for component minimum and preferred sizes. Used to reduce the requests to determine a component's size.
Field Summary | |
---|---|
private java.util.Map |
minimumSizes
Maps components to their minimum sizes. |
private java.util.Map |
preferredSizes
Maps components to their preferred sizes. |
Constructor Summary | |
---|---|
private |
FormLayout.ComponentSizeCache(int initialCapacity)
Constructs a ComponentSizeCache . |
Method Summary | |
---|---|
(package private) java.awt.Dimension |
getMinimumSize(java.awt.Component component)
Returns the minimum size for the given component. |
(package private) java.awt.Dimension |
getPreferredSize(java.awt.Component component)
Returns the preferred size for the given component. |
(package private) void |
invalidate()
Invalidates the cache. |
(package private) void |
removeEntry(java.awt.Component component)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.Map minimumSizes
private final java.util.Map preferredSizes
Constructor Detail |
---|
private FormLayout.ComponentSizeCache(int initialCapacity)
ComponentSizeCache
.
initialCapacity
- the initial cache capacityMethod Detail |
---|
void invalidate()
java.awt.Dimension getMinimumSize(java.awt.Component component)
component
- the component to compute the minimum size
java.awt.Dimension getPreferredSize(java.awt.Component component)
component
- the component to compute the preferred size
void removeEntry(java.awt.Component component)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |