Class Grid3DLayout

java.lang.Object
repast.simphony.visualization.grid.Grid3DLayout
All Implemented Interfaces:
Layout<Object,Grid>

public class Grid3DLayout extends Object implements Layout<Object,Grid>
3D Layout for a 2D or 3D single occupancy grid. Origin is in lower left hand corner.
Version:
$Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
Author:
Nick Collier
  • Field Details

    • point

      protected float[] point
  • Constructor Details

    • Grid3DLayout

      public Grid3DLayout()
  • Method Details

    • setProjection

      public void setProjection(Grid grid)
      Description copied from interface: Layout
      Sets the projection associated with this Layout.
      Specified by:
      setProjection in interface Layout<Object,Grid>
      Parameters:
      grid - the associated projection.
    • setLayoutProperties

      public void setLayoutProperties(VisualizationProperties props)
      Sets the layout properties for this layout.
      Specified by:
      setLayoutProperties in interface Layout<Object,Grid>
      Parameters:
      props - the layout properties
    • getLayoutProperties

      public VisualizationProperties getLayoutProperties()
      Gets the layout properties for this layout.
      Specified by:
      getLayoutProperties in interface Layout<Object,Grid>
      Returns:
      the layout properties for this layout.
    • 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<Object,Grid>
      Parameters:
      obj - the object whose location we want.
      Returns:
      the location of the object.
    • update

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

      public String getName()
      Description copied from interface: Layout
      Gets the name of the layout
      Specified by:
      getName in interface Layout<Object,Grid>
      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<Object,Grid>
      Returns:
      a bounding box that describes the extent of this layout in location coordinates, or a 0 size box if the extent is unknown.