Class GraphCircleLayout

  • All Implemented Interfaces:
    edu.uci.ics.jung.algorithms.layout.Layout, org.apache.commons.collections15.Transformer

    public class GraphCircleLayout
    extends edu.uci.ics.jung.algorithms.layout.CircleLayout
    Subclassing to support locked vertices (so they get not shuffled) and initializing random locations on setSize().
    • Nested Class Summary

      • Nested classes/interfaces inherited from class edu.uci.ics.jung.algorithms.layout.CircleLayout

        edu.uci.ics.jung.algorithms.layout.CircleLayout.CircleVertexData
    • Field Summary

      • Fields inherited from class edu.uci.ics.jung.algorithms.layout.AbstractLayout

        graph, initialized, locations, size
    • Constructor Summary

      Constructors 
      Constructor Description
      GraphCircleLayout​(edu.uci.ics.jung.graph.Graph g)
      Default constructor for a given graph.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setSize​(java.awt.Dimension size)
      Initialize with random locations .
      • Methods inherited from class edu.uci.ics.jung.algorithms.layout.CircleLayout

        getCircleData, getRadius, initialize, reset, setRadius, setVertexOrder, setVertexOrder
      • Methods inherited from class edu.uci.ics.jung.algorithms.layout.AbstractLayout

        getGraph, getSize, getX, getY, isLocked, lock, lock, offsetVertex, setGraph, setInitializer, setLocation, setLocation, transform
      • Methods inherited from class java.lang.Object

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

      • GraphCircleLayout

        public GraphCircleLayout​(edu.uci.ics.jung.graph.Graph g)
        Default constructor for a given graph.
        Parameters:
        g - The graph.
    • Method Detail

      • setSize

        public void setSize​(java.awt.Dimension size)
        Initialize with random locations .
        Specified by:
        setSize in interface edu.uci.ics.jung.algorithms.layout.Layout
        Overrides:
        setSize in class edu.uci.ics.jung.algorithms.layout.AbstractLayout