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

public Class BasicIconFactory

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Annotations
@SuppressWarnings:serial
Imports
javax.swing.*, javax.swing.plaf.UIResource, java.awt.Graphics, .Color, .Component, .Polygon, java.io.Serializable

Factory object that can vend Icons appropriate for the basic L & F.

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
David Kloba, Georges Saab

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static Icon
private static Icon
private static Icon
private static Icon
private static Icon

Constructor Summary

AccessConstructor and Description
public
BasicIconFactory()

Constructs a BasicIconFactory.

Method Summary

Modifier and TypeMethod and Description
public static Icon

Returns:

an empty frame icon
createEmptyFrameIcon
()

Returns an empty frame icon.

public static Icon

Returns:

a check box icon
getCheckBoxIcon
()

Returns a check box icon.

public static Icon

Returns:

a check box menu item icon
getCheckBoxMenuItemIcon
()

Returns a check box menu item icon.

public static Icon

Returns:

a menu arrow icon
getMenuArrowIcon
()

Returns a menu arrow icon.

public static Icon

Returns:

a menu item arrow icon
getMenuItemArrowIcon
()

Returns a menu item arrow icon.

public static Icon

Returns:

a menu item check icon
getMenuItemCheckIcon
()

Returns a menu item check icon.

public static Icon

Returns:

a radio button icon
getRadioButtonIcon
()

Returns a radio button icon.

public static Icon

Returns:

a radio button menu item icon
getRadioButtonMenuItemIcon
()

Returns a radio button menu item icon.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

checkBoxIconback to summary
private static Icon checkBoxIcon
checkBoxMenuItemIconback to summary
private static Icon checkBoxMenuItemIcon
frame_iconback to summary
private static Icon frame_icon
radioButtonIconback to summary
private static Icon radioButtonIcon
radioButtonMenuItemIconback to summary
private static Icon radioButtonMenuItemIcon

Constructor Detail

BasicIconFactoryback to summary
public BasicIconFactory()

Constructs a BasicIconFactory.

Method Detail

createEmptyFrameIconback to summary
public static Icon createEmptyFrameIcon()

Returns an empty frame icon.

Returns:Icon

an empty frame icon

getCheckBoxIconback to summary
public static Icon getCheckBoxIcon()

Returns a check box icon.

Returns:Icon

a check box icon

getCheckBoxMenuItemIconback to summary
public static Icon getCheckBoxMenuItemIcon()

Returns a check box menu item icon.

Returns:Icon

a check box menu item icon

getMenuArrowIconback to summary
public static Icon getMenuArrowIcon()

Returns a menu arrow icon.

Returns:Icon

a menu arrow icon

getMenuItemArrowIconback to summary
public static Icon getMenuItemArrowIcon()

Returns a menu item arrow icon.

Returns:Icon

a menu item arrow icon

getMenuItemCheckIconback to summary
public static Icon getMenuItemCheckIcon()

Returns a menu item check icon.

Returns:Icon

a menu item check icon

getRadioButtonIconback to summary
public static Icon getRadioButtonIcon()

Returns a radio button icon.

Returns:Icon

a radio button icon

getRadioButtonMenuItemIconback to summary
public static Icon getRadioButtonMenuItemIcon()

Returns a radio button menu item icon.

Returns:Icon

a radio button menu item icon

javax.swing.plaf.basic back to summary

private Class BasicIconFactory.CheckBoxIcon

extends Object
implements Icon, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, javax.swing.Icon

Field Summary

Modifier and TypeField and Description
pack-priv static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Returns the icon's height.

public int
getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Returns the icon's width.

public void
paintIcon(Component c, Graphics g, int x, int y)

Implements javax.swing.Icon.paintIcon.

Draw the icon at the specified location.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

csizeback to summary
pack-priv static final int csize

Constructor Detail

CheckBoxIconback to summary
private CheckBoxIcon()

Method Detail

getIconHeightback to summary
public int getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Doc from javax.swing.Icon.getIconHeight.

Returns the icon's height.

getIconWidthback to summary
public int getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Doc from javax.swing.Icon.getIconWidth.

Returns the icon's width.

paintIconback to summary
public void paintIcon(Component c, Graphics g, int x, int y)

