|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.swing.visuals.FlatSplitPane
public class FlatSplitPane
FlatSplitPane provides a way of displaying a JSplitPane divider bar with no other decorations. It does this by removing the outer border of a split pane and then overriding the pane's paint method to only draw the divider. It handles various java Look & Feels, although there is an issue with the drag point for the Motif L&F.
| Field Summary | |
|---|---|
protected int |
bottomRightOffset
|
static int |
HORIZONTAL
|
protected javax.swing.JSplitPane |
splitter
|
protected int |
topLeftOffset
|
static int |
VERTICAL
|
protected boolean |
visible
|
| Constructor Summary | |
|---|---|
FlatSplitPane()
Default constructor. |
|
FlatSplitPane(int orientation)
Constructor taking an orientation parameter, using default start/end offsets. |
|
FlatSplitPane(int orientation,
int offsetTopLeft,
int offsetBottomRight)
Constructor taking an orientation parameter and start/end offsets. |
|
| Method Summary | |
|---|---|
protected void |
addAllListeners()
|
javax.swing.JSplitPane |
getSplitter()
Returns the internal JSplitPane. |
void |
setVisible(boolean mode)
Sets the visibility state of the component. |
| Field Detail |
|---|
public static final int HORIZONTAL
public static final int VERTICAL
protected javax.swing.JSplitPane splitter
protected int topLeftOffset
protected int bottomRightOffset
protected boolean visible
| Constructor Detail |
|---|
public FlatSplitPane()
public FlatSplitPane(int orientation)
orientation - Determines the orientation of the divider, either HORIZONTAL or VERTICAL.
public FlatSplitPane(int orientation,
int offsetTopLeft,
int offsetBottomRight)
orientation - Determines the orientation of the divider, either HORIZONTAL or VERTICAL.offsetTopLeft - The gap between the top or left edge of the panel and the divider.offsetBottomRight - The gap between the bottom or right edge of the panel and the divider.| Method Detail |
|---|
public javax.swing.JSplitPane getSplitter()
public void setVisible(boolean mode)
setVisible in class javax.swing.JComponentmode - Set to true to make the component visible, false otherwise.protected void addAllListeners()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||