Home » openjdk-7 » javax.swing.plaf.nimbus » [javadoc | source]
javax.swing.plaf.nimbus
class: NimbusIcon [javadoc | source]
java.lang.Object
   sun.swing.plaf.synth.SynthIcon
      javax.swing.plaf.nimbus.NimbusIcon

All Implemented Interfaces:
    Icon

An icon that delegates to a painter.
Constructor:
 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)