Class AbstractProjectionDescriptor
- java.lang.Object
-
- repast.simphony.visualization.engine.AbstractProjectionDescriptor
-
- All Implemented Interfaces:
ProjectionDescriptor
- Direct Known Subclasses:
ContinuousProjectionDescriptor
,DefaultProjectionDescriptor
,GisProjectionDescriptor
,GridProjectionDescriptor
public abstract class AbstractProjectionDescriptor extends Object implements ProjectionDescriptor
Abstract base class for implementors of ProjectionDescriptor- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractProjectionDescriptor(ProjectionData proj)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<ProjectionDecorator2D>
get2DDecorators()
Gets an Iterable over the 2d projection decorators for the projection.Iterable<ProjectionDecorator3D>
get3DDecorators()
Gets an Iterable over the 3d projection decorators for the projection.String
getProjectionName()
Gets the name of the projection.Object
getProperty(String groupID, String key)
Gets the named property in the specified property group.void
registerProjectionData(ProjectionData data, DisplayDescriptor descriptor)
Register ProjectionData with the DisplayDescriptor.void
setProperty(String groupID, String key, Object value)
Sets the named property in the specified property group.-
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.engine.ProjectionDescriptor
getImpliedLayout2D, getImpliedLayout3D
-
-
-
-
Constructor Detail
-
AbstractProjectionDescriptor
protected AbstractProjectionDescriptor(ProjectionData proj)
-
-
Method Detail
-
registerProjectionData
public void registerProjectionData(ProjectionData data, DisplayDescriptor descriptor)
Description copied from interface:ProjectionDescriptor
Register ProjectionData with the DisplayDescriptor. This is implemented here since different ProjectionDescriptor implementations might handle psuedo-projections like value layers differently from actual Projection implementations.- Specified by:
registerProjectionData
in interfaceProjectionDescriptor
- Parameters:
data
- the ProjectionData to register with the DisplayDescriptordescriptor
- the DisplayDescriptor
-
getProjectionName
public String getProjectionName()
Gets the name of the projection.- Specified by:
getProjectionName
in interfaceProjectionDescriptor
- Returns:
- the name of the projection.
-
getProperty
public Object getProperty(String groupID, String key)
Gets the named property in the specified property group. For example, each kind of decorator would have its own properties and these would be grouped into a property group.- Specified by:
getProperty
in interfaceProjectionDescriptor
- Parameters:
groupID
-key
-- Returns:
- the named property in the specified property group or null if no such property is found.
-
setProperty
public void setProperty(String groupID, String key, Object value)
Sets the named property in the specified property group. For example, each kind of decorator would have its own properties and these would be grouped into a property group.- Specified by:
setProperty
in interfaceProjectionDescriptor
- Parameters:
groupID
-key
-value
-
-
get2DDecorators
public Iterable<ProjectionDecorator2D> get2DDecorators()
Gets an Iterable over the 2d projection decorators for the projection.- Specified by:
get2DDecorators
in interfaceProjectionDescriptor
- Returns:
- an Iterable over the 2d projection decorators for the projection.
-
get3DDecorators
public Iterable<ProjectionDecorator3D> get3DDecorators()
Gets an Iterable over the 3d projection decorators for the projection.- Specified by:
get3DDecorators
in interfaceProjectionDescriptor
- Returns:
- an Iterable over the 3d projection decorators for the projection.
-
-