public class VectorIcon
extends java.lang.Object
implements javax.swing.Icon
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.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