org.holtz.zoe.swingzoe
Class JouleIcon

java.lang.Object
  extended by javax.swing.ImageIcon
      extended by org.holtz.zoe.swingzoe.JouleIcon
All Implemented Interfaces:
java.io.Serializable, javax.accessibility.Accessible, javax.swing.Icon

public class JouleIcon
extends javax.swing.ImageIcon

An ImageIcon that can draw a Joule.

Author:
Brian Holtz
See Also:
Serialized Form

Field Summary
 JouleLabel joule
           
 
Constructor Summary
JouleIcon(JouleLabel theJoule)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component jouleLabel, java.awt.Graphics g, int xCorner, int yCorner)
           
 void toggleSelected()
           
 
Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, getImage, getImageLoadStatus, getImageObserver, setDescription, setImage, setImageObserver, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

joule

public JouleLabel joule
Constructor Detail

JouleIcon

public JouleIcon(JouleLabel theJoule)
Method Detail

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface javax.swing.Icon
Overrides:
getIconHeight in class javax.swing.ImageIcon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface javax.swing.Icon
Overrides:
getIconWidth in class javax.swing.ImageIcon

paintIcon

public void paintIcon(java.awt.Component jouleLabel,
                      java.awt.Graphics g,
                      int xCorner,
                      int yCorner)
Specified by:
paintIcon in interface javax.swing.Icon
Overrides:
paintIcon in class javax.swing.ImageIcon

toggleSelected

public void toggleSelected()