All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.bulletproof.gui.SplitPanel

java.lang.Object
   |
   +----com.bulletproof.gui.Component
           |
           +----com.bulletproof.gui.Container
                   |
                   +----com.bulletproof.gui.Panel
                           |
                           +----com.bulletproof.gui.SplitPanel

public class SplitPanel
extends Panel
Class SplitPanel represents a class for laying out components 1, 2 or for panels with a control to adjust the relative size left-right, up-down.


Variable Index

 o PANEL_RESIZED
Panel resized event.

Constructor Index

 o SplitPanel()
Constructs a new Scroll Panel.
 o SplitPanel(int, int)
Constructs a new Scroll Panel with the specified horizontal and vertical gaps between panels.

Method Index

 o addActionListener(ActionListener)
 o getBottomLeftComp()
Get the component in the bottom left of the panel.
 o getBottomRightComp()
Get the component in the bottom right of the panel.
 o getLeftPercentage()
Get the percentage that the left side of the panel occupies.
 o getTopLeftComp()
Get the component in the top left of the panel.
 o getTopPercentage()
Get the percentage that the top half of the panel occupies.
 o getTopRightComp()
Get the component in the top right of the panel.
 o paint(Graphics)
Paints the container.
 o processMouseEvent(MouseEvent)
This method attempts to distribute a mouse event to a lightweight component.
 o removeActionListener(ActionListener)
 o setLeftPercentage(float)
Set the percentage that the left side of the panel occupies.
 o setTopPercentage(float)
Set the percentage that the top half of the panel occupies.

Variables

 o PANEL_RESIZED
 public static final int PANEL_RESIZED
Panel resized event.

Constructors

 o SplitPanel
 public SplitPanel()
Constructs a new Scroll Panel.

 o SplitPanel
 public SplitPanel(int hgap,
                   int vgap)
Constructs a new Scroll Panel with the specified horizontal and vertical gaps between panels.

Parameters:
hgap - the number of horizontal pixels between panels.
vgap - the number of vertical pixels between panels.

Methods

 o addActionListener
 public void addActionListener(ActionListener al)
 o removeActionListener
 public void removeActionListener(ActionListener al)
 o setLeftPercentage
 public void setLeftPercentage(float percent)
Set the percentage that the left side of the panel occupies.

Parameters:
percent - the percentage that the left side of the panel occupies.
 o setTopPercentage
 public void setTopPercentage(float percent)
Set the percentage that the top half of the panel occupies.

Parameters:
percent - the percentage that the top half of the panel occupies.
 o getLeftPercentage
 public float getLeftPercentage()
Get the percentage that the left side of the panel occupies.

Returns:
percent the percentage that the left side of the panel occupies.
 o getTopPercentage
 public float getTopPercentage()
Get the percentage that the top half of the panel occupies.

Returns:
percent the percentage that the top half of the panel occupies.
 o paint
 public synchronized void paint(Graphics g)
Paints the container.

Overrides:
paint in class Container
 o processMouseEvent
 public synchronized void processMouseEvent(MouseEvent me)
This method attempts to distribute a mouse event to a lightweight component.

Overrides:
processMouseEvent in class Container
 o getTopLeftComp
 public Component getTopLeftComp()
Get the component in the top left of the panel.

Returns:
the handle to the required component.
 o getTopRightComp
 public Component getTopRightComp()
Get the component in the top right of the panel.

Returns:
the handle to the required component.
 o getBottomLeftComp
 public Component getBottomLeftComp()
Get the component in the bottom left of the panel.

Returns:
the handle to the required component.
 o getBottomRightComp
 public Component getBottomRightComp()
Get the component in the bottom right of the panel.

Returns:
the handle to the required component.

All Packages  Class Hierarchy  This Package  Previous  Next  Index