com.googlecode.sarasvati.visual.icon
Class RectangularNodeIcon

java.lang.Object
  extended by com.googlecode.sarasvati.visual.icon.AbstractNodeIcon
      extended by com.googlecode.sarasvati.visual.icon.RectangularNodeIcon
All Implemented Interfaces:
Icon

public class RectangularNodeIcon
extends AbstractNodeIcon


Field Summary
protected  Color color
           
protected  boolean isJoin
           
protected  boolean isSelected
           
protected  String label
           
 
Fields inherited from class com.googlecode.sarasvati.visual.icon.AbstractNodeIcon
HEIGHT, image, WIDTH
 
Constructor Summary
RectangularNodeIcon(Node node, NodeToken token)
           
RectangularNodeIcon(String label, Color color, boolean isJoin, boolean isSelected)
           
 
Method Summary
 void redrawImage(Graphics2D g)
           
 
Methods inherited from class com.googlecode.sarasvati.visual.icon.AbstractNodeIcon
getIconHeight, getIconWidth, paintIcon, redrawImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isJoin

protected boolean isJoin

label

protected String label

color

protected Color color

isSelected

protected boolean isSelected
Constructor Detail

RectangularNodeIcon

public RectangularNodeIcon(Node node,
                           NodeToken token)

RectangularNodeIcon

public RectangularNodeIcon(String label,
                           Color color,
                           boolean isJoin,
                           boolean isSelected)
Method Detail

redrawImage

public void redrawImage(Graphics2D g)
Specified by:
redrawImage in class AbstractNodeIcon


Copyright © 2012. All Rights Reserved.