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

Variable Index

 o AUTO_RESIZE_ALL_COMPONENTS
Proportionately resize all component when panel is resized
 o AUTO_RESIZE_LAST_COMPONENT
Auto resize last component only when panel is resized
 o AUTO_RESIZE_OFF
Do not auto resize column when panel is resized.
 o HORIZONTAL
Splits components in a horizontal orientation.
 o MIN_COMPONENT_SIZE
The minimum component size.
 o VERTICAL
Splits components in a vertical orientation.

Constructor Index

 o SplitPanel(int)
Creates a new split panel with the specified orientation.
 o SplitPanel(int, int)
Creates a new split panel with the specified orientation and gaps.
 o SplitPanel(int, int, Insets)
Creates a new split panel with the specified orientation and gaps.

Method Index

 o getAutoResizeMode()
Returns the auto resize mode of the panel.
 o getGap()
Returns the gap between components.
 o getGraphicsForSplit()
Returns the graphics object for split.
 o getOrientation()
Returns the split orientation of this panel.
 o getSizeForSplit()
Returns the size for split.
 o getSplitSizes()
Returns the split sizes.
 o layoutChanged()
Informs that the layout is changed.
 o remove(int)
Removes the component, specified by index, from this container.
 o setAutoResizeMode(int)
Sets the the auto resize mode of the panel.
 o setGap(int)
Sets the gap between components.
 o setLayout(LayoutManager)
Sets the layout manager for this container.
 o setOrientation(int)
Sets the split orientation of this panel.
 o splitValueChanged(int[])
Informs that the split value is changed.

Variables

 o VERTICAL
 public static final int VERTICAL
Splits components in a vertical orientation.

 o HORIZONTAL
 public static final int HORIZONTAL
Splits components in a horizontal orientation.

 o AUTO_RESIZE_OFF
 public static final int AUTO_RESIZE_OFF
Do not auto resize column when panel is resized.

 o AUTO_RESIZE_LAST_COMPONENT
 public static final int AUTO_RESIZE_LAST_COMPONENT
Auto resize last component only when panel is resized

 o AUTO_RESIZE_ALL_COMPONENTS
 public static final int AUTO_RESIZE_ALL_COMPONENTS
Proportionately resize all component when panel is resized

 o MIN_COMPONENT_SIZE
 public static final int MIN_COMPONENT_SIZE
The minimum component size.

Constructors

 o SplitPanel
 public SplitPanel(int orientation)
Creates a new split panel with the specified orientation.

Parameters:
orientation - the split orientation.
 o 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.
 o 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.

Methods

 o getOrientation
 public int getOrientation()
Returns the split orientation of this panel.

Returns:
the split orientation.
 o setOrientation
 public void setOrientation(int orientation)
Sets the split orientation of this panel.

Parameters:
orientation - the split orientation.
 o getGap
 public int getGap()
Returns the gap between components.

Returns:
the gap between components.
 o setGap
 public void setGap(int gap)
Sets the gap between components.

Parameters:
gap - the gap between components
 o 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.
 o 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
 o getSplitSizes
 public int[] getSplitSizes()
Returns the split sizes.

 o setLayout
 public void setLayout(LayoutManager mgr)
Sets the layout manager for this container.

Parameters:
mgr - the specified layout manager.
Overrides:
setLayout in class Container
 o getGraphicsForSplit
 public Graphics getGraphicsForSplit()
Returns the graphics object for split.

Returns:
the graphics object for split.
 o getSizeForSplit
 public Dimension getSizeForSplit()
Returns the size for split.

Returns:
the size for split.
 o splitValueChanged
 public void splitValueChanged(int newSizes[])
Informs that the split value is changed.

 o layoutChanged
 public void layoutChanged()
Informs that the layout is changed.

 o 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