|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.softsmithy.lib.swing.icon.ShapeIcon
public class ShapeIcon
| Constructor Summary | |
|---|---|
ShapeIcon()
Creates a new instance of ShapeIcon |
|
ShapeIcon(Shape shape)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShapeIcon()
public ShapeIcon(Shape shape)
| Method Detail |
|---|
public int getIconHeight()
getIconHeight in interface Iconpublic int getIconWidth()
getIconWidth in interface Icon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
paintIcon in interface Iconpublic 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 XIcon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||