com.googlecode.sarasvati.visual.icon
Class AbstractNodeIcon

java.lang.Object
  extended by com.googlecode.sarasvati.visual.icon.AbstractNodeIcon
All Implemented Interfaces:
Icon
Direct Known Subclasses:
OvalNodeIcon, RectangularNodeIcon, SmallCircleNodeIcon

public abstract class AbstractNodeIcon
extends Object
implements Icon


Field Summary
static int HEIGHT
           
static int WIDTH
           
 
Constructor Summary
AbstractNodeIcon()
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 void redrawImage()
           
abstract  void redrawImage(Graphics2D g)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIDTH

public static final int WIDTH
See Also:
Constant Field Values

HEIGHT

public static final int HEIGHT
Constructor Detail

AbstractNodeIcon

public AbstractNodeIcon()
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)
Specified by:
paintIcon in interface Icon

redrawImage

public void redrawImage()

redrawImage

public abstract void redrawImage(Graphics2D g)