|
CubeTwister 2.0alpha142 2012-02-11 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.gui.VectorIcon
public class VectorIcon
An Icon which is composed of a set of java.awt.Shape's.
| Constructor Summary | |
|---|---|
VectorIcon(java.awt.Shape p)
Creates a new icon which is filled and drawn with the foreground color of the component. |
|
VectorIcon(java.awt.Shape[] p,
int width,
int height,
java.awt.Color fillColor,
java.awt.Color outlineColor)
Creates a new icon. |
|
VectorIcon(java.awt.Shape p,
java.awt.Color fillColor,
java.awt.Color outlineColor)
Creates a new icon. |
|
VectorIcon(java.awt.Shape p,
int width,
int height)
Creates a new icon which is filled and drawn with the foreground color of the component. |
|
VectorIcon(java.awt.Shape p,
int width,
int height,
java.awt.Color fillColor,
java.awt.Color outlineColor)
Creates a new icon. |
|
| Method Summary | |
|---|---|
int |
getIconHeight()
Gets the height of the icon. |
int |
getIconWidth()
Gets the width of the icon. |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics gr,
int x,
int y)
Draws the icon at the specified location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VectorIcon(java.awt.Shape[] p,
int width,
int height,
java.awt.Color fillColor,
java.awt.Color outlineColor)
p - An Array of Shapes.width - The fixed width of the icon.height - The fixed height of the icon.fillColor - The fill color of the icon, or null if not filled.outlineColor - The outline color of the icon, or null if not outlined.
public VectorIcon(java.awt.Shape p,
int width,
int height,
java.awt.Color fillColor,
java.awt.Color outlineColor)
p - The Shape.width - The fixed width of the icon.height - The fixed height of the icon.fillColor - The fill color of the icon, or null if not filled.outlineColor - The outline color of the icon, or null if not outlined.
public VectorIcon(java.awt.Shape p,
int width,
int height)
p - The Shape.width - The fixed width of the icon.height - The fixed height of the icon.public VectorIcon(java.awt.Shape p)
p - The Shape.
public VectorIcon(java.awt.Shape p,
java.awt.Color fillColor,
java.awt.Color outlineColor)
p - The Shape.fillColor - The fill color of the icon, or null if not filled.outlineColor - The outline color of the icon, or null if not outlined.| Method Detail |
|---|
public void paintIcon(java.awt.Component c,
java.awt.Graphics gr,
int x,
int y)
paintIcon in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Iconpublic int getIconHeight()
getIconHeight in interface javax.swing.Icon
|
(c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||