public class TypedNodeRenderer extends Object implements NodeRenderer
Constructor and Description |
---|
TypedNodeRenderer(GraphController controller,
NodeRenderer defaultRenderer)
A typed node renderer with the given node renderer
as its default (i.e.
|
Modifier and Type | Method and Description |
---|---|
void |
addTypedRenderer(Class c,
NodeRenderer r)
Add a renderer which is invoked when the rendered node's
semantic object is an instance of the given class.
|
void |
removeTypedRenderer(Class c)
Remove a typed renderer.
|
Figure |
render(Object node)
Return the rendered visual representation of this node by
looking up the class of its semantic object.
|
public TypedNodeRenderer(GraphController controller, NodeRenderer defaultRenderer)
public void addTypedRenderer(Class c, NodeRenderer r)
public void removeTypedRenderer(Class c)
addTypedRenderer(Class,NodeRenderer)
public Figure render(Object node)
render
in interface NodeRenderer
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.