public static class RMIconUtils.LabelIcon
extends java.lang.Object
implements javax.swing.Icon
Constructor and Description |
---|
LabelIcon(javax.swing.AbstractButton aButton)
Creates a label icon for a button.
|
LabelIcon(java.lang.String aString,
java.awt.Font aFont,
javax.swing.Icon anIcon)
Creates a new label icon.
|
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight()
Returns the height of icon1.
|
int |
getIconWidth()
Returns the width of icon1.
|
javax.swing.JLabel |
getLabel()
Returns the JLabel.
|
void |
paintIcon(java.awt.Component aComponent,
java.awt.Graphics aGraphics,
int x,
int y)
Paints the icons.
|
public LabelIcon(java.lang.String aString, java.awt.Font aFont, javax.swing.Icon anIcon)
public LabelIcon(javax.swing.AbstractButton aButton)
public javax.swing.JLabel getLabel()
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