ptolemy.vergil.basic
Class IconController.IconRenderer

java.lang.Object
  extended by ptolemy.vergil.basic.IconController.IconRenderer
All Implemented Interfaces:
NodeRenderer
Enclosing class:
IconController

public class IconController.IconRenderer
extends java.lang.Object
implements NodeRenderer

An icon renderer.


Constructor Summary
IconController.IconRenderer()
           
 
Method Summary
 Figure render(java.lang.Object n)
          Render a visual representation of the given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconController.IconRenderer

public IconController.IconRenderer()
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 interface NodeRenderer
Parameters:
n - The node to render.
Returns:
The persistent object that is drawn on the screen.
See Also:
NodeRenderer.render(java.lang.Object)