Class ParallelEdgeRouter

    • Field Detail

      • sharedInstance

        protected static final ParallelEdgeRouter sharedInstance
        Singleton to reach parallel edge router
    • Constructor Detail

      • ParallelEdgeRouter

        public ParallelEdgeRouter()
    • Method Detail

      • getSharedInstance

        public static ParallelEdgeRouter getSharedInstance()
        Getter for singleton managing parallel edges
        Returns:
        ParallelEdgeRouter for parallel edges
      • getEdgeSeparation

        public static double getEdgeSeparation()
        Getter to obtain the distance between each parallel edge
        Returns:
        Distance
      • setEdgeSeparation

        public static void setEdgeSeparation​(double edgeSeparation)
        Setter to define distance between each parallel edge
        Parameters:
        edgeSeparation - New distance
      • getEdgeDeparture

        public static double getEdgeDeparture()
        Getter to obtain the distance between intermediate and source/target points
        Returns:
        Distance
      • setEdgeDeparture

        public static void setEdgeDeparture​(double edgeDeparture)
        Setter to define distance between intermediate and source/target points
        Parameters:
        edgeDeparture - New distance
      • getParallelEdges

        protected java.lang.Object[] getParallelEdges​(GraphLayoutCache cache,
                                                      EdgeView edge,
                                                      CellView cellView1,
                                                      CellView cellView2)
        Getter to obtain the list of parallel edges
        Parameters:
        edge - Edge on which one wants to know parallel edges
        Returns:
        Object[] Array of parallel edges (include edge passed on argument)
      • setGraph

        public static void setGraph​(JGraph graph)
        Deprecated.
        graph instance retained internally
        Parameters:
        graph - The graph to set.