|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.basic.BasicSplitPaneUI.BasicHorizontalLayoutManager
public class BasicSplitPaneUI.BasicHorizontalLayoutManager
This Layout Manager controls the position and size of the components when the JSplitPane's orientation is HORIZONTAL_SPLIT.
Field Summary | |
---|---|
protected 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. |
Method Summary | |
---|---|
void |
addLayoutComponent(Component comp,
Object constraints)
This method adds the component given to the JSplitPane. |
void |
addLayoutComponent(String place,
Component component)
This method is called to add a Component to the JSplitPane. |
protected int |
getAvailableSize(Dimension containerSize,
Insets insets)
This method returns the width of the JSplitPane minus the insets. |
protected int |
getInitialLocation(Insets insets)
This method returns the given insets left value. |
float |
getLayoutAlignmentX(Container target)
This specifies how a component is aligned with respect to other components in the x fdirection. |
float |
getLayoutAlignmentY(Container target)
This specifies how a component is aligned with respect to other components in the y direction. |
protected int |
getPreferredSizeOfComponent(Component c)
This method returns the preferred width of the component. |
protected int |
getSizeOfComponent(Component c)
This method returns the current width of the component. |
protected int[] |
getSizes()
This method returns the sizes array. |
void |
invalidateLayout(Container c)
This method invalidates the layout. |
void |
layoutContainer(Container container)
This method lays out the components in the container. |
Dimension |
maximumLayoutSize(Container target)
This method returns the maximum size for the container given the components. |
Dimension |
minimumLayoutSize(Container target)
This method returns the container's minimum size. |
Dimension |
preferredLayoutSize(Container target)
This method returns the container's preferred size. |
void |
removeLayoutComponent(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(Component c,
int size,
int location,
Insets insets,
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Component[] components
protected int[] sizes
Method Detail |
---|
public void addLayoutComponent(Component comp, Object constraints)
addLayoutComponent
in interface LayoutManager2
comp
- The Component to add.constraints
- The constraints that bind the object.public void addLayoutComponent(String place, Component component)
addLayoutComponent
in interface LayoutManager
place
- The placement of the Component.component
- The Component to add.
IllegalArgumentException
- DOCUMENT ME!protected int getAvailableSize(Dimension containerSize, Insets insets)
containerSize
- The Dimensions of the JSplitPane.insets
- The Insets of the JSplitPane.
protected int getInitialLocation(Insets insets)
insets
- The Insets to use with the JSplitPane.
public float getLayoutAlignmentX(Container target)
getLayoutAlignmentX
in interface LayoutManager2
target
- The container.
public float getLayoutAlignmentY(Container target)
getLayoutAlignmentY
in interface LayoutManager2
target
- The container.
protected int getPreferredSizeOfComponent(Component c)
c
- The component to measure.
protected int getSizeOfComponent(Component c)
c
- The component to measure.
protected int[] getSizes()
public void invalidateLayout(Container c)
invalidateLayout
in interface LayoutManager2
c
- The container to invalidate.public void layoutContainer(Container container)
layoutContainer
in interface LayoutManager
container
- The container to lay out.public Dimension maximumLayoutSize(Container target)
maximumLayoutSize
in interface LayoutManager2
target
- The container to measure.
Component.getMaximumSize()
public Dimension minimumLayoutSize(Container target)
minimumLayoutSize
in interface LayoutManager
target
- The container to measure.
LayoutManager.preferredLayoutSize(Container)
public Dimension preferredLayoutSize(Container target)
preferredLayoutSize
in interface LayoutManager
target
- The container to measure.
LayoutManager.minimumLayoutSize(Container)
public void removeLayoutComponent(Component component)
removeLayoutComponent
in interface LayoutManager
component
- 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(Component c, int size, int location, Insets insets, 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |