Class LocalDataView2D

  • All Implemented Interfaces:
    IDataView

    public class LocalDataView2D
    extends java.lang.Object
    implements IDataView
    A view showing only objects in a local range.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ISpaceObject object
      The space object, which is the center of the view.
      protected java.lang.Object range
      The range of the view.
      protected Space2D space
      The space.
    • Constructor Summary

      Constructors 
      Constructor Description
      LocalDataView2D()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object[] getObjects()
      Returns a list of objects in this view
      java.lang.String getType()
      Returns the type of the view.
      void init​(IEnvironmentSpace space, java.util.Map props)
      Set the space of this view.
      void update​(IEnvironmentSpace space)
      Updates the view.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • space

        protected Space2D space
        The space.
      • object

        protected ISpaceObject object
        The space object, which is the center of the view.
      • range

        protected java.lang.Object range
        The range of the view.
    • Constructor Detail

      • LocalDataView2D

        public LocalDataView2D()
    • Method Detail

      • getType

        public java.lang.String getType()
        Returns the type of the view.
        Specified by:
        getType in interface IDataView
        Returns:
        type of the view
      • getObjects

        public java.lang.Object[] getObjects()
        Returns a list of objects in this view
        Specified by:
        getObjects in interface IDataView
        Returns:
        list of objects
      • update

        public void update​(IEnvironmentSpace space)
        Updates the view.
        Specified by:
        update in interface IDataView
        Parameters:
        space - the space of the view