public class RowFlowLayout
extends java.lang.Object
implements java.awt.LayoutManager2, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Hashtable<java.awt.Component,RowFlowLayoutConstraints> |
comptable
This hashtable maintains the association between
a component and its rowflow constraints.
|
protected RowFlowLayoutConstraints |
defaultConstraints
This field holds a rowflow constraints instance
containing the default values, so if a component
does not have rowflow constraints associated with
it, then the component will be assigned a
copy of the
RowFlowLayoutConstraints. |
protected RowFlowLayoutInfo |
layoutInfo |
protected static int |
MINSIZE
The smallest size that can be laid out by the rowflow layout.
|
protected static int |
NORMALSIZE
The normal size that can be laid out by the rowflow layout.
|
| Constructor and Description |
|---|
RowFlowLayout()
Creates a Row-FlowLayout layout manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints) |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp) |
java.util.Vector<java.util.Vector<java.awt.Component>> |
getComponentMatrix() |
RowFlowLayoutConstraints |
getConstraints(java.awt.Component comp)
Gets the constraints for the specified component.
|
float |
getLayoutAlignmentX(java.awt.Container parent) |
float |
getLayoutAlignmentY(java.awt.Container parent) |
RowFlowLayoutInfo |
getLayoutInfo() |
void |
invalidateLayout(java.awt.Container target) |
void |
layoutContainer(java.awt.Container parent) |
protected RowFlowLayoutConstraints |
lookupConstraints(java.awt.Component comp)
Retrieves the constraints for the specified component.
|
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target) |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent) |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent) |
void |
removeLayoutComponent(java.awt.Component comp) |
void |
setConstraints(java.awt.Component comp,
RowFlowLayoutConstraints constraints)
Sets the constraints for the specified component in this layout.
|
protected static final int MINSIZE
protected static final int NORMALSIZE
protected RowFlowLayoutConstraints defaultConstraints
RowFlowLayoutConstraints.protected java.util.Hashtable<java.awt.Component,RowFlowLayoutConstraints> comptable
comptable are the components and the
values are the instances of RowFlowLayoutConstraints.util.RowFlowLayoutConstraintsprotected RowFlowLayoutInfo layoutInfo
public void setConstraints(java.awt.Component comp,
RowFlowLayoutConstraints constraints)
comp - the component to be modifiedconstraints - the constraints to be appliedpublic RowFlowLayoutConstraints getConstraints(java.awt.Component comp)
RowFlowLayoutConstraints object is returned.comp - the component to be queriedprotected RowFlowLayoutConstraints lookupConstraints(java.awt.Component comp)
RowFlowLayoutConstraints object used by the layout mechanism.
If comp is not in the RowFlowLayout, a set of default RowFlowLayoutConstraints are returned. A comp value of null is invalid and returns null.
comp - the component to be queriedpublic void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagerpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagerpublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerpublic RowFlowLayoutInfo getLayoutInfo()
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerpublic void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManagerpublic void addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
addLayoutComponent in interface java.awt.LayoutManager2public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize in interface java.awt.LayoutManager2public float getLayoutAlignmentX(java.awt.Container parent)
getLayoutAlignmentX in interface java.awt.LayoutManager2public float getLayoutAlignmentY(java.awt.Container parent)
getLayoutAlignmentY in interface java.awt.LayoutManager2public void invalidateLayout(java.awt.Container target)
invalidateLayout in interface java.awt.LayoutManager2public java.util.Vector<java.util.Vector<java.awt.Component>> getComponentMatrix()
Copyright ? 2022. All Rights Reserved.