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.
-
PANEL_RESIZED
- Panel resized event.
-
SplitPanel()
- Constructs a new Scroll Panel.
-
SplitPanel(int, int)
- Constructs a new Scroll Panel with the specified horizontal and vertical
gaps between panels.
-
addActionListener(ActionListener)
-
-
getBottomLeftComp()
- Get the component in the bottom left of the panel.
-
getBottomRightComp()
- Get the component in the bottom right of the panel.
-
getLeftPercentage()
- Get the percentage that the left side of the panel occupies.
-
getTopLeftComp()
- Get the component in the top left of the panel.
-
getTopPercentage()
- Get the percentage that the top half of the panel occupies.
-
getTopRightComp()
- Get the component in the top right of the panel.
-
paint(Graphics)
-
Paints the container.
-
processMouseEvent(MouseEvent)
- This method attempts to distribute a mouse event to a lightweight
component.
-
removeActionListener(ActionListener)
-
-
setLeftPercentage(float)
- Set the percentage that the left side of the panel occupies.
-
setTopPercentage(float)
- Set the percentage that the top half of the panel occupies.
PANEL_RESIZED
public static final int PANEL_RESIZED
- Panel resized event.
SplitPanel
public SplitPanel()
- Constructs a new Scroll Panel.
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.
addActionListener
public void addActionListener(ActionListener al)
removeActionListener
public void removeActionListener(ActionListener al)
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.
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.
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.
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.
paint
public synchronized void paint(Graphics g)
- Paints the container.
- Overrides:
- paint in class Container
processMouseEvent
public synchronized void processMouseEvent(MouseEvent me)
- This method attempts to distribute a mouse event to a lightweight
component.
- Overrides:
- processMouseEvent in class Container
getTopLeftComp
public Component getTopLeftComp()
- Get the component in the top left of the panel.
- Returns:
- the handle to the required component.
getTopRightComp
public Component getTopRightComp()
- Get the component in the top right of the panel.
- Returns:
- the handle to the required component.
getBottomLeftComp
public Component getBottomLeftComp()
- Get the component in the bottom left of the panel.
- Returns:
- the handle to the required component.
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