com.alveole.studio.web.designer.graph
Class NodeIconLabeller

java.lang.Object
  extended by com.alveole.studio.web.designer.graph.NodeIconLabeller
All Implemented Interfaces:
edu.uci.ics.jung.graph.decorators.VertexIconFunction

public class NodeIconLabeller
extends java.lang.Object
implements edu.uci.ics.jung.graph.decorators.VertexIconFunction

This class find the icon to be displayed for each node of the graph.

Author:
sylvain

Field Summary
 
Fields inherited from interface edu.uci.ics.jung.graph.decorators.VertexIconFunction
BROKEN_IMAGE
 
Constructor Summary
NodeIconLabeller(PackageNavigatorModel model, edu.uci.ics.jung.visualization.PickedInfo pi)
          Constructor.
 
Method Summary
 javax.swing.Icon getIcon(edu.uci.ics.jung.graph.ArchetypeVertex v)
          Get icon to display.
 edu.uci.ics.jung.visualization.PickedInfo getPi()
          get picked-info.
 void setPi(edu.uci.ics.jung.visualization.PickedInfo pi)
          Set picked-info.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeIconLabeller

public NodeIconLabeller(PackageNavigatorModel model,
                        edu.uci.ics.jung.visualization.PickedInfo pi)
Constructor.

Parameters:
model - Navigator data model.
pi - Picked info.
Method Detail

getIcon

public javax.swing.Icon getIcon(edu.uci.ics.jung.graph.ArchetypeVertex v)
Get icon to display.

Specified by:
getIcon in interface edu.uci.ics.jung.graph.decorators.VertexIconFunction
Parameters:
v - The vertex to display.
Returns:
The icon.

getPi

public edu.uci.ics.jung.visualization.PickedInfo getPi()
get picked-info.

Returns:
The picked-info.

setPi

public void setPi(edu.uci.ics.jung.visualization.PickedInfo pi)
Set picked-info.

Parameters:
pi - The picked info.