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

public Class MotifTreeCellRenderer

extends DefaultTreeCellRenderer
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.awt.Color, .Component, .Graphics, java.io.Serializable, javax.swing.Icon, .UIManager, javax.swing.plaf.IconUIResource, javax.swing.tree.DefaultTreeCellRenderer

Motif rendered to display a tree cell.
Author
Jeff Dinkins

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
MotifTreeCellRenderer.TreeLeafIcon

Icon for a node with no children.

Field Summary

Modifier and TypeField and Description
pack-priv static final Icon
pack-priv static final int
Inherited from javax.swing.tree.DefaultTreeCellRenderer:
backgroundNonSelectionColorbackgroundSelectionColorborderSelectionColorclosedIconhasFocusleafIconopenIconselectedtextNonSelectionColortextSelectionColor

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Icon
Inherited from javax.swing.tree.DefaultTreeCellRenderer:
firePropertyChangefirePropertyChangefirePropertyChangefirePropertyChangefirePropertyChangefirePropertyChangefirePropertyChangefirePropertyChangefirePropertyChangegetBackgroundNonSelectionColorgetBackgroundSelectionColorgetBorderSelectionColorgetClosedIcongetDefaultClosedIcongetDefaultLeafIcongetDefaultOpenIcongetFontgetLeafIcongetOpenIcongetPreferredSizegetTextNonSelectionColorgetTextSelectionColorgetTreeCellRendererComponentinvalidatepaintrepaintrepaintrepaintrevalidatesetBackgroundsetBackgroundNonSelectionColorsetBackgroundSelectionColorsetBorderSelectionColorsetClosedIconsetFontsetLeafIconsetOpenIconsetTextNonSelectionColorsetTextSelectionColorupdateUIvalidate

Field Detail

LEAF_ICONback to summary
pack-priv static final Icon LEAF_ICON
LEAF_SIZEback to summary
pack-priv static final int LEAF_SIZE

Constructor Detail

MotifTreeCellRendererback to summary
public MotifTreeCellRenderer()

Method Detail

loadLeafIconback to summary
public static Icon loadLeafIcon()
com.sun.java.swing.plaf.motif back to summary

public Class MotifTreeCellRenderer.TreeLeafIcon

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

Icon for a node with no children.

Field Summary

Modifier and TypeField and Description
pack-priv Color
pack-priv Color
pack-priv Color

Constructor Summary

AccessConstructor and Description
public

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

bgback to summary
pack-priv Color bg
highlightback to summary
pack-priv Color highlight
shadowback to summary
pack-priv Color shadow

Constructor Detail

TreeLeafIconback to summary
public TreeLeafIcon()

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