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 removedStandard GIS Display- Author:
- Nick Collier, Eric Tatara
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
DisplayGIS.RepastPiccoloMouseMotionListener
Deprecated.Assists mouse wheel zoom control by updating the center coordclass
DisplayGIS.RepastPiccoloMouseWheelListener
Deprecated.Zoom control with mouse wheel-
Nested classes/interfaces inherited from interface repast.simphony.visualization.IDisplay
IDisplay.LayoutFrequency
-
-
Field Summary
Fields Modifier and Type Field Description static String
BACKGROUND_LAYER_PREFIX
Deprecated.static long
GIS_FRAME_UPDATE_INTERVAL
Deprecated.protected DisplayData<?>
initData
Deprecated.protected Object
lock
Deprecated.protected PiccoloMapPanel
panel
Deprecated.static String
SHP_FILE_STYLE_PROP
Deprecated.-
Fields inherited from class repast.simphony.visualization.AbstractDisplay
dlSupport, FRAME_UPDATE_INTERVAL, INFO_CURSOR, lastRenderTS, probeSupport
-
-
Constructor Summary
Constructors Constructor Description DisplayGIS(DisplayData<?> data)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
addObject(Object o)
Deprecated.void
closed()
Deprecated.Notifies this IDisplay that its associated gui widget has been closed.DisplayEditorLifecycle
createEditor(JPanel panel)
Deprecated.Creates an DisplayEditor appropriate for editing this display.void
createPanel()
Deprecated.void
deIconified()
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
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.SelectionDecorator
getDecorator()
Deprecated.Gets the decorator used to decorate selected gis features.Geography
getGeography()
Deprecated.Gets the geography this display displays.DisplayData
getInitData()
Deprecated.Gets the data used to initialize this display.Layout
getLayout()
Deprecated.Gets the layout the display usesJPanel
getPanel()
Deprecated.Gets a panel that contains the actual gui for visualization.List<Class>
getRegisteredClasses()
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.ToolManager
getToolManager()
Deprecated.void
iconified()
Deprecated.Notifies this IDisplay that its associated gui widget has been iconified.void
init()
Deprecated.Initializes the display.static Icon
loadIcon(String name)
Deprecated.protected void
moveObject(Object o)
Deprecated.void
probe(org.locationtech.jts.geom.Envelope env)
Deprecated.void
projectionEventOccurred(ProjectionEvent evt)
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
removeObject(Object o)
Deprecated.void
render()
Deprecated.Render the display.void
resetHomeView()
Deprecated.Resets the home (initial) view of the displayvoid
setLayout(Layout layout)
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
toggleInfoProbe()
Deprecated.void
update()
Deprecated.Updates the state of the display to reflect whatever it is that it is displaying.void
windowActivated(WindowEvent e)
Deprecated.void
windowClosed(WindowEvent e)
Deprecated.void
windowClosing(WindowEvent e)
Deprecated.void
windowDeactivated(WindowEvent e)
Deprecated.void
windowDeiconified(WindowEvent e)
Deprecated.void
windowIconified(WindowEvent e)
Deprecated.void
windowOpened(WindowEvent e)
Deprecated.-
Methods inherited from class repast.simphony.visualization.AbstractDisplay
addDisplayListener, addProbeListener, createInfoCursor, getProbeSupport, setProbeSupport
-
-
-
-
Field Detail
-
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:
- Constant Field Values
-
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 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.
-
projectionEventOccurred
public void projectionEventOccurred(ProjectionEvent evt)
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
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 agentstyle
- the styleorder
- 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 sourcestyle
- the styleorder
- the layer order
-
addObject
protected void addObject(Object o)
Deprecated.- Specified by:
addObject
in classAbstractDisplay
-
moveObject
protected void moveObject(Object o)
Deprecated.- Specified by:
moveObject
in classAbstractDisplay
-
removeObject
protected void removeObject(Object o)
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
public Layout 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
public void setLayout(Layout layout)
Deprecated.Description copied from interface:IDisplay
Sets the Layout for the display 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 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
public void windowActivated(WindowEvent e)
Deprecated.- Specified by:
windowActivated
in interfaceWindowListener
-
windowClosed
public void windowClosed(WindowEvent e)
Deprecated.- Specified by:
windowClosed
in interfaceWindowListener
-
windowClosing
public void windowClosing(WindowEvent e)
Deprecated.- Specified by:
windowClosing
in interfaceWindowListener
-
windowDeactivated
public void windowDeactivated(WindowEvent e)
Deprecated.- Specified by:
windowDeactivated
in interfaceWindowListener
-
windowDeiconified
public void windowDeiconified(WindowEvent e)
Deprecated.- Specified by:
windowDeiconified
in interfaceWindowListener
-
windowIconified
public void windowIconified(WindowEvent e)
Deprecated.- Specified by:
windowIconified
in interfaceWindowListener
-
windowOpened
public void windowOpened(WindowEvent e)
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
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 interfaceIDisplay
- 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.
-
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 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
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.
-
createPanel
public void createPanel()
Deprecated.
-
toggleInfoProbe
public void toggleInfoProbe()
Deprecated.
-
-