java.lang.Object
repast.simphony.visualization.AbstractNetworkLayout<T>
repast.simphony.visualization.visualization2D.layout.JungLayout<T>
Type Parameters:
T -
All Implemented Interfaces:
Layout<T,Network<T>>
Direct Known Subclasses:
CircleLayout2D, IterableLayout

public class JungLayout<T> extends AbstractNetworkLayout<T>
Author:
Eric Tatara
  • Field Details

    • layout

      protected edu.uci.ics.jung.algorithms.layout.AbstractLayout<T,RepastEdge<T>> layout
    • network

      protected Network<T> network
  • Constructor Details

    • JungLayout

      public JungLayout()
  • Method Details

    • setProjection

      public void setProjection(Network<T> projection)
      Description copied from interface: Layout
      Sets the projection associated with this Layout.
      Specified by:
      setProjection in interface Layout<T,Network<T>>
      Overrides:
      setProjection in class AbstractNetworkLayout<T>
      Parameters:
      projection - the associated projection.
    • update

      public void update()
      Description copied from interface: Layout
      Updates this layout.
      Specified by:
      update in interface Layout<T,Network<T>>
      Overrides:
      update in class AbstractNetworkLayout<T>
    • setLayout

      protected void setLayout()
    • getLocation

      public float[] getLocation(T obj)
      Description copied from interface: Layout
      Gets the location of the specified object as determined by this layout.
      Parameters:
      obj - the object whose location we want.
      Returns:
      the location of the object.
    • getBoundingBox

      public Box getBoundingBox()
      Description copied from interface: Layout
      Gets a bounding box that describes the extent of this layout in location coordinates.
      Returns:
      a bounding box that describes the extent of this layout in location coordinates, or a 0 size box if the extent is unknown.