All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.basic.BasicSplitPaneUI
java.lang.Object
|
+----com.sun.java.swing.plaf.ComponentUI
|
+----com.sun.java.swing.plaf.SplitPaneUI
|
+----com.sun.java.swing.basic.BasicSplitPaneUI
- public class BasicSplitPaneUI
- extends SplitPaneUI
- implements PropertyChangeListener, Serializable
-
beginDragDividerLocation
- Location of the divider when the dragging session began.
-
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.
-
draggingHW
- Set to true in startDragging if any of the children
(not including the nonContinuousLayoutDivider) are heavy
weights.
-
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 providing 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(JComponent)
- Creates a new BasicSplitPaneUI instance.es
-
dragDividerTo(int)
- Messaged during a dragging session to move the divider to the
passed in location.
-
finishDraggingTo(int)
- Messaged to finish the dragging session.
-
finishedPaintingChildren(JSplitPane, Graphics)
- Messaged after the JSplitPane the receiver is providing the look
and feel for paints its children.
-
getDivider()
- Returns the divider between the top Components.
-
getDividerBorderSize()
- Returns the width of one side of the divider border.
-
getDividerLocation()
- Returns the location of the divider.
-
getInsets(JComponent)
- Returns the insets.
-
getMaximumDividerLocation()
- Gets the maximum location of the divider.
-
getMaximumSize(JComponent)
- Returns the maximum size for the passed in component,
This is passed off to the current layoutmanager.
-
getMinimumDividerLocation()
- Gets the minimum location of the divider.
-
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(BasicSplitPaneDivider)
- 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.
-
uninstallUI(JComponent)
- Removes the receiver from the L&F controller of the passed in split
pane.
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 BasicSplitPaneDivider 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.
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
draggingHW
protected boolean draggingHW
- Set to true in startDragging if any of the children
(not including the nonContinuousLayoutDivider) are heavy
weights.
beginDragDividerLocation
protected int beginDragDividerLocation
- Location of the divider when the dragging session began.
BasicSplitPaneUI
public BasicSplitPaneUI()
- Creates a new instance of SplitPaneUI.
createUI
public static ComponentUI createUI(JComponent 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.
- Overrides:
- installUI in class ComponentUI
uninstallUI
public void uninstallUI(JComponent c)
- Removes the receiver from the L&F controller of the passed in split
pane.
- Overrides:
- uninstallUI in class ComponentUI
createDefaultBorder
protected Border createDefaultBorder()
- Creates and returns the Border to be used when the JSplitPane
the reciever is providing 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(BasicSplitPaneDivider newD)
- Sets the Component used to divider the two Components.
getDivider
public BasicSplitPaneDivider 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 BasicSplitPaneDivider createDefaultDivider()
- Creates the default divider.
resetToPreferredSizes
public void resetToPreferredSizes()
- Messaged to reset the preferred sizes.
- Overrides:
- resetToPreferredSizes in class SplitPaneUI
setDividerLocation
public void setDividerLocation(int location)
- Sets the location of the divider to location.
- Overrides:
- setDividerLocation in class SplitPaneUI
getDividerLocation
public int getDividerLocation()
- Returns the location of the divider.
- Overrides:
- getDividerLocation in class SplitPaneUI
getMinimumDividerLocation
public int getMinimumDividerLocation()
- Gets the minimum location of the divider.
- Overrides:
- getMinimumDividerLocation in class SplitPaneUI
getMaximumDividerLocation
public int getMaximumDividerLocation()
- Gets the maximum location of the divider.
- Overrides:
- getMaximumDividerLocation in class SplitPaneUI
finishedPaintingChildren
public void finishedPaintingChildren(JSplitPane jc,
Graphics g)
- Messaged after the JSplitPane the receiver is providing the look
and feel for paints its children.
- Overrides:
- finishedPaintingChildren in class SplitPaneUI
paint
public void paint(Graphics g,
JComponent jc)
- Messaged to paint the look and feel.
- Overrides:
- paint in class ComponentUI
getPreferredSize
public Dimension getPreferredSize(JComponent jc)
- Returns the preferred size for the passed in component,
This is passed off to the current layoutmanager.
- Overrides:
- getPreferredSize in class ComponentUI
getMinimumSize
public Dimension getMinimumSize(JComponent jc)
- Returns the minimum size for the passed in component,
This is passed off to the current layoutmanager.
- Overrides:
- getMinimumSize in class ComponentUI
getMaximumSize
public Dimension getMaximumSize(JComponent jc)
- Returns the maximum size for the passed in component,
This is passed off to the current layoutmanager.
- Overrides:
- getMaximumSize in class ComponentUI
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 side of the divider border.
All Packages Class Hierarchy This Package Previous Next Index