Package ptolemy.vergil.basic
Class IconController.IconRenderer
- java.lang.Object
-
- ptolemy.vergil.basic.IconController.IconRenderer
-
- All Implemented Interfaces:
NodeRenderer
- Direct Known Subclasses:
ExternalIOPortController.PortRenderer
- Enclosing class:
- IconController
public class IconController.IconRenderer extends java.lang.Object implements NodeRenderer
An icon renderer.
-
-
Constructor Summary
Constructors Constructor Description IconRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Figure
render(java.lang.Object n)
Render a visual representation of the given node.
-
-
-
Method Detail
-
render
public Figure render(java.lang.Object n)
Render a visual representation of the given node. If the StringAttribute _color of the node is set then use that color to highlight the node. If the StringAttribute _explanation of the node is set then use it to set the tooltip.- Specified by:
render
in interfaceNodeRenderer
- Parameters:
n
- The node to render.- Returns:
- The persistent object that is drawn on the screen.
- See Also:
NodeRenderer.render(java.lang.Object)
-
-