| Constructor and Description |
|---|
ShapeIcon()
Creates a new instance of ShapeIcon
|
ShapeIcon(Shape shape) |
| Modifier and Type | Method and Description |
|---|---|
int |
getIconHeight()
Returns the icon's height.
|
int |
getIconWidth()
Returns the icon's width.
|
XIcon |
getScaledInstance(int newWidth,
int newHeight)
FIXME
|
Shape |
getShape()
Getter for property shape.
|
Stroke |
getStroke()
Getter for property stroke.
|
ShapeIcon |
getTransformedInstance(AffineTransform at) |
boolean |
isFilled()
Getter for property filled.
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Draw the icon at the specified location.
|
void |
setFilled(boolean filled)
Setter for property filled.
|
void |
setShape(Shape shape)
Setter for property shape.
|
void |
setStroke(Stroke stroke)
Setter for property stroke.
|
public ShapeIcon()
public ShapeIcon(Shape shape)
public int getIconHeight()
getIconHeight in interface Iconpublic int getIconWidth()
getIconWidth in interface Iconpublic void paintIcon(Component c, Graphics g, int x, int y)
public Shape getShape()
public void setShape(Shape shape)
shape - New value of property shape.public boolean isFilled()
public void setFilled(boolean filled)
filled - New value of property filled.public Stroke getStroke()
public void setStroke(Stroke stroke)
stroke - New value of property stroke.public ShapeIcon getTransformedInstance(AffineTransform at)
public XIcon getScaledInstance(int newWidth, int newHeight)
getScaledInstance in interface XIconCopyright © 2002–2017 SoftSmithy. All rights reserved.