|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.IconUIResource
public class IconUIResource
An icon that is marked as UIResource
, which
indicates that it has been installed by a pluggable
LookAndFeel. Such icons are replaced when the LookAndFeel
changes.
Constructor Summary | |
---|---|
IconUIResource(Icon delegate)
Constructs a IconUIResource that wraps another
icon. |
Method Summary | |
---|---|
int |
getIconHeight()
Returns the height of the icon in pixels. |
int |
getIconWidth()
Returns the width of the icon in pixels. |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Paints the icon by asking the delegate icon to paint itself. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IconUIResource(Icon delegate)
IconUIResource
that wraps another
icon. All messages are forwarded to the delegate icon.
delegate
- the icon that is wrapped by this
IconUIResource
(null
not permitted).Method Detail |
---|
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
c
- the Component whose icon is being painted. Some icons
use this argument to retrieve properties like the
background color.g
- the graphics into which the icon will be painted.x
- the horizontal position of the icon.y
- the vertical position of the icon.public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |