Class DisplayGIS
java.lang.Object
repast.simphony.visualization.AbstractDisplay
repast.simphony.visualization.gis.DisplayGIS
- All Implemented Interfaces:
WindowListener
,EventListener
,Renderer
,ProjectionListener
,IDisplay
Deprecated.
2D piccolo based code is being removed
Standard GIS Display
- Author:
- Nick Collier, Eric Tatara
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Deprecated.Assists mouse wheel zoom control by updating the center coordclass
Deprecated.Zoom control with mouse wheelNested classes/interfaces inherited from interface repast.simphony.visualization.IDisplay
IDisplay.LayoutFrequency
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.static long
Deprecated.protected DisplayData<?>
Deprecated.protected Object
Deprecated.protected PiccoloMapPanel
Deprecated.static final String
Deprecated.Fields inherited from class repast.simphony.visualization.AbstractDisplay
dlSupport, FRAME_UPDATE_INTERVAL, INFO_CURSOR, lastRenderTS, probeSupport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Deprecated.void
closed()
Deprecated.Notifies this IDisplay that its associated gui widget has been closed.createEditor
(JPanel panel) Deprecated.Creates an DisplayEditor appropriate for editing this display.void
Deprecated.void
Deprecated.Notifies this IDisplay that its associated gui widget has been deIconified.void
destroy()
Deprecated.Destroys the display, allowing it to free any resources it may have acquired.void
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.Deprecated.Gets the decorator used to decorate selected gis features.Deprecated.Gets the geography this display displays.Deprecated.Gets the data used to initialize this display.Deprecated.Gets the layout the display usesgetPanel()
Deprecated.Gets a panel that contains the actual gui for visualization.Deprecated.Gets a list of the agent classes registered with this display.org.geotools.styling.Style
getStyleFor
(String agentClassName) Deprecated.Gets the style for the specified agent type.Deprecated.void
Deprecated.Notifies this IDisplay that its associated gui widget has been iconified.void
init()
Deprecated.Initializes the display.static Icon
Deprecated.protected void
moveObject
(Object o) Deprecated.void
probe
(org.locationtech.jts.geom.Envelope env) Deprecated.void
Deprecated.Invoked when a projection event occurs.void
registerAgentStyle
(String agentName, org.geotools.styling.Style style, Integer order) Deprecated.Registers a style for the specified agent.void
registerFeatureSource
(org.geotools.data.FeatureSource source, org.geotools.styling.Style style, Integer order) Deprecated.Registers a style for the specified feature source.void
registerToolBar
(JToolBar bar) Deprecated.Registers the specified toolbar with this IDisplay.protected void
Deprecated.void
render()
Deprecated.Render the display.void
Deprecated.Resets the home (initial) view of the displayvoid
Deprecated.Sets the Layout for the display to use.void
setLayoutFrequency
(IDisplay.LayoutFrequency frequency, int interval) Deprecated.Sets the frequency of the layout.void
setPause
(boolean pause) Deprecated.Executes when simulation is paused.void
Deprecated.void
update()
Deprecated.Updates the state of the display to reflect whatever it is that it is displaying.void
Deprecated.void
Deprecated.void
Deprecated.void
Deprecated.void
Deprecated.void
Deprecated.void
Deprecated.Methods inherited from class repast.simphony.visualization.AbstractDisplay
addDisplayListener, addProbeListener, createInfoCursor, getProbeSupport, setProbeSupport
-
Field Details
-
GIS_FRAME_UPDATE_INTERVAL
public static long GIS_FRAME_UPDATE_INTERVALDeprecated. -
BACKGROUND_LAYER_PREFIX
Deprecated.- See Also:
-
SHP_FILE_STYLE_PROP
Deprecated. -
panel
Deprecated. -
initData
Deprecated. -
lock
Deprecated.
-
-
Constructor Details
-
DisplayGIS
Deprecated.
-
-
Method Details
-
getGeography
Deprecated.Gets the geography this display displays.- Returns:
- the geography this display displays.
-
projectionEventOccurred
Deprecated.Description copied from interface:ProjectionListener
Invoked when a projection event occurs.- Specified by:
projectionEventOccurred
in interfaceProjectionListener
- Overrides:
projectionEventOccurred
in classAbstractDisplay
- Parameters:
evt
- the object describing the event
-
registerAgentStyle
Deprecated.Registers a style for the specified agent.- Parameters:
agentName
- the name of the agentstyle
- the styleorder
- the layer order
-
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 sourcestyle
- the styleorder
- the layer order
-
addObject
Deprecated.- Specified by:
addObject
in classAbstractDisplay
-
moveObject
Deprecated.- Specified by:
moveObject
in classAbstractDisplay
-
removeObject
Deprecated.- Specified by:
removeObject
in classAbstractDisplay
-
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 interfaceIDisplay
- Overrides:
destroy
in classAbstractDisplay
-
getLayout
Deprecated.Description copied from interface:IDisplay
Gets the layout the display uses -
init
public void init()Deprecated.Initializes the display. Called once before the display is made visible. -
probe
public void probe(org.locationtech.jts.geom.Envelope env) Deprecated. -
setLayout
Deprecated.Description copied from interface:IDisplay
Sets the Layout for the display to use. -
setLayoutFrequency
Deprecated.Description copied from interface:IDisplay
Sets the frequency of the layout.- Specified by:
setLayoutFrequency
in interfaceIDisplay
- Parameters:
frequency
- the frequency of the layoutinterval
- 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. -
render
public void render()Deprecated.Description copied from interface:Renderer
Render the display. This rendering should take place asynchronously on the AWT thread. -
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. -
resetHomeView
public void resetHomeView()Deprecated.Description copied from interface:IDisplay
Resets the home (initial) view of the display- Specified by:
resetHomeView
in interfaceIDisplay
-
windowActivated
Deprecated.- Specified by:
windowActivated
in interfaceWindowListener
-
windowClosed
Deprecated.- Specified by:
windowClosed
in interfaceWindowListener
-
windowClosing
Deprecated.- Specified by:
windowClosing
in interfaceWindowListener
-
windowDeactivated
Deprecated.- Specified by:
windowDeactivated
in interfaceWindowListener
-
windowDeiconified
Deprecated.- Specified by:
windowDeiconified
in interfaceWindowListener
-
windowIconified
Deprecated.- Specified by:
windowIconified
in interfaceWindowListener
-
windowOpened
Deprecated.- Specified by:
windowOpened
in interfaceWindowListener
-
closed
public void closed()Deprecated.Description copied from interface:IDisplay
Notifies this IDisplay that its associated gui widget has been closed. -
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 interfaceIDisplay
-
getInitData
Deprecated.Gets the data used to initialize this display.- Returns:
- the data used to initialize this display.
-
getStyleFor
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
Deprecated.Creates an DisplayEditor appropriate for editing this display.- Specified by:
createEditor
in interfaceIDisplay
- Parameters:
panel
-- Returns:
- an DisplayEditor appropriate for editing this display or null if this display cannot be edited.
-
getPanel
Deprecated.Gets a panel that contains the actual gui for visualization. -
registerToolBar
Deprecated.Registers the specified toolbar with this IDisplay. This IDisplay can then put buttons etc. are on this toolbar.- Specified by:
registerToolBar
in interfaceIDisplay
- Overrides:
registerToolBar
in classAbstractDisplay
- 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. -
getToolManager
Deprecated. -
getDecorator
Deprecated.Gets the decorator used to decorate selected gis features.- Returns:
- the decorator used to decorate selected gis features.
-
loadIcon
Deprecated. -
createPanel
public void createPanel()Deprecated. -
toggleInfoProbe
public void toggleInfoProbe()Deprecated.
-