org.holtz.zoe
Class BugIcon

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

public class BugIcon
extends javax.swing.ImageIcon

An ImageIcon that can draw a Bug.

Author:
Brian Holtz
See Also:
Serialized Form

Field Summary
 Bug bug
           
 
Constructor Summary
BugIcon(Bug theBug)
           
 
Method Summary
 int bugDiameter()
           
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component comp, 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

bug

public Bug bug
Constructor Detail

BugIcon

public BugIcon(Bug theBug)
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

bugDiameter

public int bugDiameter()

paintIcon

public void paintIcon(java.awt.Component comp,
                      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()