Class AbstractDisplay

java.lang.Object
repast.simphony.visualization.AbstractDisplay
All Implemented Interfaces:
Renderer, ProjectionListener, IDisplay
Direct Known Subclasses:
AbstractDisplay3D, Display2D, DisplayGIS, DisplayGIS3D, DisplayOGL2D

public abstract class AbstractDisplay extends Object implements IDisplay, ProjectionListener
  • Field Details

    • FRAME_UPDATE_INTERVAL

      public static long FRAME_UPDATE_INTERVAL
    • INFO_CURSOR

      protected static final Cursor INFO_CURSOR
    • probeSupport

      protected ProbeListenerSupport probeSupport
    • dlSupport

      protected DisplayListenerSupport dlSupport
    • lastRenderTS

      protected long lastRenderTS
  • Constructor Details

    • AbstractDisplay

      public AbstractDisplay()
  • Method Details

    • projectionEventOccurred

      public void projectionEventOccurred(ProjectionEvent evt)
      Description copied from interface: ProjectionListener
      Invoked when a projection event occurs.
      Specified by:
      projectionEventOccurred in interface ProjectionListener
      Parameters:
      evt - the object describing the event
    • addObject

      protected abstract void addObject(Object o)
    • removeObject

      protected abstract void removeObject(Object o)
    • moveObject

      protected abstract void moveObject(Object o)
    • addProbeListener

      public void addProbeListener(ProbeListener listener)
      Adds a probe listener to listen for probe events produced by this IDisplay.
      Specified by:
      addProbeListener in interface IDisplay
      Parameters:
      listener - the listener to add
    • addDisplayListener

      public void addDisplayListener(DisplayListener listener)
      Adds a display listener to this display.
      Specified by:
      addDisplayListener in interface IDisplay
      Parameters:
      listener - the listener to add
    • registerToolBar

      public void registerToolBar(JToolBar bar)
      Registers the specified toolbar with this IDisplay. This IDisplay can then put buttons etc. are on this toolbar. This is a default no-op implementation.
      Specified by:
      registerToolBar in interface IDisplay
      Parameters:
      bar - the bar to register
    • getProbeSupport

      public ProbeListenerSupport getProbeSupport()
    • setProbeSupport

      public void setProbeSupport(ProbeListenerSupport probeSupport)
    • destroy

      public void destroy()
      Destroys the display, allowing it to free any resources it may have acquired.
      Specified by:
      destroy in interface IDisplay
    • createInfoCursor

      public static Cursor createInfoCursor()