Interface Layout<T,U extends Projection<?>>

All Known Implementing Classes:
AbstractNetworkLayout, ArbitraryLayout, CGDLayout, CircleLayout2D, Continuous2DLayout, Continuous3DLayout, FR3DLayout, FRLayout2D, GEM3DLayout, Grid2DLayout, Grid3DLayout, ISOMLayout2D, IterableLayout, JungLayout, JungNetworkLayout, KKLayout2D, NullLayout, Random2DLayout, Random3DLayout, SphericalLayout, TreeLayout2D

public interface Layout<T,U extends Projection<?>>
Interface for display layouts. A layout provides display coordinates for the displayed objects.
Author:
Nick Collier
  • Method Details

    • update

      void update()
      Updates this layout.
    • setProjection

      void setProjection(U projection)
      Sets the projection associated with this Layout.
      Parameters:
      projection - the associated projection.
    • getLocation

      float[] getLocation(T obj)
      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.
    • setLayoutProperties

      void setLayoutProperties(VisualizationProperties props)
      Sets the layout properties for this layout.
      Parameters:
      props - the layout properties
    • getLayoutProperties

      VisualizationProperties getLayoutProperties()
      Gets the layout properties for this layout.
      Returns:
      the layout properties for this layout.
    • getName

      String getName()
      Gets the name of the layout
      Returns:
      name of the layout type
    • getBoundingBox

      Box getBoundingBox()
      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.