Implements javax.swing.Icon.paintIcon.

Doc from javax.swing.Icon.paintIcon.

Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.

javax.swing.plaf.basic back to summary

private Class BasicIconFactory.CheckBoxMenuItemIcon

extends Object
implements Icon, UIResource, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, javax.swing.plaf.UIResource, javax.swing.Icon

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Returns the icon's height.

public int
getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Returns the icon's width.

public void
paintIcon(Component c, Graphics g, int x, int y)

Implements javax.swing.Icon.paintIcon.

Draw the icon at the specified location.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CheckBoxMenuItemIconback to summary
private CheckBoxMenuItemIcon()

Method Detail

getIconHeightback to summary
public int getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Doc from javax.swing.Icon.getIconHeight.

Returns the icon's height.

getIconWidthback to summary
public int getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Doc from javax.swing.Icon.getIconWidth.

Returns the icon's width.

paintIconback to summary
public void paintIcon(Component c, Graphics g, int x, int y)

Implements javax.swing.Icon.paintIcon.

Doc from javax.swing.Icon.paintIcon.

Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.

javax.swing.plaf.basic back to summary

private Class BasicIconFactory.EmptyFrameIcon

extends Object
implements Icon, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, javax.swing.Icon

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Returns the icon's height.

public int
getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Returns the icon's width.

public void
paintIcon(Component c, Graphics g, int x, int y)

Implements javax.swing.Icon.paintIcon.

Draw the icon at the specified location.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

heightback to summary
pack-priv int height
widthback to summary
pack-priv int width

Constructor Detail

EmptyFrameIconback to summary
private EmptyFrameIcon()

Method Detail

getIconHeightback to summary
public int getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Doc from javax.swing.Icon.getIconHeight.

Returns the icon's height.

getIconWidthback to summary
public int getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Doc from javax.swing.Icon.getIconWidth.

Returns the icon's width.

paintIconback to summary
public void paintIcon(Component c, Graphics g, int x, int y)

Implements javax.swing.Icon.paintIcon.

Doc from javax.swing.Icon.paintIcon.

Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.

javax.swing.plaf.basic back to summary

private Class BasicIconFactory.RadioButtonIcon

extends Object
implements Icon, UIResource, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, javax.swing.plaf.UIResource, javax.swing.Icon

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Returns the icon's height.

public int
getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Returns the icon's width.

public void
paintIcon(Component c, Graphics g, int x, int y)

Implements javax.swing.Icon.paintIcon.

Draw the icon at the specified location.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RadioButtonIconback to summary
private RadioButtonIcon()

Method Detail

getIconHeightback to summary
public int getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Doc from javax.swing.Icon.getIconHeight.

Returns the icon's height.

getIconWidthback to summary
public int getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Doc from javax.swing.Icon.getIconWidth.

Returns the icon's width.

paintIconback to summary
public void paintIcon(Component c, Graphics g, int x, int y)

Implements javax.swing.Icon.paintIcon.

Doc from javax.swing.Icon.paintIcon.

Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.

javax.swing.plaf.basic back to summary

private Class BasicIconFactory.RadioButtonMenuItemIcon

extends Object
implements Icon, UIResource, Serializable
Class Inheritance
  • java.lang.Object
  • javax.swing.plaf.basic.BasicIconFactory.RadioButtonMenuItemIcon
All Implemented Interfaces
java.io.Serializable, javax.swing.plaf.UIResource, javax.swing.Icon

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Returns the icon's height.

public int
getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Returns the icon's width.

public void
paintIcon(Component c, Graphics g, int x, int y)

Implements javax.swing.Icon.paintIcon.

Draw the icon at the specified location.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RadioButtonMenuItemIconback to summary
private RadioButtonMenuItemIcon()

Method Detail

getIconHeightback to summary
public int getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Doc from javax.swing.Icon.getIconHeight.

Returns the icon's height.

getIconWidthback to summary
public int getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Doc from javax.swing.Icon.getIconWidth.

Returns the icon's width.

paintIconback to summary
public void paintIcon(Component c, Graphics g, int x, int y)

Implements javax.swing.Icon.paintIcon.

Doc from javax.swing.Icon.paintIcon.

Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.