edu.uci.ics.jung.graph.decorators
Class ConstantVertexIconFunction
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
icon
protected Icon icon
ConstantVertexIconFunction
public ConstantVertexIconFunction()
ConstantVertexIconFunction
public ConstantVertexIconFunction(Icon icon)
getIcon
public Icon getIcon(ArchetypeVertex v)
- Specified by:
getIcon
in interface VertexIconFunction
- See Also:
VertexStringer.getLabel(ArchetypeVertex)