|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.metal.MetalComboBoxIcon
public class MetalComboBoxIcon
An icon used by the MetalComboBoxUI
class.
Constructor Summary | |
---|---|
MetalComboBoxIcon()
Creates a new icon. |
Method Summary | |
---|---|
int |
getIconHeight()
Returns the icon height, which for this icon is 5 pixels. |
int |
getIconWidth()
Returns the icon width, which for this icon is 10 pixels. |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Paints the icon at the location (x, y). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetalComboBoxIcon()
Method Detail |
---|
public int getIconWidth()
getIconWidth
in interface Icon
10
.public int getIconHeight()
getIconHeight
in interface Icon
5
.public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
c
- the combo box (ignored here).g
- the graphics device.x
- the x coordinate.y
- the y coordinate.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |