Class Grid2DProjectionDecorator

java.lang.Object
repast.simphony.visualization.decorator.AbstractProjectionDecorator<Grid<?>>
repast.simphony.visualization.grid.Grid2DProjectionDecorator
All Implemented Interfaces:
ProjectionDecorator2D<Grid<?>>

public class Grid2DProjectionDecorator extends AbstractProjectionDecorator<Grid<?>> implements ProjectionDecorator2D<Grid<?>>
2D grid decorator that decorates a grid projection with a 2D grid.
  • Constructor Details

    • Grid2DProjectionDecorator

      public Grid2DProjectionDecorator()
  • Method Details

    • init

      public void init(DisplayOGL2D display, saf.v3d.scene.VComposite parent)
      Initializes the decorator by adding a grid shape of the appropriate size to the parent.
      Specified by:
      init in interface ProjectionDecorator2D<Grid<?>>
      Parameters:
      display -
      parent - the parent to which the decoration should be added
    • update

      public void update()
      Updates the decorator. The intention is that this would only do something if the decoration has changed from that created in init.
      Specified by:
      update in interface ProjectionDecorator2D<Grid<?>>