org.jhotdraw.draw.action
Class ColorAttributeIcon
java.lang.Object
javax.swing.ImageIcon
org.jhotdraw.draw.action.ColorAttributeIcon
- All Implemented Interfaces:
- java.io.Serializable, javax.accessibility.Accessible, javax.swing.Icon
public class ColorAttributeIcon
- extends javax.swing.ImageIcon
ColorAttributeIcon.
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class javax.swing.ImageIcon |
javax.swing.ImageIcon.AccessibleImageIcon |
| Fields inherited from class javax.swing.ImageIcon |
component, tracker |
|
Method Summary |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics gr,
int x,
int y)
|
| Methods inherited from class javax.swing.ImageIcon |
getAccessibleContext, getDescription, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImage, setImageObserver, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ColorAttributeIcon
public ColorAttributeIcon(DrawingEditor editor,
AttributeKey<java.awt.Color> key,
java.net.URL imageLocation)
- Creates a new instance.
ColorAttributeIcon
public ColorAttributeIcon(DrawingEditor editor,
AttributeKey<java.awt.Color> key,
java.awt.Image image)
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics gr,
int x,
int y)
- Specified by:
paintIcon in interface javax.swing.Icon- Overrides:
paintIcon in class javax.swing.ImageIcon