java.lang.Object | |
↳ | javax.swing.plaf.basic.BasicSplitPaneUI.BasicHorizontalLayoutManager |
![]() |
LayoutManager for JSplitPanes that have an orientation of HORIZONTAL_SPLIT.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
components | |||||||||||
sizes |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the component at place.
| |||||||||||
Adds the specified component to the layout, using the specified
constraint object.
| |||||||||||
Returns the alignment along the x axis.
| |||||||||||
Returns the alignment along the y axis.
| |||||||||||
Does nothing.
| |||||||||||
Does the actual layout.
| |||||||||||
Returns the maximum layout size, which is Integer.MAX_VALUE
in both directions.
| |||||||||||
Returns the minimum size needed to contain the children.
| |||||||||||
Returns the preferred size needed to contain the children.
| |||||||||||
Removes the specified component from our knowledge.
| |||||||||||
Marks the receiver so that the next time this instance is
laid out it'll ask for the preferred sizes.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the available width based on the container size and
Insets.
| |||||||||||
Returns the left inset, unless the Insets are null in which case
0 is returned.
| |||||||||||
Returns the width of the passed in Components preferred size.
| |||||||||||
Returns the width of the passed in component.
| |||||||||||
Returns the sizes of the components.
| |||||||||||
Resets the size of the Component at the passed in location.
| |||||||||||
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.
| |||||||||||
Sets the sizes to
newSizes . | |||||||||||
Determines the components.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Adds the component at place. Place must be one of JSplitPane.LEFT, RIGHT, TOP, BOTTOM, or null (for the divider).
place | the string to be associated with the component |
---|---|
component | the component to be added |
Adds the specified component to the layout, using the specified constraint object.
comp | the component to be added |
---|---|
constraints | where/how the component is added to the layout. |
Returns the alignment along the x axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.
Returns the alignment along the y axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.
Does nothing. If the developer really wants to change the size of one of the views JSplitPane.resetToPreferredSizes should be messaged.
Does the actual layout.
container | the container to be laid out |
---|
Returns the maximum layout size, which is Integer.MAX_VALUE in both directions.
Returns the minimum size needed to contain the children. The width is the sum of all the childrens min widths and the height is the largest of the childrens minimum heights.
container | the component to be laid out |
---|
Returns the preferred size needed to contain the children. The width is the sum of all the childrens preferred widths and the height is the largest of the childrens preferred heights.
container | the container to be laid out |
---|
Removes the specified component from our knowledge.
component | the component to be removed |
---|
Marks the receiver so that the next time this instance is laid out it'll ask for the preferred sizes.
Returns the available width based on the container size and Insets.
Returns the left inset, unless the Insets are null in which case 0 is returned.
Returns the width of the passed in Components preferred size.
Returns the sizes of the components.
Resets the size of the Component at the passed in location.
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.
Sets the sizes to newSizes
.
Determines the components. This should be called whenever a new instance of this is installed into an existing SplitPane.