public class BasicSplitPaneUI.BasicHorizontalLayoutManager extends java.lang.Object implements java.awt.LayoutManager2
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Component[] |
components
This array contains the components in the JSplitPane.
|
protected int[] |
sizes
This array contains the current width (for HORIZONTAL_SPLIT) or height
(for VERTICAL_SPLIT) of the components.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
This method adds the component given to the JSplitPane.
|
void |
addLayoutComponent(java.lang.String place,
java.awt.Component component)
This method is called to add a Component to the JSplitPane.
|
protected int |
getAvailableSize(java.awt.Dimension containerSize,
java.awt.Insets insets)
This method returns the width of the JSplitPane minus the insets.
|
protected int |
getInitialLocation(java.awt.Insets insets)
This method returns the given insets left value.
|
float |
getLayoutAlignmentX(java.awt.Container target)
This specifies how a component is aligned with respect to other
components in the x fdirection.
|
float |
getLayoutAlignmentY(java.awt.Container target)
This specifies how a component is aligned with respect to other
components in the y direction.
|
protected int |
getPreferredSizeOfComponent(java.awt.Component c)
This method returns the preferred width of the component.
|
protected int |
getSizeOfComponent(java.awt.Component c)
This method returns the current width of the component.
|
protected int[] |
getSizes()
This method returns the sizes array.
|
void |
invalidateLayout(java.awt.Container c)
This method invalidates the layout.
|
void |
layoutContainer(java.awt.Container container)
This method lays out the components in the container.
|
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target)
This method returns the maximum size for the container given the
components.
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)
This method returns the container's minimum size.
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target)
This method returns the container's preferred size.
|
void |
removeLayoutComponent(java.awt.Component component)
This method removes the component from the layout.
|
protected void |
resetSizeAt(int index)
This method resets the size of Component to the preferred size.
|
void |
resetToPreferredSizes()
This method resets the sizes of all the components.
|
protected void |
setComponentToSize(java.awt.Component c,
int size,
int location,
java.awt.Insets insets,
java.awt.Dimension containerSize)
This methods sets the bounds of the given component.
|
protected void |
setSizes(int[] newSizes)
This method stores the given int array as the new sizes array.
|
protected void |
updateComponents()
This method determines the size of each component.
|
protected java.awt.Component[] components
protected int[] sizes
public void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
addLayoutComponent in interface java.awt.LayoutManager2comp - The Component to add.constraints - The constraints that bind the object.public void addLayoutComponent(java.lang.String place, java.awt.Component component)
addLayoutComponent in interface java.awt.LayoutManagerplace - The placement of the Component.component - The Component to add.java.lang.IllegalArgumentException - DOCUMENT ME!protected int getAvailableSize(java.awt.Dimension containerSize, java.awt.Insets insets)
containerSize - The Dimensions of the JSplitPane.insets - The Insets of the JSplitPane.protected int getInitialLocation(java.awt.Insets insets)
insets - The Insets to use with the JSplitPane.public float getLayoutAlignmentX(java.awt.Container target)
getLayoutAlignmentX in interface java.awt.LayoutManager2target - The container.public float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY in interface java.awt.LayoutManager2target - The container.protected int getPreferredSizeOfComponent(java.awt.Component c)
c - The component to measure.protected int getSizeOfComponent(java.awt.Component c)
c - The component to measure.protected int[] getSizes()
public void invalidateLayout(java.awt.Container c)
invalidateLayout in interface java.awt.LayoutManager2c - The container to invalidate.public void layoutContainer(java.awt.Container container)
layoutContainer in interface java.awt.LayoutManagercontainer - The container to lay out.public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize in interface java.awt.LayoutManager2target - The container to measure.Component.getMaximumSize()public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize in interface java.awt.LayoutManagertarget - The container to measure.LayoutManager.preferredLayoutSize(Container)public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize in interface java.awt.LayoutManagertarget - The container to measure.LayoutManager.minimumLayoutSize(Container)public void removeLayoutComponent(java.awt.Component component)
removeLayoutComponent in interface java.awt.LayoutManagercomponent - The component to remove from the layout.protected void resetSizeAt(int index)
index - The index of the component to reset.public void resetToPreferredSizes()
protected void setComponentToSize(java.awt.Component c, int size, int location, java.awt.Insets insets, java.awt.Dimension containerSize)
c - The component to set.size - The width of the component.location - The x coordinate.insets - The insets to use.containerSize - The height of the container.protected void setSizes(int[] newSizes)
newSizes - The array to use as sizes.protected void updateComponents()