public class BasicSplitPaneUI.BasicHorizontalLayoutManager extends Objectimplements LayoutManager2
| Modifier and Type | Field and Description |
|---|---|
protected Component |
components
|
protected int[] |
sizes
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(Component
Adds the specified component to the layout, using the specified constraint object.
|
void |
addLayoutComponent(String
Adds the component at place.
|
protected int |
getAvailableSize(Dimension
Returns the available width based on the container size and Insets.
|
protected int |
getInitialLocation(Insets
Returns the left inset, unless the Insets are null in which case 0 is returned.
|
float |
getLayoutAlignmentX(Container
Returns the alignment along the x axis.
|
float |
getLayoutAlignmentY(Container
Returns the alignment along the y axis.
|
protected int |
getPreferredSizeOfComponent(Component
Returns the width of the passed in Components preferred size.
|
protected int |
getSizeOfComponent(Component
Returns the width of the passed in component.
|
protected int[] |
getSizes()
Returns the sizes of the components.
|
void |
invalidateLayout(Container
Does nothing.
|
void |
layoutContainer(Container
Does the actual layout.
|
Dimension |
maximumLayoutSize(Container
Returns the maximum layout size, which is Integer.MAX_VALUE in both directions.
|
Dimension |
minimumLayoutSize(Container
Returns the minimum size needed to contain the children.
|
Dimension |
preferredLayoutSize(Container
Returns the preferred size needed to contain the children.
|
void |
removeLayoutComponent(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(Component
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 Component[] components
public void layoutContainer(Containercontainer)
layoutContainer in interface
LayoutManager
container - the container to be laid out
public void addLayoutComponent(Stringplace, Component component)
addLayoutComponent in interface
LayoutManager
place - the string to be associated with the component
component - the component to be added
public DimensionminimumLayoutSize(Container container)
minimumLayoutSize in interface
LayoutManager
container - the component to be laid out
LayoutManager.preferredLayoutSize(java.awt.Container)
public DimensionpreferredLayoutSize(Container container)
preferredLayoutSize in interface
LayoutManager
container - the container to be laid out
LayoutManager.minimumLayoutSize(java.awt.Container)
public void removeLayoutComponent(Componentcomponent)
removeLayoutComponent in interface
LayoutManager
component - the component to be removed
public void addLayoutComponent(Componentcomp, Object constraints)
addLayoutComponent in interface
LayoutManager2
comp - the component to be added
constraints - where/how the component is added to the layout.
public float getLayoutAlignmentX(Containertarget)
public float getLayoutAlignmentY(Containertarget)
public void invalidateLayout(Containerc)
public DimensionmaximumLayoutSize(Container target)
maximumLayoutSize in interface
LayoutManager2
Component.getMaximumSize() ,
LayoutManager
public void resetToPreferredSizes()
protected void resetSizeAt(int index)
protected void setSizes(int[] newSizes)
newSizes.
protected int[] getSizes()
protected int getPreferredSizeOfComponent(Componentc)
protected int getSizeOfComponent(Componentc)
protected int getAvailableSize(DimensioncontainerSize, Insets insets)
protected int getInitialLocation(Insetsinsets)
protected void setComponentToSize(Componentc, int size, int location, Insets insets, Dimension containerSize)
protected void updateComponents()