java.awt.LayoutManager, java.awt.LayoutManager2BasicSplitPaneUI.BasicVerticalLayoutManagerpublic class BasicSplitPaneUI.BasicHorizontalLayoutManager extends Object implements java.awt.LayoutManager2
| Modifier and Type | Field | Description |
|---|---|---|
protected java.awt.Component[] |
components |
The components.
|
protected int[] |
sizes |
The size of components.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addLayoutComponent(java.awt.Component comp,
Object constraints) |
Adds the specified component to the layout, using the specified
constraint object.
|
void |
addLayoutComponent(String place,
java.awt.Component component) |
Adds the component at place.
|
protected int |
getAvailableSize(java.awt.Dimension containerSize,
java.awt.Insets insets) |
Returns the available width based on the container size and
Insets. |
protected int |
getInitialLocation(java.awt.Insets insets) |
Returns the left inset, unless the
Insets are null in which case
0 is returned. |
float |
getLayoutAlignmentX(java.awt.Container target) |
Returns the alignment along the x axis.
|
float |
getLayoutAlignmentY(java.awt.Container target) |
Returns the alignment along the y axis.
|
protected int |
getPreferredSizeOfComponent(java.awt.Component c) |
Returns the width of the passed in Components preferred size.
|
protected int |
getSizeOfComponent(java.awt.Component c) |
Returns the width of the passed in component.
|
protected int[] |
getSizes() |
Returns the sizes of the components.
|
void |
invalidateLayout(java.awt.Container c) |
Does nothing.
|
void |
layoutContainer(java.awt.Container container) |
Does the actual layout.
|
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target) |
Returns the maximum layout size, which is Integer.MAX_VALUE
in both directions.
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container container) |
Returns the minimum size needed to contain the children.
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container container) |
Returns the preferred size needed to contain the children.
|
void |
removeLayoutComponent(java.awt.Component component) |
Removes the specified component from our knowledge.
|
protected void |
resetSizeAt(int index) |
Resets the size of the Component at the passed in location.
|
void |
resetToPreferredSizes() |
Marks the receiver so that the next time this instance is
laid out it'll ask for the preferred sizes.
|
protected void |
setComponentToSize(java.awt.Component c,
int size,
int location,
java.awt.Insets insets,
java.awt.Dimension containerSize) |
Sets the width of the component
c to be size, placing its
x location at location, y to the insets.top and height
to the containerSize.height less the top and bottom insets. |
protected void |
setSizes(int[] newSizes) |
Sets the sizes to
newSizes. |
protected void |
updateComponents() |
Determines the components.
|
protected int[] sizes
protected java.awt.Component[] components
public void layoutContainer(java.awt.Container container)
layoutContainer in interface java.awt.LayoutManagercontainer - the container to be laid outpublic void addLayoutComponent(String place, java.awt.Component component)
addLayoutComponent in interface java.awt.LayoutManagerplace - the string to be associated with the componentcomponent - the component to be addedpublic java.awt.Dimension minimumLayoutSize(java.awt.Container container)
minimumLayoutSize in interface java.awt.LayoutManagercontainer - the component to be laid outLayoutManager.preferredLayoutSize(java.awt.Container)public java.awt.Dimension preferredLayoutSize(java.awt.Container container)
preferredLayoutSize in interface java.awt.LayoutManagercontainer - the container to be laid outLayoutManager.minimumLayoutSize(java.awt.Container)public void removeLayoutComponent(java.awt.Component component)
removeLayoutComponent in interface java.awt.LayoutManagercomponent - the component to be removedpublic void addLayoutComponent(java.awt.Component comp,
Object constraints)
addLayoutComponent in interface java.awt.LayoutManager2comp - the component to be addedconstraints - where/how the component is added to the layout.public float getLayoutAlignmentX(java.awt.Container target)
getLayoutAlignmentX in interface java.awt.LayoutManager2target - the target containerpublic float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY in interface java.awt.LayoutManager2target - the target containerpublic void invalidateLayout(java.awt.Container c)
invalidateLayout in interface java.awt.LayoutManager2c - the target containerpublic java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize in interface java.awt.LayoutManager2target - the target containerComponent.getMaximumSize(),
LayoutManagerpublic void resetToPreferredSizes()
protected void resetSizeAt(int index)
index - the index of a componentprotected void setSizes(int[] newSizes)
newSizes.newSizes - the new sizesprotected int[] getSizes()
protected int getPreferredSizeOfComponent(java.awt.Component c)
c - a componentprotected int getSizeOfComponent(java.awt.Component c)
c - a componentprotected int getAvailableSize(java.awt.Dimension containerSize,
java.awt.Insets insets)
Insets.containerSize - a container sizeinsets - an insetsprotected int getInitialLocation(java.awt.Insets insets)
Insets are null in which case
0 is returned.insets - the insetsprotected void setComponentToSize(java.awt.Component c,
int size,
int location,
java.awt.Insets insets,
java.awt.Dimension containerSize)
c to be size, placing its
x location at location, y to the insets.top and height
to the containerSize.height less the top and bottom insets.c - a componentsize - a new widthlocation - a new X coordinateinsets - an insetscontainerSize - a container sizeprotected void updateComponents()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.abuild.jdk9-71a766d4c180