public static class RMIconUtils.ShapeIcon
extends java.lang.Object
implements javax.swing.Icon
Constructor and Description |
---|
ShapeIcon(java.awt.Shape aShape,
java.awt.Color aColor,
int aWidth,
int aHeight)
Creates a new ShapeIcon.
|
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight()
Returns height.
|
int |
getIconWidth()
Returns width.
|
void |
paintIcon(java.awt.Component aComponent,
java.awt.Graphics aGraphics,
int x,
int y)
Paints the icon.
|
public ShapeIcon(java.awt.Shape aShape, java.awt.Color aColor, int aWidth, int aHeight)
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public void paintIcon(java.awt.Component aComponent, java.awt.Graphics aGraphics, int x, int y)
paintIcon
in interface javax.swing.Icon