Package jline.io.tikz

Class TikZNodeRenderer

  • All Implemented Interfaces:

    
    public class TikZNodeRenderer
    
                        

    Renders queueing network nodes as TikZ code.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getPreamble() Returns the TikZ preamble with style definitions.
      String renderNode(Node node, double x, double y) Renders a node at the given position.
      String renderConnection(Node fromNode, Node toNode, double prob) Renders a connection between two nodes.
      String renderCurvedConnection(Node fromNode, Node toNode, double prob, double bendAngle) Renders a curved connection for parallel paths (e.g., fork-join).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TikZNodeRenderer

        TikZNodeRenderer(TikZOptions options)
    • Method Detail

      • renderNode

         String renderNode(Node node, double x, double y)

        Renders a node at the given position.

        Parameters:
        node - The node to render
        x - X coordinate (cm)
        y - Y coordinate (cm)
        Returns:

        TikZ code for the node

      • renderConnection

         String renderConnection(Node fromNode, Node toNode, double prob)

        Renders a connection between two nodes.

        Parameters:
        fromNode - Source node
        toNode - Destination node
        prob - Routing probability (or NaN to hide)
        Returns:

        TikZ code for the connection

      • renderCurvedConnection

         String renderCurvedConnection(Node fromNode, Node toNode, double prob, double bendAngle)

        Renders a curved connection for parallel paths (e.g., fork-join).