| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class BasicSplitPaneUI.BasicHorizontalLayoutManager extends Object implements LayoutManager2
LayoutManager for JSplitPanes that have an orientation of HORIZONTAL_SPLIT.
Field Summary | |
---|---|
protected Component[] |
components
|
protected int[] |
sizes
|
Method Summary | |
---|---|
void |
addLayoutComponent(Component comp, Object constraints) Adds the specified component to the layout, using the specified constraint object. |
void |
addLayoutComponent(String place, Component component) Adds the component at place. |
protected int |
getAvailableSize(Dimension containerSize, Insets insets) Returns the available width based on the container size and Insets. |
protected int |
getInitialLocation(Insets insets) Returns the left inset, unless the Insets are null in which case 0 is returned. |
float |
getLayoutAlignmentX(Container target) Returns the alignment along the x axis. |
float |
getLayoutAlignmentY(Container target) Returns the alignment along the y axis. |
protected int |
Returns the width of the passed in Components preferred size. |
protected int |
Returns the width of the passed in component. |
protected int[] |
getSizes() Returns the sizes of the components. |
void |
Does nothing. |
void |
layoutContainer(Container container) Does the actual layout. |
Dimension |
maximumLayoutSize(Container target) Returns the maximum layout size, which is Integer.MAX_VALUE in both directions. |
Dimension |
minimumLayoutSize(Container container) Returns the minimum size needed to contain the children. |
Dimension |
preferredLayoutSize(Container container) Returns the preferred size needed to contain the children. |
void |
removeLayoutComponent(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 |
Marks the receiver so that the next time this instance is laid out it'll ask for the preferred sizes. |
protected void |
setComponentToSize(Component c, int size, int location, Insets insets, 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 |
Determines the components. |
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)
comp
- the component to be addedconstraints
- where/how the component is added to the layout.public void addLayoutComponent(String place, Component component)
place
component
protected int getAvailableSize(Dimension containerSize, Insets insets)
containerSize
insets
protected int getInitialLocation(Insets insets)
insets
public float getLayoutAlignmentX(Container target)
target
public float getLayoutAlignmentY(Container target)
target
protected int getPreferredSizeOfComponent(Component c)
c
protected int getSizeOfComponent(Component c)
c
protected int[] getSizes()
public void invalidateLayout(Container c)
c
public void layoutContainer(Container container)
container
public Dimension maximumLayoutSize(Container target)
target
public Dimension minimumLayoutSize(Container container)
container
public Dimension preferredLayoutSize(Container container)
container
public void removeLayoutComponent(Component component)
component
protected void resetSizeAt(int index)
index
public void resetToPreferredSizes()
protected void setComponentToSize(Component c, int size, int location, Insets insets, Dimension containerSize)
c
size
location
insets
containerSize
protected void setSizes(int[] newSizes)
newSizes
.
newSizes
protected void updateComponents()
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |