org.tigris.swidgets
Class Splitter
JComponent
org.tigris.swidgets.Splitter
public class Splitter
extends JComponent
Acts as a seperator between components and will automatically
resize those components when the splitter is moved by dragging the
mouse across it.
- Bob Tarling
TODO: Bring splitter to top when not dynamic resize
TODO: Add constructor and getter/setter for dynamic resize
TODO: Implement the setLocation method, anything currently calling
setLocation should then call super.setLocation.
protected static int | EAST - The side of the splitter to be hidden on a quick hide action: EAST
|
static Orientation | HORIZONTAL_SPLIT - The orientation for a horizontal splitter
|
protected static int | NONE - The side of the splitter of the component to be hidden on
a quick hide action.
|
protected static int | NORTH - The side of the splitter to be hidden on a quick hide action: NORTH
|
protected static int | SOUTH - The side of the splitter to be hidden on a quick hide action: SOUTH
|
static Orientation | VERTICAL_SPLIT - The orientation for a vertical splitter
|
protected static int | WEST - The side of the splitter to be hidden on a quick hide action: WEST
|
Component | getRegisteredComponent(int side) - Get a registered component.
|
void | paintComponent(Graphics g) - Delegates painting to the UI component responsible for the split pane
divider.
|
void | registerComponent(int side, Component comp) - Register a component to be resized by this splitter.
|
void | setQuickHide(int side) - Change the quick hide action.
|
void | setSize(Dimension d) - Resizes the divider delegate when this component is resized.
|
void | setSize(int width, int height) - Resizes the divider delegate when this component is resized.
|
void | toggleHide()
|
EAST
protected static final int EAST
The side of the splitter to be hidden on a quick hide action: EAST
HORIZONTAL_SPLIT
public static final Orientation HORIZONTAL_SPLIT
The orientation for a horizontal splitter
NONE
protected static final int NONE
The side of the splitter of the component to be hidden on
a quick hide action.
NORTH
protected static final int NORTH
The side of the splitter to be hidden on a quick hide action: NORTH
SOUTH
protected static final int SOUTH
The side of the splitter to be hidden on a quick hide action: SOUTH
VERTICAL_SPLIT
public static final Orientation VERTICAL_SPLIT
The orientation for a vertical splitter
WEST
protected static final int WEST
The side of the splitter to be hidden on a quick hide action: WEST
Splitter
public Splitter(Orientation orientation)
The constructor
getRegisteredComponent
public Component getRegisteredComponent(int side)
Get a registered component.
paintComponent
public void paintComponent(Graphics g)
Delegates painting to the UI component responsible for the split pane
divider.
registerComponent
public void registerComponent(int side,
Component comp)
Register a component to be resized by this splitter.
comp
- the component to be resized
setQuickHide
public void setQuickHide(int side)
Change the quick hide action. If quick hide is turned on then
an arrow button appears on the splitter to allow the user to
instantly reposition the splitter to hide one of the
components.
setSize
public void setSize(Dimension d)
Resizes the divider delegate when this component is resized.
java.awt.Component.setSize(java.awt.Dimension)
setSize
public void setSize(int width,
int height)
Resizes the divider delegate when this component is resized.
java.awt.Component.setSize(int, int)
toggleHide
public void toggleHide()