ui.renderer
Class SpectraIcon

java.lang.Object
  extended by ui.renderer.SpectraIcon
All Implemented Interfaces:
Icon

public class SpectraIcon
extends Object
implements Icon


Constructor Summary
SpectraIcon(Star aStar)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x, int y)
          Draw the icon at the specified location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpectraIcon

public SpectraIcon(Star aStar)
Method Detail

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color

Specified by:
paintIcon in interface Icon