public class HorizontalLabeledIcon
extends java.lang.Object
implements javax.swing.Icon
Constructor and Description |
---|
HorizontalLabeledIcon(javax.swing.Icon icon,
java.lang.String text,
java.lang.String mnemonic) |
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
public HorizontalLabeledIcon(javax.swing.Icon icon, java.lang.String text, java.lang.String mnemonic)
icon
- not null
icon.text
- to be painted under the icon. This parameter can
be null
if text isn't specified. In that case LabeledIcon
-
Method Detail
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interface javax.swing.Icon
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interface javax.swing.Icon
-
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
- Specified by:
paintIcon
in interface javax.swing.Icon