Class AbstractNetworkLayout<T>

java.lang.Object
repast.simphony.visualization.AbstractNetworkLayout<T>
All Implemented Interfaces:
Layout<T,Network<T>>
Direct Known Subclasses:
CGDLayout, JungLayout, JungNetworkLayout, TreeLayout2D

public abstract class AbstractNetworkLayout<T> extends Object implements Layout<T,Network<T>>
  • Field Details

    • baseGraph

      protected Network<T> baseGraph
    • layoutName

      protected String layoutName
    • locationData

      protected Map<Object,double[]> locationData
  • Constructor Details

    • AbstractNetworkLayout

      public AbstractNetworkLayout()
  • Method Details

    • update

      public void update()
      Description copied from interface: Layout
      Updates this layout.
      Specified by:
      update in interface Layout<T,Network<T>>
    • 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>>
      Parameters:
      projection - the associated projection.
    • setLayoutProperties

      public void setLayoutProperties(VisualizationProperties props)
      Description copied from interface: Layout
      Sets the layout properties for this layout.
      Specified by:
      setLayoutProperties in interface Layout<T,Network<T>>
      Parameters:
      props - the layout properties
    • getLayoutProperties

      public VisualizationProperties getLayoutProperties()
      Description copied from interface: Layout
      Gets the layout properties for this layout.
      Specified by:
      getLayoutProperties in interface Layout<T,Network<T>>
      Returns:
      the layout properties for this layout.
    • getName

      public String getName()
      Description copied from interface: Layout
      Gets the name of the layout
      Specified by:
      getName in interface Layout<T,Network<T>>
      Returns:
      name of the layout type
    • getGraph

      public Network<T> getGraph()
    • getLocationData

      public Map<Object,double[]> getLocationData()