All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.basic.BasicSplitPaneUI
java.lang.Object
|
+----com.sun.java.swing.basic.BasicSplitPaneUI
- public class BasicSplitPaneUI
- extends Object
- implements PropertyChangeListener, SplitPaneUI
-
border
- Current border.
-
continuousLayout
- Responsible for handling the current dragging session.
-
createdBorder
- Set to true if this instance created the border currently in the
JSplitPane.
-
divider
- Divides the two views.
-
dividerSize
- The size of the divider while the dragging session is valid.
-
lastDragLocation
- Last location the divider was at.
-
layoutManager
- LayoutManager that is created and placed into the split pane.
-
NON_CONTINUOUS_DIVIDER
- The divider used for non-continuous layout is added to the split pane
with this object.
-
nonContinuousLayoutDivider
- Activated during a dragging session when the
-
orientation
- How the views are split.
-
splitPane
- JSplitPane instance this instance is providing the look and
feel for.
-
BasicSplitPaneUI()
- Creates a new instance of SplitPaneUI.
-
createDefaultBorder()
- Creates and returns the Border to be used when the JSplitPane
the reciever is providin the look and feel for does not currently
have a border.
-
createDefaultDivider()
- Creates the default divider.
-
createDefaultNonContinuousLayoutDivider()
- Returns the default non continuous layout divider, which is an
instanceof Canvas that fills the background in dark gray.
-
createUI(JSplitPane)
- Creates a new BasicSplitPaneUI instance.es
-
deinstallUI(JComponent)
- Removes the receiver from the L&F controller of the passed in split
pane.
-
dragDividerTo(int)
- Messaged during a dragging session to move the divider to the
passed in location.
-
finishDraggingTo(int)
- Messaged to finish the dragging session.
-
getDivider()
- Returns the divider between the top Components.
-
getDividerBorderSize()
- Returns the width of one size of the divider border.
-
getDividerLocation()
- Returns the location of the divider.
-
getInsets(JComponent)
- Returns the insets.
-
getMaximumSize(JComponent)
- Returns the maximum size for the passed in component,
This is passed off to the current layoutmanager.
-
getMinimumSize(JComponent)
- Returns the minimum size for the passed in component,
This is passed off to the current layoutmanager.
-
getNonContinuousLayoutDivider()
- Returns the divider to use when the splitPane is configured to
not continuously layout.
-
getPreferredSize(JComponent)
- Returns the preferred size for the passed in component,
This is passed off to the current layoutmanager.
-
getSplitPane()
- Returns the splitpane this instance is currently contained
in.
-
installUI(JComponent)
- Installs the reciever as the L&F for the passed in split pane.
-
paint(Graphics, JComponent)
- Messaged to paint the look and feel.
-
propertyChange(PropertyChangeEvent)
- Messaged from the JSplitPane the reciever is contained in.
-
resetLayoutManager()
- Resets the layout manager based on orientation and messages it
with invalidateLayout to pull in appropriate Components.
-
resetToPreferredSizes()
- Messaged to reset the preferred sizes.
-
setDivider(Component)
- Sets the Component used to divider the two Components.
-
setDividerLocation(int)
- Sets the location of the divider to location.
-
setNonContinuousLayoutDivider(Component)
- Sets the divider to use when the splitPane is configured to
not continuously layout.
-
setNonContinuousLayoutDivider(Component, boolean)
-
-
startDragging()
- Should be messaged before the dragging session starts, resets
lastDragLocation and dividerSize.
NON_CONTINUOUS_DIVIDER
protected static final String NON_CONTINUOUS_DIVIDER
- The divider used for non-continuous layout is added to the split pane
with this object.
splitPane
protected JSplitPane splitPane
- JSplitPane instance this instance is providing the look and
feel for.
orientation
protected int orientation
- How the views are split.
layoutManager
protected BasicSplitPaneUI. BasicHorizontalLayoutManager layoutManager
- LayoutManager that is created and placed into the split pane.
continuousLayout
protected boolean continuousLayout
- Responsible for handling the current dragging session.
divider
protected Component divider
- Divides the two views.
lastDragLocation
protected int lastDragLocation
- Last location the divider was at.
dividerSize
protected int dividerSize
- The size of the divider while the dragging session is valid.
border
protected Border border
- Current border.
createdBorder
protected boolean createdBorder
- Set to true if this instance created the border currently in the
JSplitPane.
nonContinuousLayoutDivider
protected Component nonContinuousLayoutDivider
- Activated during a dragging session when the
BasicSplitPaneUI
public BasicSplitPaneUI()
- Creates a new instance of SplitPaneUI.
createUI
public static SplitPaneUI createUI(JSplitPane x)
- Creates a new BasicSplitPaneUI instance.es
installUI
public void installUI(JComponent c)
- Installs the reciever as the L&F for the passed in split pane.
deinstallUI
public void deinstallUI(JComponent c)
- Removes the receiver from the L&F controller of the passed in split
pane.
createDefaultBorder
protected Border createDefaultBorder()
- Creates and returns the Border to be used when the JSplitPane
the reciever is providin the look and feel for does not currently
have a border.
propertyChange
public void propertyChange(PropertyChangeEvent e)
- Messaged from the JSplitPane the reciever is contained in.
May potentially reset the layout manager and cause a
validate() to be sent.
setDivider
public void setDivider(Component newD)
- Sets the Component used to divider the two Components.
getDivider
public Component getDivider()
- Returns the divider between the top Components.
createDefaultNonContinuousLayoutDivider
protected Component createDefaultNonContinuousLayoutDivider()
- Returns the default non continuous layout divider, which is an
instanceof Canvas that fills the background in dark gray.
setNonContinuousLayoutDivider
protected void setNonContinuousLayoutDivider(Component newDivider)
- Sets the divider to use when the splitPane is configured to
not continuously layout. This divider will only be used during a
dragging session. It is recommended that the passed in component
be a heavy weight.
setNonContinuousLayoutDivider
protected void setNonContinuousLayoutDivider(Component newDivider,
boolean rememberSizes)
getNonContinuousLayoutDivider
public Component getNonContinuousLayoutDivider()
- Returns the divider to use when the splitPane is configured to
not continuously layout. This divider will only be used during a
dragging session.
getSplitPane
public JSplitPane getSplitPane()
- Returns the splitpane this instance is currently contained
in.
createDefaultDivider
public Component createDefaultDivider()
- Creates the default divider.
resetToPreferredSizes
public void resetToPreferredSizes()
- Messaged to reset the preferred sizes.
setDividerLocation
public void setDividerLocation(int location)
- Sets the location of the divider to location.
getDividerLocation
public int getDividerLocation()
- Returns the location of the divider.
paint
public void paint(Graphics g,
JComponent jc)
- Messaged to paint the look and feel.
getPreferredSize
public Dimension getPreferredSize(JComponent jc)
- Returns the preferred size for the passed in component,
This is passed off to the current layoutmanager.
getMinimumSize
public Dimension getMinimumSize(JComponent jc)
- Returns the minimum size for the passed in component,
This is passed off to the current layoutmanager.
getMaximumSize
public Dimension getMaximumSize(JComponent jc)
- Returns the maximum size for the passed in component,
This is passed off to the current layoutmanager.
getInsets
public Insets getInsets(JComponent jc)
- Returns the insets. The insets are returned from the broder insets
of the current border.
resetLayoutManager
protected void resetLayoutManager()
- Resets the layout manager based on orientation and messages it
with invalidateLayout to pull in appropriate Components.
startDragging
protected void startDragging()
- Should be messaged before the dragging session starts, resets
lastDragLocation and dividerSize.
dragDividerTo
protected void dragDividerTo(int location)
- Messaged during a dragging session to move the divider to the
passed in location. If continuousLayout is true the location is
reset and the splitPane validated.
finishDraggingTo
protected void finishDraggingTo(int location)
- Messaged to finish the dragging session. If not continuous display
the dividers location will be reset.
getDividerBorderSize
protected int getDividerBorderSize()
- Returns the width of one size of the divider border.
All Packages Class Hierarchy This Package Previous Next Index