Class DisplayGIS

    • Field Detail

      • GIS_FRAME_UPDATE_INTERVAL

        public static long GIS_FRAME_UPDATE_INTERVAL
        Deprecated.
      • SHP_FILE_STYLE_PROP

        public static final String SHP_FILE_STYLE_PROP
        Deprecated.
      • initData

        protected DisplayData<?> initData
        Deprecated.
      • lock

        protected Object lock
        Deprecated.
    • Constructor Detail

      • DisplayGIS

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

      • getGeography

        public Geography getGeography()
        Deprecated.
        Gets the geography this display displays.
        Returns:
        the geography this display displays.
      • 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
      • 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
      • 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.