Class AbstractProjectionDescriptor
java.lang.Object
repast.simphony.visualization.engine.AbstractProjectionDescriptor
- All Implemented Interfaces:
ProjectionDescriptor
- Direct Known Subclasses:
ContinuousProjectionDescriptor
,DefaultProjectionDescriptor
,GisProjectionDescriptor
,GridProjectionDescriptor
Abstract base class for implementors of ProjectionDescriptor
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets an Iterable over the 2d projection decorators for the projection.Gets an Iterable over the 3d projection decorators for the projection.Gets the name of the projection.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
-
Field Details
-
props
-
-
Constructor Details
-
AbstractProjectionDescriptor
-
-
Method Details
-
registerProjectionData
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
Gets the name of the projection.- Specified by:
getProjectionName
in interfaceProjectionDescriptor
- Returns:
- the name of the projection.
-
getProperty
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
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
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
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.
-