com.alee.laf.splitpane
Class WebSplitPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.SplitPaneUI
          extended by javax.swing.plaf.basic.BasicSplitPaneUI
              extended by com.alee.laf.splitpane.WebSplitPaneUI
All Implemented Interfaces:
BorderMethods, SwingMethods

public class WebSplitPaneUI
extends javax.swing.plaf.basic.BasicSplitPaneUI
implements BorderMethods

Custom UI for JSplitPane component.

Author:
Mikle Garin

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicSplitPaneUI
javax.swing.plaf.basic.BasicSplitPaneUI.BasicHorizontalLayoutManager, javax.swing.plaf.basic.BasicSplitPaneUI.BasicVerticalLayoutManager, javax.swing.plaf.basic.BasicSplitPaneUI.FocusHandler, javax.swing.plaf.basic.BasicSplitPaneUI.KeyboardDownRightHandler, javax.swing.plaf.basic.BasicSplitPaneUI.KeyboardEndHandler, javax.swing.plaf.basic.BasicSplitPaneUI.KeyboardHomeHandler, javax.swing.plaf.basic.BasicSplitPaneUI.KeyboardResizeToggleHandler, javax.swing.plaf.basic.BasicSplitPaneUI.KeyboardUpLeftHandler, javax.swing.plaf.basic.BasicSplitPaneUI.PropertyHandler
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicSplitPaneUI
beginDragDividerLocation, divider, dividerResizeToggleKey, dividerSize, downKey, draggingHW, endKey, focusListener, homeKey, KEYBOARD_DIVIDER_MOVE_OFFSET, keyboardDownRightListener, keyboardEndListener, keyboardHomeListener, keyboardResizeToggleListener, keyboardUpLeftListener, layoutManager, leftKey, NON_CONTINUOUS_DIVIDER, nonContinuousLayoutDivider, rightKey, splitPane, upKey
 
Constructor Summary
WebSplitPaneUI()
           
 
Method Summary
 javax.swing.plaf.basic.BasicSplitPaneDivider createDefaultDivider()
          
protected  java.awt.Component createDefaultNonContinuousLayoutDivider()
          
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Returns an instance of the WebSplitPaneUI for the specified component.
 void finishedPaintingChildren(javax.swing.JSplitPane jc, java.awt.Graphics g)
          
 java.awt.Color getDragDividerColor()
          Returns dragged divider color.
 java.awt.Insets getMargin()
          Returns component margin.
 void installUI(javax.swing.JComponent c)
          Installs UI in the specified component.
 void setDragDividerColor(java.awt.Color dragDividerColor)
          Sets dragged divider color.
 void setMargin(java.awt.Insets margin)
          Sets component margin.
 void uninstallUI(javax.swing.JComponent c)
          Uninstalls UI from the specified component.
 void updateBorder()
          Updates custom WebLaF border.
 
Methods inherited from class javax.swing.plaf.basic.BasicSplitPaneUI
createFocusListener, createKeyboardDownRightListener, createKeyboardEndListener, createKeyboardHomeListener, createKeyboardResizeToggleListener, createKeyboardUpLeftListener, createPropertyChangeListener, dragDividerTo, finishDraggingTo, getDivider, getDividerBorderSize, getDividerLocation, getInsets, getLastDragLocation, getMaximumDividerLocation, getMaximumSize, getMinimumDividerLocation, getMinimumSize, getNonContinuousLayoutDivider, getOrientation, getPreferredSize, getSplitPane, installDefaults, installKeyboardActions, installListeners, isContinuousLayout, paint, resetLayoutManager, resetToPreferredSizes, setContinuousLayout, setDividerLocation, setLastDragLocation, setNonContinuousLayoutDivider, setNonContinuousLayoutDivider, setOrientation, startDragging, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSplitPaneUI

public WebSplitPaneUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Returns an instance of the WebSplitPaneUI for the specified component. This tricky method is used by UIManager to create component UIs when needed.

Parameters:
c - component that will use UI instance
Returns:
instance of the WebSplitPaneUI

installUI

public void installUI(javax.swing.JComponent c)
Installs UI in the specified component.

Overrides:
installUI in class javax.swing.plaf.basic.BasicSplitPaneUI
Parameters:
c - component for this UI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Uninstalls UI from the specified component.

Overrides:
uninstallUI in class javax.swing.plaf.basic.BasicSplitPaneUI
Parameters:
c - component with this UI

updateBorder

public void updateBorder()
Updates custom WebLaF border.

Specified by:
updateBorder in interface BorderMethods

getMargin

public java.awt.Insets getMargin()
Returns component margin.

Returns:
component margin

setMargin

public void setMargin(java.awt.Insets margin)
Sets component margin.

Parameters:
margin - component margin

getDragDividerColor

public java.awt.Color getDragDividerColor()
Returns dragged divider color.

Returns:
dragged divider color

setDragDividerColor

public void setDragDividerColor(java.awt.Color dragDividerColor)
Sets dragged divider color.

Parameters:
dragDividerColor - dragged divider color

createDefaultDivider

public javax.swing.plaf.basic.BasicSplitPaneDivider createDefaultDivider()

Overrides:
createDefaultDivider in class javax.swing.plaf.basic.BasicSplitPaneUI

createDefaultNonContinuousLayoutDivider

protected java.awt.Component createDefaultNonContinuousLayoutDivider()

Overrides:
createDefaultNonContinuousLayoutDivider in class javax.swing.plaf.basic.BasicSplitPaneUI

finishedPaintingChildren

public void finishedPaintingChildren(javax.swing.JSplitPane jc,
                                     java.awt.Graphics g)

Overrides:
finishedPaintingChildren in class javax.swing.plaf.basic.BasicSplitPaneUI