API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.basic. BasicSplitPaneUI View Source
Author(s)
Scott Violet
Steve Wilson
Ralph Kar
Since
Version
1.83 06/07/06
Serial
Hierarchy
 Object
      ComponentUI
          SplitPaneUI
              BasicSplitPaneUI
Implements
Subclasses
Description
public class BasicSplitPaneUI
A Basic L&F implementation of the SplitPaneUI.
See also:   
Constructors
public BasicSplitPaneUI ()
Methods
Hide/Show inherited methods
public boolean contains (JComponent c, int x, int y) [Inherited From ComponentUI]
  Returns true if the specified x,y location is contained within the look and feel's defined shape of the specified component.
public BasicSplitPaneDivider createDefaultDivider ()
Creates the default divider.
protected Component createDefaultNonContinuousLayoutDivider ()
Returns the default non continuous layout divider, which is an instanceof Canvas that fills the background in dark gray.
protected FocusListener createFocusListener ()
Creates a FocusListener for the JSplitPane UI.
@Deprecated
protected ActionListener createKeyboardDownRightListener ()
  As of Java 2 platform v1.3 this method is no longer used.
@Deprecated
protected ActionListener createKeyboardEndListener ()
  As of Java 2 platform v1.3 this method is no longer used.
@Deprecated
protected ActionListener createKeyboardHomeListener ()
  As of Java 2 platform v1.3 this method is no longer used.
@Deprecated
protected ActionListener createKeyboardResizeToggleListener ()
  As of Java 2 platform v1.3 this method is no longer used.
@Deprecated
protected ActionListener createKeyboardUpLeftListener ()
  As of Java 2 platform v1.3 this method is no longer used.
protected PropertyChangeListener createPropertyChangeListener ()
Creates a PropertyChangeListener for the JSplitPane UI.
publicstatic ComponentUI createUI (JComponent x) [Overrides ComponentUI]
Creates a new BasicSplitPaneUI instance
protected void dragDividerTo (int location)
  Messaged during a dragging session to move the divider to the passed in location.
protected void finishDraggingTo (int location)
  Messaged to finish the dragging session.
public void finishedPaintingChildren (JSplitPane jc, Graphics g) [Specified in SplitPaneUI]
Messaged after the JSplitPane the receiver is providing the look and feel for paints its children.
public Accessible getAccessibleChild (JComponent c, int i) [Inherited From ComponentUI]
  Returns the ith Accessible child of the object.
public int getAccessibleChildrenCount (JComponent c) [Inherited From ComponentUI]
  Returns the number of accessible children in the object.
public int getBaseline (JComponent c, int width, int height) [Inherited From ComponentUI]
  Returns the baseline.
public BaselineResizeBehavior getBaselineResizeBehavior (JComponent c) [Inherited From ComponentUI]
  Returns an enum indicating how the baseline of he component changes as the size changes.
public BasicSplitPaneDivider getDivider ()
Returns the divider between the top Components.
@Deprecated
protected int getDividerBorderSize ()
  As of Java 2 platform v1.3 this method is no longer used.
public int getDividerLocation (JSplitPane jc) [Specified in SplitPaneUI]
Returns the location of the divider, which may differ from what the splitpane thinks the location of the divider is.
pack-private InputMap getInputMap (int condition)
public Insets getInsets (JComponent jc)
  Returns the insets.
pack-private int getKeyboardMoveIncrement ()
 
public int getLastDragLocation ()
Returns the last drag location of the JSplitPane.
public int getMaximumDividerLocation (JSplitPane jc) [Specified in SplitPaneUI]
Gets the maximum location of the divider.
public Dimension getMaximumSize (JComponent jc) [Overrides ComponentUI]
Returns the maximum size for the passed in component, This is passed off to the current layoutmanager.
public int getMinimumDividerLocation (JSplitPane jc) [Specified in SplitPaneUI]
Gets the minimum location of the divider.
public Dimension getMinimumSize (JComponent jc) [Overrides ComponentUI]
Returns the minimum size for the passed in component, This is passed off to the current layoutmanager.
public Component getNonContinuousLayoutDivider ()
  Returns the divider to use when the splitPane is configured to not continuously layout.
