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

pack-priv Class MetalSplitPaneDivider

extends BasicSplitPaneDivider
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.awt.*, javax.swing.*, javax.swing.border.*, javax.swing.plaf.basic.*

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 JavaBeans has been added to the java.beans package. Please see java.beans.XMLEncoder.

Authors
Steve Wilson, Ralph kar

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class
MetalSplitPaneDivider.MetalDividerLayout

Used to layout a MetalSplitPaneDivider.

Field Summary

Modifier and TypeField and Description
private MetalBumps
private Color
private MetalBumps
private int
private Color
Inherited from javax.swing.plaf.basic.BasicSplitPaneDivider:
dividerSizedraggerhiddenDividerleftButtonmouseHandlerONE_TOUCH_OFFSETONE_TOUCH_SIZEorientationrightButtonsplitPanesplitPaneUI

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected JButton
createLeftOneTouchButton()

Overrides javax.swing.plaf.basic.BasicSplitPaneDivider.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()

Overrides javax.swing.plaf.basic.BasicSplitPaneDivider.createRightOneTouchButton.

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

pack-priv JButton
pack-priv int
pack-priv int
pack-priv int
pack-priv JButton
pack-priv JSplitPane
private void
maybeMakeButtonOpaque(JComponent c)

If necessary c is made opaque.

public void
Inherited from javax.swing.plaf.basic.BasicSplitPaneDivider:
dragDividerTofinishDraggingTogetBasicSplitPaneUIgetBordergetDividerSizegetInsetsgetMinimumSizegetPreferredSizeisMouseOveroneTouchExpandableChangedprepareForDraggingpropertyChangesetBasicSplitPaneUIsetBordersetDividerSizesetEnabledsetMouseOver

Field Detail

bumpsback to summary
private MetalBumps bumps
controlColorback to summary
private Color controlColor
focusBumpsback to summary
private MetalBumps focusBumps
insetback to summary
private int inset
primaryControlColorback to summary
private Color primaryControlColor

Constructor Detail

MetalSplitPaneDividerback to summary
public MetalSplitPaneDivider(BasicSplitPaneUI ui)

Method Detail

createLeftOneTouchButtonback to summary
protected JButton createLeftOneTouchButton()

Overrides javax.swing.plaf.basic.BasicSplitPaneDivider.createLeftOneTouchButton.

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

createRightOneTouchButtonback to summary
protected JButton createRightOneTouchButton()

Overrides javax.swing.plaf.basic.BasicSplitPaneDivider.createRightOneTouchButton.

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

getLeftButtonFromSuperback to summary
pack-priv JButton getLeftButtonFromSuper()
getOneTouchOffsetFromSuperback to summary
pack-priv int getOneTouchOffsetFromSuper()
getOneTouchSizeFromSuperback to summary
pack-priv int getOneTouchSizeFromSuper()
getOrientationFromSuperback to summary
pack-priv int getOrientationFromSuper()
getRightButtonFromSuperback to summary
pack-priv JButton getRightButtonFromSuper()
getSplitPaneFromSuperback to summary
pack-priv JSplitPane getSplitPaneFromSuper()
maybeMakeButtonOpaqueback to summary
private void maybeMakeButtonOpaque(JComponent c)

If necessary c is made opaque.

paintback to summary
public void paint(Graphics g)

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

Doc from javax.swing.plaf.basic.BasicSplitPaneDivider.paint.

Paints the divider.

javax.swing.plaf.metal back to summary

public Class MetalSplitPaneDivider.MetalDividerLayout

extends Object
implements LayoutManager
Class Inheritance
  • java.lang.Object
  • javax.swing.plaf.metal.MetalSplitPaneDivider.MetalDividerLayout
All Implemented Interfaces
java.awt.LayoutManager

Used to layout a MetalSplitPaneDivider. Layout for the divider involves appropriately moving the left/right buttons around.

This class should be treated as a "protected" inner class. Instantiate it only within subclasses of MetalSplitPaneDivider.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addLayoutComponent(String string, Component c)

Implements java.awt.LayoutManager.addLayoutComponent.

If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.

public void
layoutContainer(Container c)

Implements java.awt.LayoutManager.layoutContainer.

Lays out the specified container.

public Dimension
minimumLayoutSize(Container c)

Implements java.awt.LayoutManager.minimumLayoutSize.

Calculates the minimum size dimensions for the specified container, given the components it contains.

public Dimension
preferredLayoutSize(Container c)

Implements java.awt.LayoutManager.preferredLayoutSize.

Calculates the preferred size dimensions for the specified container, given the components it contains.

public void
removeLayoutComponent(Component c)

Implements java.awt.LayoutManager.removeLayoutComponent.

Removes the specified component from the layout.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MetalDividerLayoutback to summary
public MetalDividerLayout()

Method Detail

addLayoutComponentback to summary
public void addLayoutComponent(String string, Component c)

Implements java.awt.LayoutManager.addLayoutComponent.

Doc from java.awt.LayoutManager.addLayoutComponent.

If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.

layoutContainerback to summary
public void layoutContainer(Container c)

Implements java.awt.LayoutManager.layoutContainer.

Doc from java.awt.LayoutManager.layoutContainer.

Lays out the specified container.

minimumLayoutSizeback to summary
public Dimension minimumLayoutSize(Container c)

Implements java.awt.LayoutManager.minimumLayoutSize.

Doc from java.awt.LayoutManager.minimumLayoutSize.

Calculates the minimum size dimensions for the specified container, given the components it contains.

preferredLayoutSizeback to summary
public Dimension preferredLayoutSize(Container c)

Implements java.awt.LayoutManager.preferredLayoutSize.

Doc from java.awt.LayoutManager.preferredLayoutSize.

Calculates the preferred size dimensions for the specified container, given the components it contains.

removeLayoutComponentback to summary
public void removeLayoutComponent(Component c)

Implements java.awt.LayoutManager.removeLayoutComponent.

Doc from java.awt.LayoutManager.removeLayoutComponent.

Removes the specified component from the layout.