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
  • Field Details

  • Constructor Details

    • AbstractProjectionDescriptor

      protected AbstractProjectionDescriptor(ProjectionData proj)
  • Method Details

    • 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 interface ProjectionDescriptor
      Parameters:
      data - the ProjectionData to register with the DisplayDescriptor
      descriptor - the DisplayDescriptor
    • getProjectionName

      public String getProjectionName()
      Gets the name of the projection.
      Specified by:
      getProjectionName in interface ProjectionDescriptor
      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 interface ProjectionDescriptor
      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 interface ProjectionDescriptor
      Parameters:
      groupID -
      key -
      value -
    • get2DDecorators

      public Iterable<ProjectionDecorator2D> get2DDecorators()
      Gets an Iterable over the 2d projection decorators for the projection.
      Specified by:
      get2DDecorators in interface ProjectionDescriptor
      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 interface ProjectionDescriptor
      Returns:
      an Iterable over the 3d projection decorators for the projection.