edu.umich.visualsoar.util
Class TextIcons
java.lang.Object
|
+--javax.swing.plaf.metal.MetalIconFactory.FileIcon16
|
+--javax.swing.plaf.metal.MetalIconFactory.TreeLeafIcon
|
+--edu.umich.visualsoar.util.TextIcons
- All Implemented Interfaces:
- javax.swing.Icon, java.io.Serializable
- public class TextIcons
- extends javax.swing.plaf.metal.MetalIconFactory.TreeLeafIcon
Author: Nobuo Tamemasa
http://www.codeguru.com/java/articles/187.shtml
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
label
|
private static java.util.Hashtable |
labels
|
Fields inherited from class javax.swing.plaf.metal.MetalIconFactory.FileIcon16 |
|
Method Summary |
static javax.swing.Icon |
getIcon(java.lang.String str)
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
|
private static void |
setDefaultSet()
|
static void |
setLabelSet(java.lang.String ext,
java.lang.String label)
|
Methods inherited from class javax.swing.plaf.metal.MetalIconFactory.TreeLeafIcon |
getAdditionalHeight, getShift |
Methods inherited from class javax.swing.plaf.metal.MetalIconFactory.FileIcon16 |
getIconHeight, getIconWidth |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
label
protected java.lang.String label
labels
private static java.util.Hashtable labels
TextIcons
protected TextIcons()
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
- Specified by:
paintIcon
in interface javax.swing.Icon
- Overrides:
paintIcon
in class javax.swing.plaf.metal.MetalIconFactory.FileIcon16
getIcon
public static javax.swing.Icon getIcon(java.lang.String str)
setLabelSet
public static void setLabelSet(java.lang.String ext,
java.lang.String label)
setDefaultSet
private static void setDefaultSet()