public static class Box.Filler extends JComponent implements Accessible
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 JavaBeans™ has been added to the java.beans
package. Please see XMLEncoder
.
Modifier and Type | Class and Description |
---|---|
protected class |
Box.Filler.AccessibleBoxFiller This class implements accessibility support for the |
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
@ConstructorProperties(value={"minimumSize","preferredSize","maximumSize"}) public Filler(Dimension min, Dimension pref, Dimension max)
Constructor to create shape with the given size ranges.
min
- Minimum sizepref
- Preferred sizemax
- Maximum sizepublic void changeShape(Dimension min, Dimension pref, Dimension max)
Change the size requests for this shape. An invalidate() is propagated upward as a result so that layout will eventually happen with using the new sizes.
min
- Value to return for getMinimumSizepref
- Value to return for getPreferredSizemax
- Value to return for getMaximumSizeprotected void paintComponent(Graphics g)
Paints this Filler
. If this Filler
has a UI this method invokes super's implementation, otherwise if this Filler
is opaque the Graphics
is filled using the background.
paintComponent
in class JComponent
g
- the Graphics
to paint toNullPointerException
- if g
is nullJComponent.paint(java.awt.Graphics)
, ComponentUI
public AccessibleContext getAccessibleContext()
Gets the AccessibleContext associated with this Box.Filler. For box fillers, the AccessibleContext takes the form of an AccessibleBoxFiller. A new AccessibleAWTBoxFiller instance is created if necessary.
getAccessibleContext
in interface Accessible
getAccessibleContext
in class Component
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.