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
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon