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
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
ConstructorDescriptionDefaultDisplayData
(Context<T> context) Creates a DefaultDisplayData that delegates its methods to the specified context. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Gets the container that contains the objects we want to display.objects()
Gets the objects to be initially displayed.Methods inherited from class repast.simphony.visualization.AbstractDisplayData
getProjectionCount, getProjections, getValueLayerCount, getValueLayers
-
Constructor Details
-
DefaultDisplayData
Creates a DefaultDisplayData that delegates its methods to the specified context.- Parameters:
context
-
-
-
Method Details
-
getContainer
Gets the container that contains the objects we want to display.- Returns:
- the container that contains the objects we want to display.
-
addProjection
Adds the named projection to the list of projections to display.- Parameters:
name
- the name of the projection to add.
-
addValueLayer
Adds the named ValueLayer to the list of ValueLayers to display.- Parameters:
name
- the name of the ValueLayer to add.
-
objects
Gets the objects to be initially displayed.- Returns:
- an iterable over the objects to be initially displayed.
-