ptolemy.vergil.actor
Class ExternalIOPortController.PortRenderer

java.lang.Object
  extended by ptolemy.vergil.actor.ExternalIOPortController.PortRenderer
All Implemented Interfaces:
NodeRenderer
Direct Known Subclasses:
MatchResultViewer.MatchResultExternalPortController.Renderer, TransformationEditor.TransformationExternalPortController.Renderer
Enclosing class:
ExternalIOPortController

public class ExternalIOPortController.PortRenderer
extends java.lang.Object
implements NodeRenderer

Render the external ports of a graph as a 5-sided tab thingy. Multiports are rendered hollow, while single ports are rendered filled.


Constructor Summary
ExternalIOPortController.PortRenderer()
           
 
Method Summary
 Figure render(java.lang.Object n)
          Render a port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalIOPortController.PortRenderer

public ExternalIOPortController.PortRenderer()
Method Detail

render

public Figure render(java.lang.Object n)
Render a port. If the argument implements Locatable, then render the port that is the container of that locatable. If the argument is an instance of _GENERIC_INPUT, _GENERIC_OUTPUT, or _GENERIC_INOUT, then render an input, output, or inout port with no name. If the argument is null, then render a port that is neither an input nor an output.

Specified by:
render in interface NodeRenderer
Parameters:
n - An instance of Locatable or one of the objects _GENERIC_INPUT, _GENERIC_OUTPUT, or _GENERIC_INOUT.
Returns:
The figure that is rendered.