APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.plaf.synth

public Class SynthSplitPaneUI

extends BasicSplitPaneUI
implements PropertyChangeListener, SynthUI
Class Inheritance
All Implemented Interfaces
javax.swing.plaf.synth.SynthUI, javax.swing.plaf.synth.SynthConstants, java.beans.PropertyChangeListener, java.util.EventListener
Imports
java.awt.*, java.awt.event.*, java.beans.*, java.util.*, javax.swing.*, javax.swing.plaf.*, javax.swing.plaf.basic.*

Provides the Synth L&F UI delegate for javax.swing.JSplitPane.
Author
Scott Violet
Since
1.7

Field Summary

Modifier and TypeField and Description
private Color
private SynthStyle
dividerStyle

Style for the divider.

private Set<KeyStroke>
managingFocusBackwardTraversalKeys

Hides javax.swing.plaf.basic.BasicSplitPaneUI.managingFocusBackwardTraversalKeys.

Keys to use for backward focus traversal when the JComponent is managing focus.
private Set<KeyStroke>
managingFocusForwardTraversalKeys

Hides javax.swing.plaf.basic.BasicSplitPaneUI.managingFocusForwardTraversalKeys.

Keys to use for forward focus traversal when the JComponent is managing focus.
private SynthStyle
style

Style for the JSplitPane.

Inherited from javax.swing.plaf.basic.BasicSplitPaneUI:
beginDragDividerLocationdividerdividerResizeToggleKeydividerSizedownKeydraggingHWendKeyfocusListenerhomeKeyKEYBOARD_DIVIDER_MOVE_OFFSETkeyboardDownRightListenerkeyboardEndListenerkeyboardHomeListenerkeyboardResizeToggleListenerkeyboardUpLeftListenerlayoutManagerleftKeyNON_CONTINUOUS_DIVIDERnonContinuousLayoutDividerpropertyChangeListenerrightKeysplitPaneupKey

Constructor Summary

AccessConstructor and Description
public
SynthSplitPaneUI()

Constructs a SynthSplitPaneUI.

Method Summary

Modifier and TypeMethod and Description
public BasicSplitPaneDivider
protected Component
createDefaultNonContinuousLayoutDivider()

Overrides javax.swing.plaf.basic.BasicSplitPaneUI.createDefaultNonContinuousLayoutDivider.

Returns the default non continuous layout divider, which is an instance of Canvas that fills in the background with dark gray.

public static ComponentUI

Returns:

the UI object
createUI
(JComponent
component to create UI object for
x
)

Hides javax.swing.plaf.basic.BasicSplitPaneUI.createUI.

Creates a new SynthSplitPaneUI instance

public void
finishedPaintingChildren(JSplitPane jc, Graphics g)

Overrides javax.swing.plaf.basic.BasicSplitPaneUI.finishedPaintingChildren.

Called when the specified split pane has finished painting its children.

private int
public SynthContext
getContext(JComponent c)

Implements javax.swing.plaf.synth.SynthUI.getContext.

Returns the Context for the specified component.

private SynthContext
getContext(JComponent c, int state)

pack-priv SynthContext
private SynthContext
getContext(JComponent c, Region region, int state)

protected void
protected void
installListeners()

Overrides javax.swing.plaf.basic.BasicSplitPaneUI.installListeners.

Installs the event listeners for the UI.

public void
paint(Graphics
the Graphics object used for painting
g
,
JComponent
the component being painted
c
)

Overrides javax.swing.plaf.basic.BasicSplitPaneUI.paint.

Paints the specified component according to the Look and Feel.

protected void
paint(SynthContext
context for the component being painted
context
,
Graphics
the Graphics object used for painting
g
)

Paints the specified component.

public void
paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)

Implements javax.swing.plaf.synth.SynthUI.paintBorder.

Paints the border.

private void
paintDragDivider(Graphics g, int x, int y, int w, int h)

public void
propertyChange(PropertyChangeEvent e)

Implements java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

private void
protected void
protected void
uninstallListeners()

Overrides javax.swing.plaf.basic.BasicSplitPaneUI.uninstallListeners.

Uninstalls the event listeners from the UI.

public void
update(Graphics
the Graphics object used for painting
g
,
JComponent
the component being painted
c
)

Overrides javax.swing.plaf.ComponentUI.update.

Notifies this UI delegate to repaint the specified component.

private void
Inherited from javax.swing.plaf.basic.BasicSplitPaneUI:
createFocusListenercreateKeyboardDownRightListenercreateKeyboardEndListenercreateKeyboardHomeListenercreateKeyboardResizeToggleListenercreateKeyboardUpLeftListenercreatePropertyChangeListenerdragDividerTofinishDraggingTogetDividergetDividerBorderSizegetDividerLocationgetInsetsgetLastDragLocationgetMaximumDividerLocationgetMaximumSizegetMinimumDividerLocationgetMinimumSizegetNonContinuousLayoutDividergetOrientationgetPreferredSizegetSplitPaneinstallKeyboardActionsinstallUIisContinuousLayoutresetLayoutManagerresetToPreferredSizessetContinuousLayoutsetDividerLocationsetLastDragLocationsetNonContinuousLayoutDividersetNonContinuousLayoutDividersetOrientationstartDragginguninstallKeyboardActionsuninstallUI

Field Detail

dividerDraggingColorback to summary
private Color dividerDraggingColor

Hides javax.swing.plaf.basic.BasicSplitPaneUI.dividerDraggingColor.

dividerStyleback to summary
private SynthStyle dividerStyle

Style for the divider.

