Skip navigation links
oracle.javatools.compare.view
Class SplitPanelLayout
java.lang.Object
oracle.javatools.compare.view.SplitPanelLayout
- All Implemented Interfaces:
- java.awt.LayoutManager
-
public final class SplitPanelLayout
- extends java.lang.Object
- implements java.awt.LayoutManager
A custom layout manager for a two or three pane split compare / merge window. The layout supports a left, center and right editor component along with splitters and gutters. It also contains support for adjusting the variable weight of the three editor components.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LEFT_OVERVIEW
public static final java.lang.String LEFT_OVERVIEW
-
- See Also:
- Constant Field Values
LEFT_GUTTER
public static final java.lang.String LEFT_GUTTER
-
- See Also:
- Constant Field Values
LEFT_TITLE
public static final java.lang.String LEFT_TITLE
-
- See Also:
- Constant Field Values
LEFT_EDITOR
public static final java.lang.String LEFT_EDITOR
-
- See Also:
- Constant Field Values
LEFT_SPLIT_TOP
public static final java.lang.String LEFT_SPLIT_TOP
-
- See Also:
- Constant Field Values
LEFT_SPLIT
public static final java.lang.String LEFT_SPLIT
-
- See Also:
- Constant Field Values
CENTER_GUTTER
public static final java.lang.String CENTER_GUTTER
-
- See Also:
- Constant Field Values
CENTER_TITLE
public static final java.lang.String CENTER_TITLE
-
- See Also:
- Constant Field Values
CENTER_EDITOR
public static final java.lang.String CENTER_EDITOR
-
- See Also:
- Constant Field Values
CENTER_SPLIT_TOP
public static final java.lang.String CENTER_SPLIT_TOP
-
- See Also:
- Constant Field Values
CENTER_SPLIT
public static final java.lang.String CENTER_SPLIT
-
- See Also:
- Constant Field Values
RIGHT_TITLE
public static final java.lang.String RIGHT_TITLE
-
- See Also:
- Constant Field Values
RIGHT_EDITOR
public static final java.lang.String RIGHT_EDITOR
-
- See Also:
- Constant Field Values
RIGHT_GUTTER
public static final java.lang.String RIGHT_GUTTER
-
- See Also:
- Constant Field Values
RIGHT_SCROLLBAR
public static final java.lang.String RIGHT_SCROLLBAR
-
- See Also:
- Constant Field Values
RIGHT_OVERVIEW
public static final java.lang.String RIGHT_OVERVIEW
-
- See Also:
- Constant Field Values
SPLITTER_LOCATION_PROPERTY
public static final java.lang.String SPLITTER_LOCATION_PROPERTY
-
- See Also:
- Constant Field Values
SplitPanelLayout
public SplitPanelLayout()
copyWeightsFromLayout
public void copyWeightsFromLayout(SplitPanelLayout layout)
setRightGutterAlignment
public void setRightGutterAlignment(int alignment)
- Set whether right editor's gutter appears to the left or the right of the editor
-
- Parameters:
alignment
- SwingConstants.LEFT or SwingConstants.RIGHT
getRightGutterAlignment
public int getRightGutterAlignment()
- Where the right editor's gutter appears in relation to the editor
-
- Returns:
- SwingConstants.LEFT or SwingConstants.RIGHT
setThreePaneMode
public void setThreePaneMode(boolean isThreePaneMode)
- Set whether the layout is in three pane mode. This affects the visibility of all components using CENTER_ constraints, and also resets the weights of the three editor components to their default size for the mode (1/2 available space for two pane, 1/3 available space for three pane).
-
- Parameters:
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.
getComponent
public java.awt.Component getComponent(java.lang.String key)
addLayoutComponent
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
-
- Specified by:
addLayoutComponent
in interface java.awt.LayoutManager
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component comp)
-
- Specified by:
removeLayoutComponent
in interface java.awt.LayoutManager
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
-
- Specified by:
minimumLayoutSize
in interface java.awt.LayoutManager
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
-
- Specified by:
preferredLayoutSize
in interface java.awt.LayoutManager
layoutContainer
public void layoutContainer(java.awt.Container parent)
-
- Specified by:
layoutContainer
in interface java.awt.LayoutManager
main
public static void main(java.lang.String[] args)
Skip navigation links
Copyright © 1997, 2013, Oracle. All rights reserved.