org.jhotdraw.draw.action
Class StrokeIcon
java.lang.Object
org.jhotdraw.draw.action.StrokeIcon
- All Implemented Interfaces:
- javax.swing.Icon
public class StrokeIcon
- extends java.lang.Object
- implements javax.swing.Icon
StrokeIcon.
- Version:
- 1.0 25. November 2003 Created.
- Author:
- Werner Randelshofer
|
Field Summary |
private java.awt.Stroke |
stroke
|
|
Constructor Summary |
StrokeIcon(java.awt.Stroke stroke)
Creates a new instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stroke
private java.awt.Stroke stroke
StrokeIcon
public StrokeIcon(java.awt.Stroke stroke)
- Creates a new instance.
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight in interface javax.swing.Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth in interface javax.swing.Icon
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics gr,
int x,
int y)
- Specified by:
paintIcon in interface javax.swing.Icon