Class CLIPBasicSplitPaneDivider

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.plaf.basic.BasicSplitPaneDivider
              extended by CLIPBasicSplitPaneDivider
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener

public class CLIPBasicSplitPaneDivider
extends javax.swing.plaf.basic.BasicSplitPaneDivider

This is a customized split pane divider for the CLIP application. The purpose of the class is to override the OneTouch buttons on the divider to expand or contract the tilebin by a number of pixels equal to the current TileSet's tile pixel width. The following site was used as reference to figure out how to get access to the OneTouch buttons: http://forum.java.sun.com/thread.jspa?forumID=57&threadID=712863.

See Also:
CLIPSplitPaneUI, UserInterface.mainSplit, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicSplitPaneDivider
javax.swing.plaf.basic.BasicSplitPaneDivider.DividerLayout, javax.swing.plaf.basic.BasicSplitPaneDivider.DragController, javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler, javax.swing.plaf.basic.BasicSplitPaneDivider.VerticalDragController
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private) static int assumedDefaultTileWidth
          Value used as tile width when the current tile set is null.
(package private)  CLIPFrame parentFrame
          The frame the application runs in.
private static long serialVersionUID
           
 
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.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
CLIPBasicSplitPaneDivider(CLIPSplitPaneUI bspUI)
          The Constructor.
 
Method Summary
protected  javax.swing.JButton createLeftOneTouchButton()
          Creates the left OneTouch button and attaches a mouse listener to it.
protected  javax.swing.JButton createRightOneTouchButton()
          Creates the right OneTouch button and attaches a mouse listener to it.
 
Methods inherited from class javax.swing.plaf.basic.BasicSplitPaneDivider
dragDividerTo, finishDraggingTo, getBasicSplitPaneUI, getBorder, getDividerSize, getInsets, getMinimumSize, getPreferredSize, isMouseOver, oneTouchExpandableChanged, paint, prepareForDragging, propertyChange, setBasicSplitPaneUI, setBorder, setDividerSize, setMouseOver
 
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, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getListeners, getMaximumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, 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, getMousePosition, 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, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, 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, setMaximumSize, setMinimumSize, setName, setPreferredSize, 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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

assumedDefaultTileWidth

static final int assumedDefaultTileWidth
Value used as tile width when the current tile set is null.

See Also:
Constant Field Values

parentFrame

CLIPFrame parentFrame
The frame the application runs in.

See Also:
CLIPFrame
Constructor Detail

CLIPBasicSplitPaneDivider

public CLIPBasicSplitPaneDivider(CLIPSplitPaneUI bspUI)
The Constructor. It sets the parentFrame object.

See Also:
CLIPSplitPaneUI
Method Detail

createRightOneTouchButton

protected javax.swing.JButton createRightOneTouchButton()
Creates the right OneTouch button and attaches a mouse listener to it. The only mouse event that fires code is the mousePressed event. This event causes the divider to move a tile width's distance to the right. It also records this event if in tile arrangement mode and the tile set does not equal null.

Overrides:
createRightOneTouchButton in class javax.swing.plaf.basic.BasicSplitPaneDivider
Returns:
The right OneTouch button

createLeftOneTouchButton

protected javax.swing.JButton createLeftOneTouchButton()
Creates the left OneTouch button and attaches a mouse listener to it. The only mouse event that fires code is the mousePressed event. This event causes the divider to move a tile width's distance to the left. It also records this event if in tile arrangement mode and the tile set does not equal null.

Overrides:
createLeftOneTouchButton in class javax.swing.plaf.basic.BasicSplitPaneDivider
Returns:
The left OneTouch button