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

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

public class NodeFontLabeller
extends java.lang.Object
implements edu.uci.ics.jung.graph.decorators.VertexFontFunction

The node font resolver: get a font given a node.

Author:
sylvain

Constructor Summary
NodeFontLabeller(PackageNavigatorModel model, java.awt.Font normal, java.awt.Font remotePackage)
          Constructor.
 
Method Summary
 java.awt.Font getFont(edu.uci.ics.jung.graph.Vertex v)
          Get a font given the vertex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFontLabeller

public NodeFontLabeller(PackageNavigatorModel model,
                        java.awt.Font normal,
                        java.awt.Font remotePackage)
Constructor.

Parameters:
model - The nav-model.
normal - The normal font.
remotePackage - The remote node's font.
Method Detail

getFont

public java.awt.Font getFont(edu.uci.ics.jung.graph.Vertex v)
Get a font given the vertex.

Specified by:
getFont in interface edu.uci.ics.jung.graph.decorators.VertexFontFunction
Parameters:
v - The vertex.
Returns:
The font for the vertex label.