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

pack-priv Class SynthArrowButton

extends JButton
implements SwingConstants, UIResource
Class Inheritance
All Implemented Interfaces
javax.swing.plaf.UIResource, javax.swing.SwingConstants
Known Direct Subclasses
javax.swing.plaf.synth.SynthTabbedPaneUI.SynthScrollableTabButton
Annotations
@SuppressWarnings:serial
Imports
java.awt.*, javax.swing.*, javax.swing.plaf.UIResource

JButton object that draws a scaled Arrow in one of the cardinal directions.
Author
Scott Violet

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private int

Constructor Summary

AccessConstructor and Description
public
SynthArrowButton(int direction)

Method Summary

Modifier and TypeMethod and Description
public int
public String
getUIClassID()

Overrides javax.swing.JButton.getUIClassID.

Returns a string that specifies the name of the L&F class that renders this component.

public void
setDirection(int dir)

public void
setFocusable(boolean focusable)

Overrides java.awt.Component.setFocusable.

Sets the focusable state of this Component to the specified value.

public void
updateUI()

Overrides javax.swing.JButton.updateUI.

Resets the UI property to a value from the current look and feel.

Inherited from javax.swing.JButton:
getAccessibleContextisDefaultButtonisDefaultCapableparamStringremoveNotifysetDefaultCapable

Field Detail

directionback to summary
private int direction

Constructor Detail

SynthArrowButtonback to summary
public SynthArrowButton(int direction)

Method Detail

getDirectionback to summary
public int getDirection()
getUIClassIDback to summary
public String getUIClassID()

Overrides javax.swing.JButton.getUIClassID.

Doc from javax.swing.JButton.getUIClassID.

Returns a string that specifies the name of the L&F class that renders this component.

setDirectionback to summary
public void setDirection(int dir)
setFocusableback to summary
public void setFocusable(boolean focusable)

Overrides java.awt.Component.setFocusable.

Doc from java.awt.Component.setFocusable.

Sets the focusable state of this Component to the specified value. This value overrides the Component's default focusability.

updateUIback to summary
public void updateUI()

Overrides javax.swing.JButton.updateUI.

Doc from javax.swing.JButton.updateUI.

Resets the UI property to a value from the current look and feel.

javax.swing.plaf.synth back to summary

private Class SynthArrowButton.SynthArrowButtonUI

extends SynthButtonUI
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Dimension
public Dimension
public Dimension
getPreferredSize(JComponent c)

Overrides javax.swing.plaf.synth.SynthButtonUI.getPreferredSize.

Returns the specified component's preferred size appropriate for the look and feel.

protected void
protected void
paint(SynthContext context, Graphics g)

Overrides javax.swing.plaf.synth.SynthButtonUI.paint.

Paints the specified component.

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

Overrides javax.swing.plaf.synth.SynthButtonUI.paintBorder.

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

Paints the border.

Inherited from javax.swing.plaf.synth.SynthButtonUI:
createUIgetBaselinegetContextgetContextgetDefaultIcongetIcongetMaximumSizegetMinimumSizegetSizingIconinstallListenerspaintpropertyChangeuninstallDefaultsuninstallListenersupdateupdateStyle

Constructor Detail

SynthArrowButtonUIback to summary
private SynthArrowButtonUI()

Method Detail

getMaximumSizeback to summary
public Dimension getMaximumSize()
getMinimumSizeback to summary
public Dimension getMinimumSize()
getPreferredSizeback to summary
public Dimension getPreferredSize(JComponent c)

Overrides javax.swing.plaf.synth.SynthButtonUI.getPreferredSize.

Doc from javax.swing.plaf.synth.SynthButtonUI.getPreferredSize.

Returns the specified component's preferred size appropriate for the look and feel. If null is returned, the preferred size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method returns null.

installDefaultsback to summary
protected void installDefaults(AbstractButton b)

Overrides javax.swing.plaf.synth.SynthButtonUI.installDefaults.

Doc from javax.swing.plaf.synth.SynthButtonUI.installDefaults.

Installs default properties.

paintback to summary
protected void paint(SynthContext context, Graphics g)

Overrides javax.swing.plaf.synth.SynthButtonUI.paint.

Doc from javax.swing.plaf.synth.SynthButtonUI.paint.

Paints the specified component.

paintBackgroundback to summary
pack-priv void paintBackground(SynthContext context, Graphics g, JComponent c)

Overrides javax.swing.plaf.synth.SynthButtonUI.paintBackground.

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

Overrides javax.swing.plaf.synth.SynthButtonUI.paintBorder.

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

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

Paints the border.