Class ExternalIOPortController.PortRenderer

  • All Implemented Interfaces:
    NodeRenderer
    Enclosing class:
    ExternalIOPortController

    public class ExternalIOPortController.PortRenderer
    extends IconController.IconRenderer
    Render the external ports of a graph as a 5-sided tab thingy. Multiports are rendered hollow, while single ports are rendered filled. Publisher and subscriber ports are rendered specially.
    • Constructor Summary

      Constructors 
      Constructor Description
      PortRenderer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

      • PortRenderer

        public 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
        Overrides:
        render in class IconController.IconRenderer
        Parameters:
        n - An instance of Locatable or one of the objects _GENERIC_INPUT, _GENERIC_OUTPUT, or _GENERIC_INOUT.
        Returns:
        The figure that is rendered.
        See Also:
        NodeRenderer.render(java.lang.Object)