Package repast.simphony.visualization
Class DefaultDisplayData<T>
- java.lang.Object
-
- repast.simphony.visualization.AbstractDisplayData<T>
-
- repast.simphony.visualization.DefaultDisplayData<T>
-
- All Implemented Interfaces:
DisplayData<T>
- Direct Known Subclasses:
GISDisplayData
public class DefaultDisplayData<T> extends AbstractDisplayData<T>
Default implementation of DisplayData that wraps a Context. The implemented methods are then forwarded to the wrapped Context.- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
-
Field Summary
-
Fields inherited from class repast.simphony.visualization.AbstractDisplayData
projs, valueLayers
-
-
Constructor Summary
Constructors Constructor Description DefaultDisplayData(Context<T> context)
Creates a DefaultDisplayData that delegates its methods to the specified context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProjection(String name)
Adds the named projection to the list of projections to display.void
addValueLayer(String name)
Adds the named ValueLayer to the list of ValueLayers to display.VisualizedObjectContainer<T>
getContainer()
Gets the container that contains the objects we want to display.Iterable<T>
objects()
Gets the objects to be initially displayed.-
Methods inherited from class repast.simphony.visualization.AbstractDisplayData
getProjectionCount, getProjections, getValueLayerCount, getValueLayers
-
-
-
-
Method Detail
-
getContainer
public VisualizedObjectContainer<T> getContainer()
Gets the container that contains the objects we want to display.- Returns:
- the container that contains the objects we want to display.
-
addProjection
public void addProjection(String name)
Adds the named projection to the list of projections to display.- Parameters:
name
- the name of the projection to add.
-
addValueLayer
public void addValueLayer(String name)
Adds the named ValueLayer to the list of ValueLayers to display.- Parameters:
name
- the name of the ValueLayer to add.
-
-