com.sshtools.ui.swing
Class StrokeIcon
java.lang.Object
com.sshtools.ui.swing.StrokeIcon
- All Implemented Interfaces:
- javax.swing.Icon
public class StrokeIcon
- extends java.lang.Object
- implements javax.swing.Icon
- Author:
- $author$
|
Constructor Summary |
StrokeIcon()
Creates a new ColorIcon object. |
StrokeIcon(java.awt.Stroke stroke)
Creates a new ColorIcon object. |
StrokeIcon(java.awt.Stroke stroke,
java.awt.Dimension size)
Creates a new ColorIcon object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StrokeIcon
public StrokeIcon()
- Creates a new ColorIcon object.
StrokeIcon
public StrokeIcon(java.awt.Stroke stroke)
- Creates a new ColorIcon object.
- Parameters:
color -
StrokeIcon
public StrokeIcon(java.awt.Stroke stroke,
java.awt.Dimension size)
- Creates a new ColorIcon object.
- Parameters:
color - size - borderColor -
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
- Specified by:
paintIcon in interface javax.swing.Icon
- Parameters:
c - g - x - y -
setSize
public void setSize(java.awt.Dimension size)
- Parameters:
size -
setStroke
public void setStroke(java.awt.Stroke stroke)
- Parameters:
color -
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth in interface javax.swing.Icon
- Returns:
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight in interface javax.swing.Icon
- Returns:
Copyright © 2003-2009 SSHTOOLS LTD. All Rights Reserved.