javax.swing.plaf.metal
Class MetalSplitPaneDivider

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.plaf.basic.BasicSplitPaneDivider
              extended byjavax.swing.plaf.metal.MetalSplitPaneDivider
All Implemented Interfaces:
EventListener, ImageObserver, MenuContainer, java.beans.PropertyChangeListener, Serializable

class MetalSplitPaneDivider
extends BasicSplitPaneDivider

Metal's split pane divider

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder.

Author:
Steve Wilson, Ralph kar

Nested Class Summary
 class MetalSplitPaneDivider.MetalDividerLayout
          Used to layout a MetalSplitPaneDivider.
 
Nested classes inherited from class javax.swing.plaf.basic.BasicSplitPaneDivider
BasicSplitPaneDivider.DividerLayout, BasicSplitPaneDivider.DragController, BasicSplitPaneDivider.MouseHandler, BasicSplitPaneDivider.VerticalDragController
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
private  MetalBumps bumps
           
private  Color controlColor
           
private  MetalBumps focusBumps
           
private  int inset
           
private  Color primaryControlColor
           
 
Fields inherited from class javax.swing.plaf.basic.BasicSplitPaneDivider
dividerSize, dragger, hiddenDivider, leftButton, mouseHandler, ONE_TOUCH_OFFSET, ONE_TOUCH_SIZE, orientation, rightButton, splitPane, splitPaneUI
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MetalSplitPaneDivider(BasicSplitPaneUI ui)
           
 
Method Summary
protected  JButton createLeftOneTouchButton()
          Creates and return an instance of JButton that can be used to collapse the left component in the metal split pane.
protected  JButton createRightOneTouchButton()
          Creates and return an instance of JButton that can be used to collapse the right component in the metal split pane.
(package private)  JButton getLeftButtonFromSuper()
           
(package private)  int getOneTouchOffsetFromSuper()
           
(package private)  int getOneTouchSizeFromSuper()
           
(package private)  int getOrientationFromSuper()
           
(package private)  JButton getRightButtonFromSuper()
           
(package private)  JSplitPane getSplitPaneFromSuper()
           
 void paint(Graphics g)
          Paints the divider.
 
Methods inherited from class javax.swing.plaf.basic.BasicSplitPaneDivider
dragDividerTo, finishDraggingTo, getBasicSplitPaneUI, getBorder, getDividerSize, getInsets, getMinimumSize, getPreferredSize, oneTouchExpandableChanged, prepareForDragging, propertyChange, setBasicSplitPaneUI, setBorder, setDividerSize
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bumps

private MetalBumps bumps

focusBumps

private MetalBumps focusBumps

inset

private int inset

controlColor

private Color controlColor

primaryControlColor

private Color primaryControlColor
Constructor Detail

MetalSplitPaneDivider

public MetalSplitPaneDivider(BasicSplitPaneUI ui)
Method Detail

paint

public void paint(Graphics g)
Description copied from class: BasicSplitPaneDivider
Paints the divider.

Overrides:
paint in class BasicSplitPaneDivider

createLeftOneTouchButton

protected JButton createLeftOneTouchButton()
Creates and return an instance of JButton that can be used to collapse the left component in the metal split pane.

Overrides:
createLeftOneTouchButton in class BasicSplitPaneDivider

createRightOneTouchButton

protected JButton createRightOneTouchButton()
Creates and return an instance of JButton that can be used to collapse the right component in the metal split pane.

Overrides:
createRightOneTouchButton in class BasicSplitPaneDivider

getOneTouchSizeFromSuper

int getOneTouchSizeFromSuper()

getOneTouchOffsetFromSuper

int getOneTouchOffsetFromSuper()

getOrientationFromSuper

int getOrientationFromSuper()

getSplitPaneFromSuper

JSplitPane getSplitPaneFromSuper()

getLeftButtonFromSuper

JButton getLeftButtonFromSuper()

getRightButtonFromSuper

JButton getRightButtonFromSuper()