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

Variable Index

 o border
Current border.
 o continuousLayout
Responsible for handling the current dragging session.
 o createdBorder
Set to true if this instance created the border currently in the JSplitPane.
 o divider
Divides the two views.
 o dividerSize
The size of the divider while the dragging session is valid.
 o lastDragLocation
Last location the divider was at.
 o layoutManager
LayoutManager that is created and placed into the split pane.
 o NON_CONTINUOUS_DIVIDER
The divider used for non-continuous layout is added to the split pane with this object.
 o nonContinuousLayoutDivider
Activated during a dragging session when the
 o orientation
How the views are split.
 o splitPane
JSplitPane instance this instance is providing the look and feel for.

Constructor Index

 o BasicSplitPaneUI()
Creates a new instance of SplitPaneUI.

Method Index

 o 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.
 o createDefaultDivider()
Creates the default divider.
 o createDefaultNonContinuousLayoutDivider()
Returns the default non continuous layout divider, which is an instanceof Canvas that fills the background in dark gray.
 o createUI(JSplitPane)
Creates a new BasicSplitPaneUI instance.es
 o deinstallUI(JComponent)
Removes the receiver from the L&F controller of the passed in split pane.
 o dragDividerTo(int)
Messaged during a dragging session to move the divider to the passed in location.
 o finishDraggingTo(int)
Messaged to finish the dragging session.
 o getDivider()
Returns the divider between the top Components.
 o getDividerBorderSize()
Returns the width of one size of the divider border.
 o getDividerLocation()
Returns the location of the divider.
 o getInsets(JComponent)
Returns the insets.
 o getMaximumSize(JComponent)
Returns the maximum size for the passed in component, This is passed off to the current layoutmanager.
 o getMinimumSize(JComponent)
Returns the minimum size for the passed in component, This is passed off to the current layoutmanager.
 o getNonContinuousLayoutDivider()
Returns the divider to use when the splitPane is configured to not continuously layout.
 o getPreferredSize(JComponent)
Returns the preferred size for the passed in component, This is passed off to the current layoutmanager.
 o getSplitPane()
Returns the splitpane this instance is currently contained in.
 o installUI(JComponent)
Installs the reciever as the L&F for the passed in split pane.
 o paint(Graphics, JComponent)
Messaged to paint the look and feel.
 o propertyChange(PropertyChangeEvent)
Messaged from the JSplitPane the reciever is contained in.
 o resetLayoutManager()
Resets the layout manager based on orientation and messages it with invalidateLayout to pull in appropriate Components.
 o resetToPreferredSizes()
Messaged to reset the preferred sizes.
 o setDivider(Component)
Sets the Component used to divider the two Components.
 o setDividerLocation(int)
Sets the location of the divider to location.
 o setNonContinuousLayoutDivider(Component)
Sets the divider to use when the splitPane is configured to not continuously layout.
 o setNonContinuousLayoutDivider(Component, boolean)
 o startDragging()
Should be messaged before the dragging session starts, resets lastDragLocation and dividerSize.

Variables

 o 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.

 o splitPane
 protected JSplitPane splitPane
JSplitPane instance this instance is providing the look and feel for.

 o orientation
 protected int orientation
How the views are split.

 o layoutManager
 protected BasicSplitPaneUI. BasicHorizontalLayoutManager layoutManager
LayoutManager that is created and placed into the split pane.

 o continuousLayout
 protected boolean continuousLayout
Responsible for handling the current dragging session.

 o divider
 protected Component divider
Divides the two views.

 o lastDragLocation
 protected int lastDragLocation
Last location the divider was at.

 o dividerSize
 protected int dividerSize
The size of the divider while the dragging session is valid.

 o border
 protected Border border
Current border.

 o createdBorder
 protected boolean createdBorder
Set to true if this instance created the border currently in the JSplitPane.

 o nonContinuousLayoutDivider
 protected Component nonContinuousLayoutDivider
Activated during a dragging session when the

Constructors

 o BasicSplitPaneUI
 public BasicSplitPaneUI()
Creates a new instance of SplitPaneUI.

Methods

 o createUI
 public static SplitPaneUI createUI(JSplitPane x)
Creates a new BasicSplitPaneUI instance.es

 o installUI
 public void installUI(JComponent c)
Installs the reciever as the L&F for the passed in split pane.

 o deinstallUI
 public void deinstallUI(JComponent c)
Removes the receiver from the L&F controller of the passed in split pane.

 o 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.

 o 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.

 o setDivider
 public void setDivider(Component newD)
Sets the Component used to divider the two Components.

 o getDivider
 public Component getDivider()
Returns the divider between the top Components.

 o createDefaultNonContinuousLayoutDivider
 protected Component createDefaultNonContinuousLayoutDivider()
Returns the default non continuous layout divider, which is an instanceof Canvas that fills the background in dark gray.

 o 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.

 o setNonContinuousLayoutDivider
 protected void setNonContinuousLayoutDivider(Component newDivider,
                                              boolean rememberSizes)
 o 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.

 o getSplitPane
 public JSplitPane getSplitPane()
Returns the splitpane this instance is currently contained in.

 o createDefaultDivider
 public Component createDefaultDivider()
Creates the default divider.

 o resetToPreferredSizes
 public void resetToPreferredSizes()
Messaged to reset the preferred sizes.

 o setDividerLocation
 public void setDividerLocation(int location)
Sets the location of the divider to location.

 o getDividerLocation
 public int getDividerLocation()
Returns the location of the divider.

 o paint
 public void paint(Graphics g,
                   JComponent jc)
Messaged to paint the look and feel.

 o getPreferredSize
 public Dimension getPreferredSize(JComponent jc)
Returns the preferred size for the passed in component, This is passed off to the current layoutmanager.

 o getMinimumSize
 public Dimension getMinimumSize(JComponent jc)
Returns the minimum size for the passed in component, This is passed off to the current layoutmanager.

 o getMaximumSize
 public Dimension getMaximumSize(JComponent jc)
Returns the maximum size for the passed in component, This is passed off to the current layoutmanager.

 o getInsets
 public Insets getInsets(JComponent jc)
Returns the insets. The insets are returned from the broder insets of the current border.

 o resetLayoutManager
 protected void resetLayoutManager()
Resets the layout manager based on orientation and messages it with invalidateLayout to pull in appropriate Components.

 o startDragging
 protected void startDragging()
Should be messaged before the dragging session starts, resets lastDragLocation and dividerSize.

 o 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.

 o finishDraggingTo
 protected void finishDraggingTo(int location)
Messaged to finish the dragging session. If not continuous display the dividers location will be reset.

 o getDividerBorderSize
 protected int getDividerBorderSize()
Returns the width of one size of the divider border.


All Packages  Class Hierarchy  This Package  Previous  Next  Index