APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.java.swing.plaf.motif

public Class MotifSplitPaneDivider

extends BasicSplitPaneDivider
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.awt.Color, .Cursor, .Dimension, .Graphics, .Insets, java.awt.event.MouseEvent, javax.swing.JSplitPane, .UIManager, javax.swing.plaf.basic.BasicSplitPaneDivider, .BasicSplitPaneUI

Divider used for Motif split pane.
Author
Jeff Dinkins

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
MotifSplitPaneDivider.MotifMouseHandler

MouseHandler is subclassed to only pass off to super if the mouse is in the thumb.

Field Summary

Modifier and TypeField and Description
private static final Cursor
defaultCursor

Default cursor, supers is package private, so we have to have one too.

public static final int
protected Color
protected Color
protected int
private int
protected int
public static final int
protected static final int
protected Color
protected int
private int
protected int
Inherited from javax.swing.plaf.basic.BasicSplitPaneDivider:
dividerSizedraggerhiddenDividerleftButtonmouseHandlerONE_TOUCH_OFFSETONE_TOUCH_SIZEorientationrightButtonsplitPanesplitPaneUI

Constructor Summary

AccessConstructor and Description
public
MotifSplitPaneDivider(BasicSplitPaneUI ui)

Creates a new Motif SplitPaneDivider

Method Summary

Modifier and TypeMethod and Description
private BasicSplitPaneDivider.DragController
public Dimension
getMinimumSize()

Overrides javax.swing.plaf.basic.BasicSplitPaneDivider.getMinimumSize.

The minimums size is the same as the preferredSize

private JSplitPane
private boolean
isInThumb(int x, int y)

Returns true if the point at x, y is inside the thumb.

public void
public void
setBasicSplitPaneUI(BasicSplitPaneUI newUI)

Overrides javax.swing.plaf.basic.BasicSplitPaneDivider.setBasicSplitPaneUI.

Sets the SplitPaneUI that is using the receiver.

public void
setDividerSize(int newSize)

Overrides javax.swing.plaf.basic.BasicSplitPaneDivider.setDividerSize.

overrides to hardcode the size of the divider PENDING(jeff) - rewrite JSplitPane so that this isn't needed

Inherited from javax.swing.plaf.basic.BasicSplitPaneDivider:
createLeftOneTouchButtoncreateRightOneTouchButtondragDividerTofinishDraggingTogetBasicSplitPaneUIgetBordergetDividerSizegetInsetsgetPreferredSizeisMouseOveroneTouchExpandableChangedprepareForDraggingpropertyChangesetBordersetEnabledsetMouseOver

Field Detail

defaultCursorback to summary
private static final Cursor defaultCursor

Default cursor, supers is package private, so we have to have one too.

defaultDividerSizeback to summary
public static final int defaultDividerSize
focusedColorback to summary
protected Color focusedColor
highlightColorback to summary
protected Color highlightColor
hThumbHeightback to summary
protected int hThumbHeight
hThumbOffsetback to summary
private int hThumbOffset
hThumbWidthback to summary
protected int hThumbWidth
minimumThumbSizeback to summary
public static final int minimumThumbSize
padback to summary
protected static final int pad
shadowColorback to summary
protected Color shadowColor
vThumbHeightback to summary
protected int vThumbHeight
vThumbOffsetback to summary
private int vThumbOffset
vThumbWidthback to summary
protected int vThumbWidth

Constructor Detail

MotifSplitPaneDividerback to summary
public MotifSplitPaneDivider(BasicSplitPaneUI ui)

Creates a new Motif SplitPaneDivider

Method Detail

getDraggerback to summary
private BasicSplitPaneDivider.DragController getDragger()
getMinimumSizeback to summary
public Dimension getMinimumSize()

Overrides javax.swing.plaf.basic.BasicSplitPaneDivider.getMinimumSize.

The minimums size is the same as the preferredSize

Annotations
@Override
getSplitPaneback to summary
private JSplitPane getSplitPane()
isInThumbback to summary
private boolean isInThumb(int x, int y)

Returns true if the point at x, y is inside the thumb.

paintback to summary
public void paint(Graphics g)

Overrides javax.swing.plaf.basic.BasicSplitPaneDivider.paint.

Paints the divider.

Annotations
@Override
setBasicSplitPaneUIback to summary
public void setBasicSplitPaneUI(BasicSplitPaneUI newUI)

Overrides javax.swing.plaf.basic.BasicSplitPaneDivider.setBasicSplitPaneUI.

Sets the SplitPaneUI that is using the receiver. This is completely overridden from super to create a different MouseHandler.

Annotations
@Override
setDividerSizeback to summary
public void setDividerSize(int newSize)

Overrides javax.swing.plaf.basic.BasicSplitPaneDivider.setDividerSize.

overrides to hardcode the size of the divider PENDING(jeff) - rewrite JSplitPane so that this isn't needed

Annotations
@Override
com.sun.java.swing.plaf.motif back to summary

private Class MotifSplitPaneDivider.MotifMouseHandler

extends MouseHandler
Class Inheritance

MouseHandler is subclassed to only pass off to super if the mouse is in the thumb. Motif only allows dragging when the thumb is clicked in.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
public void
mousePressed(MouseEvent e)

Overrides javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.mousePressed.

Implements java.awt.event.MouseListener.mousePressed.

Starts the dragging session by creating the appropriate instance of DragController.

Inherited from javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler:
mouseDraggedmouseEnteredmouseExitedmouseReleased

Constructor Detail

MotifMouseHandlerback to summary
private MotifMouseHandler()

Method Detail

mouseMovedback to summary
public void mouseMoved(MouseEvent e)

Overrides javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.mouseMoved.

Implements java.awt.event.MouseMotionListener.mouseMoved.

Doc from javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.mouseMoved.

Resets the cursor based on the orientation.

Annotations
@Override
mousePressedback to summary
public void mousePressed(MouseEvent e)

Overrides javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.mousePressed.

Implements java.awt.event.MouseListener.mousePressed.

Doc from javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.mousePressed.

Starts the dragging session by creating the appropriate instance of DragController.

Annotations
@Override