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
Nested ClassesModifier and TypeClassDescriptionclassDeprecated.Assists mouse wheel zoom control by updating the center coordclassDeprecated.Zoom control with mouse wheelNested classes/interfaces inherited from interface repast.simphony.visualization.IDisplay
IDisplay.LayoutFrequency -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static longDeprecated.protected DisplayData<?>Deprecated.protected ObjectDeprecated.protected PiccoloMapPanelDeprecated.static final StringDeprecated.Fields inherited from class repast.simphony.visualization.AbstractDisplay
dlSupport, FRAME_UPDATE_INTERVAL, INFO_CURSOR, lastRenderTS, probeSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeprecated.voidclosed()Deprecated.Notifies this IDisplay that its associated gui widget has been closed.createEditor(JPanel panel) Deprecated.Creates an DisplayEditor appropriate for editing this display.voidDeprecated.voidDeprecated.Notifies this IDisplay that its associated gui widget has been deIconified.voiddestroy()Deprecated.Destroys the display, allowing it to free any resources it may have acquired.voidDeprecated.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.StylegetStyleFor(String agentClassName) Deprecated.Gets the style for the specified agent type.Deprecated.voidDeprecated.Notifies this IDisplay that its associated gui widget has been iconified.voidinit()Deprecated.Initializes the display.static IconDeprecated.protected voidmoveObject(Object o) Deprecated.voidprobe(org.locationtech.jts.geom.Envelope env) Deprecated.voidDeprecated.Invoked when a projection event occurs.voidregisterAgentStyle(String agentName, org.geotools.styling.Style style, Integer order) Deprecated.Registers a style for the specified agent.voidregisterFeatureSource(org.geotools.data.FeatureSource source, org.geotools.styling.Style style, Integer order) Deprecated.Registers a style for the specified feature source.voidregisterToolBar(JToolBar bar) Deprecated.Registers the specified toolbar with this IDisplay.protected voidDeprecated.voidrender()Deprecated.Render the display.voidDeprecated.Resets the home (initial) view of the displayvoidDeprecated.Sets the Layout for the display to use.voidsetLayoutFrequency(IDisplay.LayoutFrequency frequency, int interval) Deprecated.Sets the frequency of the layout.voidsetPause(boolean pause) Deprecated.Executes when simulation is paused.voidDeprecated.voidupdate()Deprecated.Updates the state of the display to reflect whatever it is that it is displaying.voidDeprecated.voidDeprecated.voidDeprecated.voidDeprecated.voidDeprecated.voidDeprecated.voidDeprecated.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:ProjectionListenerInvoked when a projection event occurs.- Specified by:
projectionEventOccurredin interfaceProjectionListener- Overrides:
projectionEventOccurredin 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:
addObjectin classAbstractDisplay
-
moveObject
Deprecated.- Specified by:
moveObjectin classAbstractDisplay
-
removeObject
Deprecated.- Specified by:
removeObjectin classAbstractDisplay
-
destroy
public void destroy()Deprecated.Description copied from class:AbstractDisplayDestroys the display, allowing it to free any resources it may have acquired.- Specified by:
destroyin interfaceIDisplay- Overrides:
destroyin classAbstractDisplay
-
getLayout
Deprecated.Description copied from interface:IDisplayGets 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:IDisplaySets the Layout for the display to use. -
setLayoutFrequency
Deprecated.Description copied from interface:IDisplaySets the frequency of the layout.- Specified by:
setLayoutFrequencyin 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:IDisplayUpdates the state of the display to reflect whatever it is that it is displaying. -
render
public void render()Deprecated.Description copied from interface:RendererRender 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:IDisplayResets the home (initial) view of the display- Specified by:
resetHomeViewin interfaceIDisplay
-
windowActivated
Deprecated.- Specified by:
windowActivatedin interfaceWindowListener
-
windowClosed
Deprecated.- Specified by:
windowClosedin interfaceWindowListener
-
windowClosing
Deprecated.- Specified by:
windowClosingin interfaceWindowListener
-
windowDeactivated
Deprecated.- Specified by:
windowDeactivatedin interfaceWindowListener
-
windowDeiconified
Deprecated.- Specified by:
windowDeiconifiedin interfaceWindowListener
-
windowIconified
Deprecated.- Specified by:
windowIconifiedin interfaceWindowListener
-
windowOpened
Deprecated.- Specified by:
windowOpenedin interfaceWindowListener
-
closed
public void closed()Deprecated.Description copied from interface:IDisplayNotifies this IDisplay that its associated gui widget has been closed. -
deIconified
public void deIconified()Deprecated.Description copied from interface:IDisplayNotifies this IDisplay that its associated gui widget has been deIconified.- Specified by:
deIconifiedin 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:
createEditorin 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:
registerToolBarin interfaceIDisplay- Overrides:
registerToolBarin classAbstractDisplay- Parameters:
bar- the bar to register
-
iconified
public void iconified()Deprecated.Description copied from interface:IDisplayNotifies 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.
-