|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.Box.Filler
An implementation of a lightweight component that participates in layout but has no view.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see XMLEncoder
.
Nested Class Summary | |
protected class |
Box.Filler.AccessibleBoxFiller
This class implements accessibility support for the Box.Filler class. |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected AccessibleContext |
accessibleContext
The currently set AccessibleContext object. |
Fields inherited from class javax.swing.JComponent |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Box.Filler(Dimension min,
Dimension pref,
Dimension max)
Constructor to create shape with the given size ranges. |
Method Summary | |
void |
changeShape(Dimension min,
Dimension pref,
Dimension max)
Change the size requests for this shape. |
AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this Box.Filler. |
Dimension |
getMaximumSize()
Returns the maximum size of the component. |
Dimension |
getMinimumSize()
Returns the minimum size of the component. |
Dimension |
getPreferredSize()
Returns the preferred size of the component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected AccessibleContext accessibleContext
Constructor Detail |
public Box.Filler(Dimension min, Dimension pref, Dimension max)
min
- Minimum sizepref
- Preferred sizemax
- Maximum sizeMethod Detail |
public void changeShape(Dimension min, Dimension pref, Dimension max)
min
- Value to return for getMinimumSizepref
- Value to return for getPreferredSizemax
- Value to return for getMaximumSizepublic Dimension getMinimumSize()
getMinimumSize
in class JComponent
JComponent.setMinimumSize(java.awt.Dimension)
,
ComponentUI
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
JComponent.setPreferredSize(java.awt.Dimension)
,
ComponentUI
public Dimension getMaximumSize()
getMaximumSize
in class JComponent
JComponent.setMaximumSize(java.awt.Dimension)
,
ComponentUI
public AccessibleContext getAccessibleContext()
getAccessibleContext
in interface Accessible
getAccessibleContext
in class JComponent
|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.