Home » openjdk-7 » javax.swing.plaf.nimbus » [javadoc | source]
class: NimbusIcon [javadoc | source]

All Implemented Interfaces:

An icon that delegates to a painter.
 NimbusIcon(String prefix,
    String key,
    int w,
    int h) 
Method from javax.swing.plaf.nimbus.NimbusIcon Summary:
getIconHeight,   getIconWidth,   paintIcon,   paintIcon
Methods from sun.swing.plaf.synth.SynthIcon:
getIconHeight,   getIconHeight,   getIconHeight,   getIconWidth,   getIconWidth,   getIconWidth,   paintIcon,   paintIcon,   paintIcon
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.nimbus.NimbusIcon Detail:
 public int getIconHeight(SynthContext context) 
 public int getIconWidth(SynthContext context) 
 public  void paintIcon(Component c,
    Graphics g,
    int x,
    int y) 
    Implements the standard Icon interface's paintIcon method as the standard synth stub passes null for the context and this will cause us to not paint any thing, so we override here so that we can paint the enabled state if no synth context is available
 public  void paintIcon(SynthContext context,
    Graphics g,
    int x,
    int y,
    int w,
    int h)