public final class SplitPanelLayout
extends java.lang.Object
implements java.awt.LayoutManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CENTER_EDITOR |
static java.lang.String |
CENTER_GUTTER |
static java.lang.String |
CENTER_SPLIT |
static java.lang.String |
CENTER_SPLIT_TOP |
static java.lang.String |
CENTER_TITLE |
static java.lang.String |
LEFT_EDITOR |
static java.lang.String |
LEFT_GUTTER |
static java.lang.String |
LEFT_OVERVIEW |
static java.lang.String |
LEFT_SPLIT |
static java.lang.String |
LEFT_SPLIT_TOP |
static java.lang.String |
LEFT_TITLE |
static java.lang.String |
RIGHT_EDITOR |
static java.lang.String |
RIGHT_GUTTER |
static java.lang.String |
RIGHT_OVERVIEW |
static java.lang.String |
RIGHT_SCROLLBAR |
static java.lang.String |
RIGHT_TITLE |
static java.lang.String |
SPLITTER_LOCATION_PROPERTY |
Constructor and Description |
---|
SplitPanelLayout() |
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp) |
void |
copyWeightsFromLayout(SplitPanelLayout layout) |
java.awt.Component |
getComponent(java.lang.String key) |
int |
getRightGutterAlignment()
Where the right editor's gutter appears in relation to the editor
|
void |
layoutContainer(java.awt.Container parent) |
static void |
main(java.lang.String[] args) |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent) |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent) |
void |
removeLayoutComponent(java.awt.Component comp) |
void |
setRightGutterAlignment(int alignment)
Set whether right editor's gutter appears to the left or the right of the
editor
|
void |
setThreePaneMode(boolean isThreePaneMode)
Set whether the layout is in three pane mode.
|
public static final java.lang.String LEFT_OVERVIEW
public static final java.lang.String LEFT_GUTTER
public static final java.lang.String LEFT_TITLE
public static final java.lang.String LEFT_EDITOR
public static final java.lang.String LEFT_SPLIT_TOP
public static final java.lang.String LEFT_SPLIT
public static final java.lang.String CENTER_GUTTER
public static final java.lang.String CENTER_TITLE
public static final java.lang.String CENTER_EDITOR
public static final java.lang.String CENTER_SPLIT_TOP
public static final java.lang.String CENTER_SPLIT
public static final java.lang.String RIGHT_TITLE
public static final java.lang.String RIGHT_EDITOR
public static final java.lang.String RIGHT_GUTTER
public static final java.lang.String RIGHT_SCROLLBAR
public static final java.lang.String RIGHT_OVERVIEW
public static final java.lang.String SPLITTER_LOCATION_PROPERTY
public void copyWeightsFromLayout(SplitPanelLayout layout)
public void setRightGutterAlignment(int alignment)
alignment
- SwingConstants.LEFT or SwingConstants.RIGHTpublic int getRightGutterAlignment()
public void setThreePaneMode(boolean isThreePaneMode)
isThreePaneMode
- if true, the layout will display the CENTER_
components and will allocate widths to the editor components based
on the position of two splitters.public java.awt.Component getComponent(java.lang.String key)
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
public static void main(java.lang.String[] args)