Class mxCircleLayoutSorted

java.lang.Object
com.mxgraph.layout.mxGraphLayout
com.mxgraph.layout.mxCircleLayout
sc.fiji.snt.viewer.geditor.mxCircleLayoutSorted
All Implemented Interfaces:
com.mxgraph.layout.mxIGraphLayout

public class mxCircleLayoutSorted extends com.mxgraph.layout.mxCircleLayout
Sorted circle layout algorithm for SNT graphs. Arranges graph vertices in a circle with customizable sorting criteria (e.g., by incoming edge weight).
  • Field Summary

    Fields inherited from class com.mxgraph.layout.mxCircleLayout

    disableEdgeStyle, moveCircle, radius, resetEdges, x0, y0

    Fields inherited from class com.mxgraph.layout.mxGraphLayout

    graph, parent, useBoundingBox
  • Constructor Summary

    Constructors
    Constructor
    Description
    mxCircleLayoutSorted(com.mxgraph.view.mxGraph graph, String criteria)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    circle(Object[] vertices, double r, double left, double top)
     
    void
    execute(Object parent)
     
    protected Object[]
    sortVertices(Object[] vertexArray, String criteria)
     

    Methods inherited from class com.mxgraph.layout.mxCircleLayout

    getRadius, getX0, getY0, isDisableEdgeStyle, isMoveCircle, isResetEdges, setDisableEdgeStyle, setMoveCircle, setRadius, setResetEdges, setX0, setY0

    Methods inherited from class com.mxgraph.layout.mxGraphLayout

    arrangeGroups, getConstraint, getConstraint, getGraph, getParentOffset, getVertexBounds, isEdgeIgnored, isUseBoundingBox, isVertexIgnored, isVertexMovable, moveCell, setEdgePoints, setEdgeStyleEnabled, setOrthogonalEdge, setUseBoundingBox, setVertexLocation

    Methods inherited from class java.lang.Object

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

  • Method Details

    • sortVertices

      protected Object[] sortVertices(Object[] vertexArray, String criteria)
    • execute

      public void execute(Object parent)
      Specified by:
      execute in interface com.mxgraph.layout.mxIGraphLayout
      Overrides:
      execute in class com.mxgraph.layout.mxCircleLayout
    • circle

      public void circle(Object[] vertices, double r, double left, double top)
      Overrides:
      circle in class com.mxgraph.layout.mxCircleLayout