Class DisplayGIS

java.lang.Object
repast.simphony.visualization.AbstractDisplay
repast.simphony.visualization.gis.DisplayGIS
All Implemented Interfaces:
WindowListener, EventListener, Renderer, ProjectionListener, IDisplay

public class DisplayGIS extends AbstractDisplay implements WindowListener
Deprecated.
2D piccolo based code is being removed
Standard GIS Display
Author:
Nick Collier, Eric Tatara
  • Field Details

    • GIS_FRAME_UPDATE_INTERVAL

      public static long GIS_FRAME_UPDATE_INTERVAL
      Deprecated.
    • BACKGROUND_LAYER_PREFIX

      public static final String BACKGROUND_LAYER_PREFIX
      Deprecated.
      See Also:
    • SHP_FILE_STYLE_PROP

      public static final String SHP_FILE_STYLE_PROP
      Deprecated.
    • panel

      protected PiccoloMapPanel panel
      Deprecated.
    • initData

      protected DisplayData<?> initData
      Deprecated.
    • lock

      protected Object lock
      Deprecated.
  • Constructor Details

    • DisplayGIS

      public DisplayGIS(DisplayData<?> data)
      Deprecated.
  • Method Details

    • getGeography

      public Geography getGeography()
      Deprecated.
      Gets the geography this display displays.
      Returns:
      the geography this display displays.
    • projectionEventOccurred

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

      public void registerAgentStyle(String agentName, org.geotools.styling.Style style, Integer order)
      Deprecated.
      Registers a style for the specified agent.
      Parameters:
      agentName - the name of the agent
      style - the style
      order - the layer order
    • getRegisteredClasses

      public List<Class> getRegisteredClasses()
      Deprecated.
      Gets a list of the agent classes registered with this display.
      Returns:
      a list of the agent classes registered with this display.
    • registerFeatureSource

      public void registerFeatureSource(org.geotools.data.FeatureSource source, org.geotools.styling.Style style, Integer order)
      Deprecated.
      Registers a style for the specified feature source. Used for adding static background layers from a shapefile.
      Parameters:
      source - the feature source
      style - the style
      order - the layer order
    • addObject

      protected void addObject(Object o)
      Deprecated.
      Specified by:
      addObject in class AbstractDisplay
    • moveObject

      protected void moveObject(Object o)
      Deprecated.
      Specified by:
      moveObject in class AbstractDisplay
    • removeObject

      protected void removeObject(Object o)
      Deprecated.
      Specified by:
      removeObject in class AbstractDisplay
    • destroy

      public void destroy()
      Deprecated.
      Description copied from class: AbstractDisplay
      Destroys the display, allowing it to free any resources it may have acquired.
      Specified by:
      destroy in interface IDisplay
      Overrides:
      destroy in class AbstractDisplay
    • getLayout

      public Layout getLayout()
      Deprecated.
      Description copied from interface: IDisplay
      Gets the layout the display uses
      Specified by:
      getLayout in interface IDisplay
      Returns:
      a layout object
    • init

      public void init()
      Deprecated.
      Initializes the display. Called once before the display is made visible.
      Specified by:
      init in interface IDisplay
    • probe

      public void probe(org.locationtech.jts.geom.Envelope env)
      Deprecated.
    • setLayout

      public void setLayout(Layout layout)
      Deprecated.
      Description copied from interface: IDisplay
      Sets the Layout for the display to use.
      Specified by:
      setLayout in interface IDisplay
      Parameters:
      layout - the layout to use
    • setLayoutFrequency

      public void setLayoutFrequency(IDisplay.LayoutFrequency frequency, int interval)
      Deprecated.
      Description copied from interface: IDisplay
      Sets the frequency of the layout.
      Specified by:
      setLayoutFrequency in interface IDisplay
      Parameters:
      frequency - the frequency of the layout
      interval - the interval if the frequency is AT_INTERVAL. The interval is in terms of number of calls to update()
    • update

      public void update()
      Deprecated.
      Description copied from interface: IDisplay
      Updates the state of the display to reflect whatever it is that it is displaying.
      Specified by:
      update in interface IDisplay
    • render

      public void render()
      Deprecated.
      Description copied from interface: Renderer
      Render the display. This rendering should take place asynchronously on the AWT thread.
      Specified by:
      render in interface Renderer
    • forceRender

      public void forceRender()
      Deprecated.
      Need to render displays when the sim is paused and initialized, because the display won't render with DisplayGIS.render() if it is hidden.
    • setPause

      public void setPause(boolean pause)
      Deprecated.
      Executes when simulation is paused.
      Specified by:
      setPause in interface Renderer
    • resetHomeView

      public void resetHomeView()
      Deprecated.
      Description copied from interface: IDisplay
      Resets the home (initial) view of the display
      Specified by:
      resetHomeView in interface IDisplay
    • windowActivated

      public void windowActivated(WindowEvent e)
      Deprecated.
      Specified by:
      windowActivated in interface WindowListener
    • windowClosed

      public void windowClosed(WindowEvent e)
      Deprecated.
      Specified by:
      windowClosed in interface WindowListener
    • windowClosing

      public void windowClosing(WindowEvent e)
      Deprecated.
      Specified by:
      windowClosing in interface WindowListener
    • windowDeactivated

      public void windowDeactivated(WindowEvent e)
      Deprecated.
      Specified by:
      windowDeactivated in interface WindowListener
    • windowDeiconified

      public void windowDeiconified(WindowEvent e)
      Deprecated.
      Specified by:
      windowDeiconified in interface WindowListener
    • windowIconified

      public void windowIconified(WindowEvent e)
      Deprecated.
      Specified by:
      windowIconified in interface WindowListener
    • windowOpened

      public void windowOpened(WindowEvent e)
      Deprecated.
      Specified by:
      windowOpened in interface WindowListener
    • closed

      public void closed()
      Deprecated.
      Description copied from interface: IDisplay
      Notifies this IDisplay that its associated gui widget has been closed.
      Specified by:
      closed in interface IDisplay
    • deIconified

      public void deIconified()
      Deprecated.
      Description copied from interface: IDisplay
      Notifies this IDisplay that its associated gui widget has been deIconified.
      Specified by:
      deIconified in interface IDisplay
    • getInitData

      public DisplayData getInitData()
      Deprecated.
      Gets the data used to initialize this display.
      Returns:
      the data used to initialize this display.
    • getStyleFor

      public org.geotools.styling.Style getStyleFor(String agentClassName)
      Deprecated.
      Gets the style for the specified agent type.
      Parameters:
      agentClassName - the type whose style we want
      Returns:
      the style for the specified agent type.
    • createEditor

      public DisplayEditorLifecycle createEditor(JPanel panel)
      Deprecated.
      Creates an DisplayEditor appropriate for editing this display.
      Specified by:
      createEditor in interface IDisplay
      Parameters:
      panel -
      Returns:
      an DisplayEditor appropriate for editing this display or null if this display cannot be edited.
    • getPanel

      public JPanel getPanel()
      Deprecated.
      Gets a panel that contains the actual gui for visualization.
      Specified by:
      getPanel in interface IDisplay
      Returns:
      a panel that contains the actual gui for visualization.
    • registerToolBar

      public void registerToolBar(JToolBar bar)
      Deprecated.
      Registers the specified toolbar with this IDisplay. This IDisplay can then put buttons etc. are on this toolbar.
      Specified by:
      registerToolBar in interface IDisplay
      Overrides:
      registerToolBar in class AbstractDisplay
      Parameters:
      bar - the bar to register
    • iconified

      public void iconified()
      Deprecated.
      Description copied from interface: IDisplay
      Notifies this IDisplay that its associated gui widget has been iconified.
      Specified by:
      iconified in interface IDisplay
    • getToolManager

      public ToolManager getToolManager()
      Deprecated.
    • getDecorator

      public SelectionDecorator getDecorator()
      Deprecated.
      Gets the decorator used to decorate selected gis features.
      Returns:
      the decorator used to decorate selected gis features.
    • loadIcon

      public static Icon loadIcon(String name)
      Deprecated.
    • createPanel

      public void createPanel()
      Deprecated.
    • toggleInfoProbe

      public void toggleInfoProbe()
      Deprecated.