public int getOrientation ()
Returns the orientation for the JSplitPane.
public Dimension getPreferredSize (JComponent jc) [Overrides ComponentUI]
Returns the preferred size for the passed in component, This is passed off to the current layoutmanager.
public JSplitPane getSplitPane ()
Returns the splitpane this instance is currently contained in.
protected void installDefaults ()
Installs the UI defaults.
protected void installKeyboardActions ()
Installs the keyboard actions for the UI.
protected void installListeners ()
Installs the event listeners for the UI.
public void installUI (JComponent c) [Overrides ComponentUI]
Installs the UI.
public boolean isContinuousLayout ()
Determines wether the JSplitPane is set to use a continuous layout.
pack-privatestatic void loadActionMap (LazyActionMap map)
public void paint (Graphics g, JComponent jc) [Overrides ComponentUI]
Messaged to paint the look and feel.
protected void resetLayoutManager ()
Resets the layout manager based on orientation and messages it with invalidateLayout to pull in appropriate Components.
public void resetToPreferredSizes (JSplitPane jc) [Specified in SplitPaneUI]
Messaged to reset the preferred sizes.
public void setContinuousLayout (boolean b)
Turn continuous layout on/off.
public void setDividerLocation (JSplitPane jc, int location) [Specified in SplitPaneUI]
Sets the location of the divider to location.
pack-private void setKeepHidden (boolean keepHidden)
Set the value to indicate if one of the splitpane sides is expanded.
public void setLastDragLocation (int l)
Set the last drag location of the JSplitPane.
protected void setNonContinuousLayoutDivider (Component newDivider)
  Sets the divider to use when the splitPane is configured to not continuously layout.
protected void setNonContinuousLayoutDivider (Component newDivider, boolean rememberSizes)
Sets the divider to use.
public void setOrientation (int orientation)
Set the orientation for the JSplitPane.
protected void startDragging ()
Should be messaged before the dragging session starts, resets lastDragLocation and dividerSize.
protected void uninstallDefaults ()
Uninstalls the UI defaults.
protected void uninstallKeyboardActions ()
Uninstalls the keyboard actions for the UI.
protected void uninstallListeners ()
Uninstalls the event listeners for the UI.
public void uninstallUI (JComponent c) [Overrides ComponentUI]
Uninstalls the UI.
public void update (Graphics g, JComponent c) [Inherited From ComponentUI]
  Notifies this UI delegate that it's time to paint the specified component.
Fields
Hide/Show inherited fields
protected int beginDragDividerLocation
Location of the divider when the dragging session began.
protected BasicSplitPaneDivider divider
Instance of the divider for this JSplitPane.
@Deprecated
protected KeyStroke dividerResizeToggleKey
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protected int dividerSize
The size of the divider while the dragging session is valid.
@Deprecated
protected KeyStroke downKey
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protected boolean draggingHW
Set to true in startDragging if any of the children (not including the nonContinuousLayoutDivider) are heavy weights.
@Deprecated
protected KeyStroke endKey
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protected FocusListener focusListener
Instance of the FocusListener for this JSplitPane.
@Deprecated
protected KeyStroke homeKey
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
pack-private boolean ignoreDividerLocationChange
If true, setDividerLocation does nothing.
protectedstatic int KEYBOARD_DIVIDER_MOVE_OFFSET
How far (relative) the divider does move when it is moved around by the cursor keys on the keyboard.
@Deprecated
protected ActionListener keyboardDownRightListener
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
@Deprecated
protected ActionListener keyboardEndListener
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
@Deprecated
protected ActionListener keyboardHomeListener
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
@Deprecated
protected ActionListener keyboardResizeToggleListener
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
@Deprecated
protected ActionListener keyboardUpLeftListener
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protected BasicHorizontalLayoutManager layoutManager
LayoutManager that is created and placed into the split pane.
@Deprecated
protected KeyStroke leftKey
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protectedfinalstatic String NON_CONTINUOUS_DIVIDER = "nonContinuousDivider"
The divider used for non-continuous layout is added to the split pane with this object.
protected Component nonContinuousLayoutDivider
Instance for the shadow of the divider when non continuous layout is being used.
pack-private boolean painted
Indicates that we have painted once.
protected PropertyChangeListener propertyChangeListener
Instance of the PropertyChangeListener for this JSplitPane.
@Deprecated
protected KeyStroke rightKey
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protected JSplitPane splitPane
JSplitPane instance this instance is providing the look and feel for.
@Deprecated
protected KeyStroke upKey
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
Nested Classes
  BasicSplitPaneUI.PropertyHandler
Implementation of the PropertyChangeListener that the JSplitPane UI uses.
  BasicSplitPaneUI.FocusHandler
Implementation of the FocusListener that the JSplitPane UI uses.
  BasicSplitPaneUI.KeyboardUpLeftHandler
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.
  BasicSplitPaneUI.KeyboardDownRightHandler
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.
  BasicSplitPaneUI.KeyboardHomeHandler
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.
  BasicSplitPaneUI.KeyboardEndHandler
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.
  BasicSplitPaneUI.KeyboardResizeToggleHandler
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.
  BasicSplitPaneUI.BasicHorizontalLayoutManager
LayoutManager for JSplitPanes that have an orientation of HORIZONTAL_SPLIT.
  BasicSplitPaneUI.BasicVerticalLayoutManager
LayoutManager used for JSplitPanes with an orientation of VERTICAL_SPLIT.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar