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.
-
-
Field Summary
-
Fields inherited from class repast.simphony.visualization.decorator.AbstractProjectionDecorator
color, COLOR, projection, SHOW_DECORATOR, TYPE_KEY, UNIT_SIZE, unitSize
-
-
Constructor Summary
Constructors Constructor Description Grid2DProjectionDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(DisplayOGL2D display, saf.v3d.scene.VComposite parent)
Initializes the decorator by adding a grid shape of the appropriate size to the parent.void
update()
Updates the decorator.-
Methods inherited from class repast.simphony.visualization.decorator.AbstractProjectionDecorator
getColor, getProjection, getUnitSize, setColor, setProjection, setUnitSize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface repast.simphony.visualization.decorator.ProjectionDecorator2D
getProjection, setProjection
-
-
-
-
Method Detail
-
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 interfaceProjectionDecorator2D<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 interfaceProjectionDecorator2D<Grid<?>>
-
-