org.xulux.guilayer.swing.extensions
Class NyxJRadioButton.IconStub

java.lang.Object
  extended by org.xulux.guilayer.swing.extensions.NyxJRadioButton.IconStub
All Implemented Interfaces:
javax.swing.Icon
Enclosing class:
NyxJRadioButton

public class NyxJRadioButton.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


Constructor Summary
NyxJRadioButton.IconStub(javax.swing.Icon icon)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Set the color of the component just for radiobutton..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NyxJRadioButton.IconStub

public NyxJRadioButton.IconStub(javax.swing.Icon icon)
Parameters:
icon - the icon
Method Detail

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)
Set the color of the component just for radiobutton..

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.