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

public Class MotifIconFactory

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Annotations
@SuppressWarnings:serial
Imports
java.awt.Color, .Component, .Graphics, java.io.Serializable, javax.swing.AbstractButton, .ButtonModel, .Icon, .JCheckBox, .UIManager, javax.swing.plaf.UIResource

Icon factory for the CDE/Motif Look and Feel
Author
Georges Saab

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static Icon
private static Icon

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Icon
public static Icon
public static Icon
public static Icon
public static Icon
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

checkBoxIconback to summary
private static Icon checkBoxIcon
radioButtonIconback to summary
private static Icon radioButtonIcon

Constructor Detail

MotifIconFactoryback to summary
public MotifIconFactory()

Method Detail

getCheckBoxIconback to summary
public static Icon getCheckBoxIcon()
getMenuArrowIconback to summary
public static Icon getMenuArrowIcon()
getMenuItemArrowIconback to summary
public static Icon getMenuItemArrowIcon()
getMenuItemCheckIconback to summary
public static Icon getMenuItemCheckIcon()
getRadioButtonIconback to summary
public static Icon getRadioButtonIcon()
com.sun.java.swing.plaf.motif back to summary

private Class MotifIconFactory.CheckBoxIcon

extends Object
implements Icon, UIResource, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, javax.swing.plaf.UIResource, javax.swing.Icon
Annotations
@SuppressWarnings:serial

Field Summary

Modifier and TypeField and Description
private Color
pack-priv static final int
private Color
private Color
private Color
private Color

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
drawCheckBezel(Graphics g, int x, int y, int csize, boolean shade, boolean out, boolean check, boolean flat)

public void
drawCheckBezelOut(Graphics g, int x, int y, int csize)

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

controlback to summary
private Color control
csizeback to summary
pack-priv static final int csize
foregroundback to summary
private Color foreground
highlightback to summary
private Color highlight
lightShadowback to summary
private Color lightShadow
shadowback to summary
private Color shadow

Constructor Detail

CheckBoxIconback to summary
private CheckBoxIcon()

Method Detail

drawCheckBezelback to summary
public void drawCheckBezel(Graphics g, int x, int y, int csize, boolean shade, boolean out, boolean check, boolean flat)
drawCheckBezelOutback to summary
public void drawCheckBezelOut(Graphics g, int x, int y, int csize)
getIconHeightback to summary
public int getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Doc from javax.swing.Icon.getIconHeight.

Returns the icon's height.

Annotations
@Override
getIconWidthback to summary
public int getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Doc from javax.swing.Icon.getIconWidth.

Returns the icon's width.

Annotations
@Override
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.

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

private Class MotifIconFactory.RadioButtonIcon

extends Object
implements Icon, UIResource, Serializable
Class Inheritance
  • java.lang.Object
  • com.sun.java.swing.plaf.motif.MotifIconFactory.RadioButtonIcon
All Implemented Interfaces
java.io.Serializable, javax.swing.plaf.UIResource, javax.swing.Icon
Annotations
@SuppressWarnings:serial

Field Summary

Modifier and TypeField and Description
private Color
private Color
private Color

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

dotback to summary
private Color dot
highlightback to summary
private Color highlight
shadowback to summary
private Color shadow

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.

Annotations
@Override
getIconWidthback to summary
public int getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Doc from javax.swing.Icon.getIconWidth.

Returns the icon's width.

Annotations
@Override
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.

Annotations
@Override