org.xulux.guilayer.swing.extensions
Class NyxJCheckBox.IconStub
java.lang.Object
org.xulux.guilayer.swing.extensions.NyxJCheckBox.IconStub
- All Implemented Interfaces:
- javax.swing.Icon
- Enclosing class:
- NyxJCheckBox
public class NyxJCheckBox.IconStub
- extends java.lang.Object
- implements javax.swing.Icon
A stub to surround an icon in, so they get painted
with the correct background set in the widget
Method Summary |
int |
getIconHeight()
|
int |
getIconWidth()
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Fill a rectangle of the size of the icon with the real
background color. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NyxJCheckBox.IconStub
public NyxJCheckBox.IconStub(javax.swing.Icon icon)
- the icon stub
- Parameters:
icon
- the icon
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interface javax.swing.Icon
- See Also:
Icon.getIconHeight()
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interface javax.swing.Icon
- See Also:
Icon.getIconWidth()
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
- Fill a rectangle of the size of the icon with the real
background color.
- Specified by:
paintIcon
in interface javax.swing.Icon
- See Also:
Icon.paintIcon(java.awt.Component, java.awt.Graphics, int, int)
Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.