java.lang.Object
repast.simphony.visualization.visualization3D.layout.Random3DLayout
All Implemented Interfaces:
Layout

public class Random3DLayout extends Object implements Layout
Distributes objects uniformly at random within a 20 x 20 x 20 bounding box.
Version:
$Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
Author:
Nick Collier
  • Constructor Details

    • Random3DLayout

      public Random3DLayout()
  • Method Details

    • getLocation

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

      public void setProjection(Projection projection)
      Description copied from interface: Layout
      Sets the projection associated with this Layout.
      Specified by:
      setProjection in interface Layout
      Parameters:
      projection - the associated projection.
    • getLayoutProperties

      public VisualizationProperties getLayoutProperties()
      Gets the layout properties for this layout.
      Specified by:
      getLayoutProperties in interface Layout
      Returns:
      the layout properties for this layout.
    • setLayoutProperties

      public void setLayoutProperties(VisualizationProperties props)
      Sets the layout properties for this layout.
      Specified by:
      setLayoutProperties in interface Layout
      Parameters:
      props - the layout properties
    • update

      public void update()
      Description copied from interface: Layout
      Updates this layout.
      Specified by:
      update in interface Layout
    • getName

      public String getName()
      Description copied from interface: Layout
      Gets the name of the layout
      Specified by:
      getName in interface Layout
      Returns:
      name of the layout type
    • getBoundingBox

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