managingFocusBackwardTraversalKeysback to summary
private Set<KeyStroke> managingFocusBackwardTraversalKeys

Hides javax.swing.plaf.basic.BasicSplitPaneUI.managingFocusBackwardTraversalKeys.

Keys to use for backward focus traversal when the JComponent is managing focus.

managingFocusForwardTraversalKeysback to summary
private Set<KeyStroke> managingFocusForwardTraversalKeys

Hides javax.swing.plaf.basic.BasicSplitPaneUI.managingFocusForwardTraversalKeys.

Keys to use for forward focus traversal when the JComponent is managing focus.

styleback to summary
private SynthStyle style

Style for the JSplitPane.

Constructor Detail

SynthSplitPaneUIback to summary
public SynthSplitPaneUI()

Constructs a SynthSplitPaneUI.

Method Detail

createDefaultDividerback to summary
public BasicSplitPaneDivider createDefaultDivider()

Overrides javax.swing.plaf.basic.BasicSplitPaneUI.createDefaultDivider.

Creates the default divider.

Annotations
@Override
createDefaultNonContinuousLayoutDividerback to summary
protected Component createDefaultNonContinuousLayoutDivider()

Overrides javax.swing.plaf.basic.BasicSplitPaneUI.createDefaultNonContinuousLayoutDivider.

Doc from javax.swing.plaf.basic.BasicSplitPaneUI.createDefaultNonContinuousLayoutDivider.

Returns the default non continuous layout divider, which is an instance of Canvas that fills in the background with dark gray.

Annotations
@Override
createUIback to summary
public static ComponentUI createUI(JComponent x)

Hides javax.swing.plaf.basic.BasicSplitPaneUI.createUI.

Creates a new SynthSplitPaneUI instance

Parameters
x:JComponent

component to create UI object for

Returns:ComponentUI

the UI object

finishedPaintingChildrenback to summary
public void finishedPaintingChildren(JSplitPane jc, Graphics g)

Overrides javax.swing.plaf.basic.BasicSplitPaneUI.finishedPaintingChildren.

Doc from javax.swing.plaf.basic.BasicSplitPaneUI.finishedPaintingChildren.

Called when the specified split pane has finished painting its children.

Annotations
@Override
getComponentStateback to summary
private int getComponentState(JComponent c, Region subregion)
getContextback to summary
public SynthContext getContext(JComponent c)

Implements javax.swing.plaf.synth.SynthUI.getContext.

Doc from javax.swing.plaf.synth.SynthUI.getContext.

Returns the Context for the specified component.

Annotations
@Override
getContextback to summary
private SynthContext getContext(JComponent c, int state)
getContextback to summary
pack-priv SynthContext getContext(JComponent c, Region region)
getContextback to summary
private SynthContext getContext(JComponent c, Region region, int state)
installDefaultsback to summary
protected void installDefaults()

Overrides javax.swing.plaf.basic.BasicSplitPaneUI.installDefaults.

Installs the UI defaults.

Annotations
@Override
@SuppressWarnings:deprecation
installListenersback to summary
protected void installListeners()

Overrides javax.swing.plaf.basic.BasicSplitPaneUI.installListeners.

Installs the event listeners for the UI.

Annotations
@Override
paintback to summary
public void paint(Graphics g, JComponent c)

Overrides javax.swing.plaf.basic.BasicSplitPaneUI.paint.

Paints the specified component according to the Look and Feel.

This method is not used by Synth Look and Feel. Painting is handled by the paint(SynthContext, Graphics) method.

Parameters
g:Graphics

the Graphics object used for painting

c:JComponent

the component being painted

Annotations
@Override
See Also
paint(SynthContext, Graphics)
paintback to summary
protected void paint(SynthContext context, Graphics g)

Paints the specified component. This implementation does nothing.

Parameters
context:SynthContext

context for the component being painted

g:Graphics

the Graphics object used for painting

See Also
update(Graphics, JComponent)
paintBorderback to summary
public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)

Implements javax.swing.plaf.synth.SynthUI.paintBorder.

Doc from javax.swing.plaf.synth.SynthUI.paintBorder.

Paints the border.

Annotations
@Override
paintDragDividerback to summary
private void paintDragDivider(Graphics g, int x, int y, int w, int h)
propertyChangeback to summary
public void propertyChange(PropertyChangeEvent e)

Implements java.beans.PropertyChangeListener.propertyChange.

Doc from java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

Annotations
@Override
setDividerDraggingColorback to summary
private void setDividerDraggingColor(Graphics g, int loc)
uninstallDefaultsback to summary
protected void uninstallDefaults()

Overrides javax.swing.plaf.basic.BasicSplitPaneUI.uninstallDefaults.

Uninstalls the UI defaults.

Annotations
@Override
uninstallListenersback to summary
protected void uninstallListeners()

Overrides javax.swing.plaf.basic.BasicSplitPaneUI.uninstallListeners.

Uninstalls the event listeners from the UI.

Annotations
@Override
updateback to summary
public void update(Graphics g, JComponent c)

Overrides javax.swing.plaf.ComponentUI.update.

Notifies this UI delegate to repaint the specified component. This method paints the component background, then calls the paint(SynthContext, Graphics) method.

In general, this method does not need to be overridden by subclasses. All Look and Feel rendering code should reside in the paint method.

Parameters
g:Graphics

the Graphics object used for painting

c:JComponent

the component being painted

Annotations
@Override
See Also
paint(SynthContext, Graphics)
updateStyleback to summary
private void updateStyle(JSplitPane splitPane)