edu.uci.ics.jung.graph.decorators
Class ConstantVertexIconFunction

java.lang.Object
  extended by edu.uci.ics.jung.graph.decorators.ConstantVertexIconFunction
All Implemented Interfaces:
VertexIconFunction

public class ConstantVertexIconFunction
extends Object
implements VertexIconFunction

Returns the specified label for all vertices. Useful for specifying "no label".

Author:
Tom Nelson - RABA Technologies

Field Summary
protected  Icon icon
           
 
Fields inherited from interface edu.uci.ics.jung.graph.decorators.VertexIconFunction
BROKEN_IMAGE
 
Constructor Summary
ConstantVertexIconFunction()
           
ConstantVertexIconFunction(Icon icon)
           
 
Method Summary
 Icon getIcon(ArchetypeVertex v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

icon

protected Icon icon
Constructor Detail

ConstantVertexIconFunction

public ConstantVertexIconFunction()

ConstantVertexIconFunction

public ConstantVertexIconFunction(Icon icon)
Method Detail

getIcon

public Icon getIcon(ArchetypeVertex v)
Specified by:
getIcon in interface VertexIconFunction
See Also:
VertexStringer.getLabel(ArchetypeVertex)