Class mxCircleLayoutScaled

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

public class mxCircleLayoutScaled extends com.mxgraph.layout.mxCircleLayout
A circle layout that is more compact than the default mxCircleLayout by applying a 'reduction factor' to the layout radius. By default, such factor is computed from the number of vertices in the graph.
Author:
Tiago Ferreira
  • 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
    mxCircleLayoutScaled(com.mxgraph.view.mxGraph graph)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    circle(Object[] vertices, double r, double left, double top)
     
    double
     
    void
    setReductionFactor(double reductionFactor)
     

    Methods inherited from class com.mxgraph.layout.mxCircleLayout

    execute, 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

    • mxCircleLayoutScaled

      public mxCircleLayoutScaled(com.mxgraph.view.mxGraph graph)
  • Method Details

    • getReductionFactor

      public double getReductionFactor()
    • setReductionFactor

      public void setReductionFactor(double reductionFactor)
    • circle

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