All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.awt.SplitPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----jp.kyasu.awt.KContainer
|
+----jp.kyasu.awt.Panel
|
+----jp.kyasu.awt.SplitPanel
- public class SplitPanel
- extends Panel
The SplitPanel
is the lightweight container class that can
resize components by using split bars.
- Version:
- 11 Dec 1998
- Author:
- Kazuki YASUMATSU
-
AUTO_RESIZE_ALL_COMPONENTS
- Proportionately resize all component when panel is resized
-
AUTO_RESIZE_LAST_COMPONENT
- Auto resize last component only when panel is resized
-
AUTO_RESIZE_OFF
- Do not auto resize column when panel is resized.
-
HORIZONTAL
- Splits components in a horizontal orientation.
-
MIN_COMPONENT_SIZE
- The minimum component size.
-
VERTICAL
- Splits components in a vertical orientation.
-
SplitPanel(int)
- Creates a new split panel with the specified orientation.
-
SplitPanel(int, int)
- Creates a new split panel with the specified orientation and gaps.
-
SplitPanel(int, int, Insets)
- Creates a new split panel with the specified orientation and gaps.
-
getAutoResizeMode()
- Returns the auto resize mode of the panel.
-
getGap()
- Returns the gap between components.
-
getGraphicsForSplit()
- Returns the graphics object for split.
-
getOrientation()
- Returns the split orientation of this panel.
-
getSizeForSplit()
- Returns the size for split.
-
getSplitSizes()
- Returns the split sizes.
-
layoutChanged()
- Informs that the layout is changed.
-
remove(int)
- Removes the component, specified by
index
,
from this container.
-
setAutoResizeMode(int)
- Sets the the auto resize mode of the panel.
-
setGap(int)
- Sets the gap between components.
-
setLayout(LayoutManager)
- Sets the layout manager for this container.
-
setOrientation(int)
- Sets the split orientation of this panel.
-
splitValueChanged(int[])
- Informs that the split value is changed.
VERTICAL
public static final int VERTICAL
- Splits components in a vertical orientation.
HORIZONTAL
public static final int HORIZONTAL
- Splits components in a horizontal orientation.
AUTO_RESIZE_OFF
public static final int AUTO_RESIZE_OFF
- Do not auto resize column when panel is resized.
AUTO_RESIZE_LAST_COMPONENT
public static final int AUTO_RESIZE_LAST_COMPONENT
- Auto resize last component only when panel is resized
AUTO_RESIZE_ALL_COMPONENTS
public static final int AUTO_RESIZE_ALL_COMPONENTS
- Proportionately resize all component when panel is resized
MIN_COMPONENT_SIZE
public static final int MIN_COMPONENT_SIZE
- The minimum component size.
SplitPanel
public SplitPanel(int orientation)
- Creates a new split panel with the specified orientation.
- Parameters:
- orientation - the split orientation.
SplitPanel
public SplitPanel(int orientation,
int gap)
- Creates a new split panel with the specified orientation and gaps.
- Parameters:
- orientation - the split orientation.
- gap - the gap between components.
SplitPanel
public SplitPanel(int orientation,
int gap,
Insets insets)
- Creates a new split panel with the specified orientation and gaps.
- Parameters:
- orientation - the split orientation.
- gap - the gap between components.
- insets - the insets of the panel.
getOrientation
public int getOrientation()
- Returns the split orientation of this panel.
- Returns:
- the split orientation.
setOrientation
public void setOrientation(int orientation)
- Sets the split orientation of this panel.
- Parameters:
- orientation - the split orientation.
getGap
public int getGap()
- Returns the gap between components.
- Returns:
- the gap between components.
setGap
public void setGap(int gap)
- Sets the gap between components.
- Parameters:
- gap - the gap between components
getAutoResizeMode
public int getAutoResizeMode()
- Returns the auto resize mode of the panel. The default is
AUTO_RESIZE_LAST_COMPONENT.
- Returns:
- the auto resize mode of the table.
setAutoResizeMode
public void setAutoResizeMode(int mode)
- Sets the the auto resize mode of the panel.
- Parameters:
- mode - the auto resize mode.
- See Also:
- AUTO_RESIZE_OFF, AUTO_RESIZE_LAST_COMPONENT, AUTO_RESIZE_ALL_COMPONENTS
getSplitSizes
public int[] getSplitSizes()
- Returns the split sizes.
setLayout
public void setLayout(LayoutManager mgr)
- Sets the layout manager for this container.
- Parameters:
- mgr - the specified layout manager.
- Overrides:
- setLayout in class Container
getGraphicsForSplit
public Graphics getGraphicsForSplit()
- Returns the graphics object for split.
- Returns:
- the graphics object for split.
getSizeForSplit
public Dimension getSizeForSplit()
- Returns the size for split.
- Returns:
- the size for split.
splitValueChanged
public void splitValueChanged(int newSizes[])
- Informs that the split value is changed.
layoutChanged
public void layoutChanged()
- Informs that the layout is changed.
remove
public void remove(int index)
- Removes the component, specified by
index
,
from this container.
- Parameters:
- index - the index of the component to be removed.
- Overrides:
- remove in class Container
All Packages Class Hierarchy This Package Previous Next Index