public static class RMIconUtils.BorderIcon
extends java.lang.Object
implements javax.swing.Icon
Constructor and Description |
---|
BorderIcon(javax.swing.border.Border aBorder,
javax.swing.Icon anIcon,
int aWidth,
int aHeight)
Creates a new BorderIcon.
|
BorderIcon(java.awt.Color aColor,
javax.swing.Icon anIcon,
int aWidth,
int aHeight)
Creates a new BorderIcon with line border in given color.
|
BorderIcon(javax.swing.Icon anIcon,
int aWidth,
int aHeight)
Creates a new BorderIcon with black line border.
|
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 BorderIcon(javax.swing.Icon anIcon, int aWidth, int aHeight)
public BorderIcon(java.awt.Color aColor, javax.swing.Icon anIcon, int aWidth, int aHeight)
public BorderIcon(javax.swing.border.Border aBorder, javax.swing.Icon anIcon, 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