Class Display2D
java.lang.Object
repast.simphony.visualization.AbstractDisplay
repast.simphony.visualization.visualization2D.Display2D
- All Implemented Interfaces:
WindowListener,EventListener,Renderer,ProjectionListener,IDisplay
Deprecated.
replaced by ogl 2D
-
Nested Class Summary
Nested classes/interfaces inherited from interface repast.simphony.visualization.IDisplay
IDisplay.LayoutFrequency -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RepastCanvas2DDeprecated.protected Map<Class,IDisplayLayer2D> Deprecated.protected Map<String,ProjectionDecorator2D> Deprecated.static intDeprecated.static intDeprecated.protected booleanDeprecated.protected org.piccolo2d.nodes.PPathDeprecated.protected org.piccolo2d.nodes.PPathDeprecated.protected booleanDeprecated.protected DisplayData<?>Deprecated.protected ObjectDeprecated.protected LayoutDeprecated.protected LayoutUpdaterDeprecated.protected final ObjectDeprecated.protected Map<Object,IDisplayLayer2D> Deprecated.protected JPanelDeprecated.protected booleanDeprecated.protected RunnableDeprecated.protected booleanDeprecated.protected repast.simphony.visualization.visualization2D.Display2D.UpdaterDeprecated.protected ValueDisplayLayer2DDeprecated.protected Iterable<ValueLayer>Deprecated.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.protected IDisplayLayer2DDeprecated.findObjForItem(org.piccolo2d.PNode node) Deprecated.Finds the object for which the specified PNode is the representation.voidDeprecated.Need to render displays when the sim is paused and initialized, because the display won't render with Display2D.render() if it is hidden.Deprecated.Gets the data used to initialize this display.Deprecated.Gets the layout.getPanel()Deprecated.Gets a panel that contains the actual gui for visualization.getprobedObjects(org.piccolo2d.util.PPickPath path, Point2D probeLocation) Deprecated.Returns a list of agents at the probe locationDeprecated.Gets the classes for which styles have been registered.org.piccolo2d.PNodeDeprecated.voidDeprecated.Notifies this IDisplay that its associated gui widget has been iconified.voidinit()Deprecated.Initializes the display.protected voidDeprecated.protected voidmoveObject(Object o) Deprecated.voidregisterDecorator(ProjectionDecorator2D decorator) Deprecated.voidregisterNetworkStyle(Network topology, EdgeStyle2D style) Deprecated.voidregisterStyle(Class clazz, Style2D style) Deprecated.voidregisterToolBar(JToolBar bar) Deprecated.Registers the specified toolbar with this IDisplay.voidDeprecated.protected voidDeprecated.voidrender()Deprecated.The render method is alled each time the simulation runner thread steps the schedule.voidDeprecated.Resets the home (initial) view of the displayvoidsetBackgroundColor(Color color) Deprecated.voidDeprecated.voidDeprecated.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.Pause the rendering.voidDeprecated.voidupdate()Deprecated.The update method is called according to the frequency in the display descriptor.voidwindowActivated(WindowEvent arg0) Deprecated.voidwindowClosed(WindowEvent arg0) Deprecated.voidwindowClosing(WindowEvent arg0) Deprecated.voidwindowDeactivated(WindowEvent arg0) Deprecated.voidDeprecated.voidDeprecated.voidwindowOpened(WindowEvent arg0) Deprecated.Methods inherited from class repast.simphony.visualization.AbstractDisplay
addDisplayListener, addProbeListener, createInfoCursor, getProbeSupport, projectionEventOccurred, setProbeSupport
-
Field Details
-
DISPLAY_HEIGHT
public static int DISPLAY_HEIGHTDeprecated. -
DISPLAY_WIDTH
public static int DISPLAY_WIDTHDeprecated. -
lock
Deprecated. -
classStyleMap
Deprecated. -
objectStyleMap
Deprecated. -
valueDisplayLayer
Deprecated. -
layout
Deprecated. -
layoutUpdater
Deprecated. -
initData
Deprecated. -
iconified
protected boolean iconifiedDeprecated. -
panel
Deprecated. -
renderer
Deprecated. -
updater
protected repast.simphony.visualization.visualization2D.Display2D.Updater updaterDeprecated. -
canvas
Deprecated. -
decoratorMap
Deprecated. -
valueLayers
Deprecated. -
doRender
protected boolean doRenderDeprecated. -
showHoverProbes
protected boolean showHoverProbesDeprecated. -
hoverProbe
protected org.piccolo2d.nodes.PPath hoverProbeDeprecated. -
hoverProbeBox
protected org.piccolo2d.nodes.PPath hoverProbeBoxDeprecated. -
lastProbedObject
Deprecated. -
pause
protected boolean pauseDeprecated.
-
-
Constructor Details
-
Display2D
Deprecated.
-
-
Method Details
-
getInitData
Deprecated.Gets the data used to initialize this display.- Returns:
- the data used to initialize this display.
-
initScene
protected void initScene()Deprecated. -
findObjForItem
Deprecated.Finds the object for which the specified PNode is the representation.- Parameters:
node- the representational PNode- Returns:
- the object for which the specified PNode is the representation or null if the object is not found.
-
getprobedObjects
Deprecated.Returns a list of agents at the probe location- Parameters:
path- the path at the probe locationprobeLocation- the probe location- Returns:
- the list of agents at the probe location.
-
registerDecorator
Deprecated. -
init
public void init()Deprecated.Description copied from interface:IDisplayInitializes the display. Called once before the display is made visible. -
setBoundingBox
Deprecated. -
registerStyle
Deprecated. -
registerNetworkStyle
Deprecated. -
registerValueLayerStyle
Deprecated. -
createPanel
public void createPanel()Deprecated. -
render
public void render()Deprecated.The render method is alled each time the simulation runner thread steps the schedule. -
forceRender
public void forceRender()Deprecated.Need to render displays when the sim is paused and initialized, because the display won't render with Display2D.render() if it is hidden. -
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
-
getPanel
Deprecated.Description copied from interface:IDisplayGets a panel that contains the actual gui for visualization. -
addObject
Deprecated.- Specified by:
addObjectin classAbstractDisplay
-
moveObject
Deprecated.- Specified by:
moveObjectin classAbstractDisplay
-
findLayer
Deprecated. -
removeObject
Deprecated.- Specified by:
removeObjectin classAbstractDisplay
-
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.The update method is called according to the frequency in the display descriptor. First the layoutUpdater.update() is called to calculate the new positions for objects, then the doRender flag is set so that the next render() call renders the updates, then the updater runnable is executed in the event dispatch thread. -
getVisualItem
Deprecated. -
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
-
setPause
public void setPause(boolean pause) Deprecated.Description copied from interface:RendererPause the rendering. The Renderer should update and render if pause is true, if possible. The rendering should take place asynchronously on the AWT thread. -
iconified
public void iconified()Deprecated.Notifies this IDisplay that its associated gui widget has been iconified. -
closed
public void closed()Deprecated.Notifies this IDisplay that its associated gui widget has been closed. -
deIconified
public void deIconified()Deprecated.Notifies this IDisplay that its associated gui widget has been deIconified.- Specified by:
deIconifiedin interfaceIDisplay
-
getLayout
Deprecated.Gets the layout. -
getRegisteredClasses
Deprecated.Gets the classes for which styles have been registered.- Returns:
- the classes for which styles have been registered.
-
createEditor
Deprecated.Creates an DisplayEditor appropriate for editing this display.- Specified by:
createEditorin interfaceIDisplay- Parameters:
panel- a JPanel with a BorderLayout to which editor components can be added- Returns:
- an DisplayEditor appropriate for editing this display or null if this display cannot be edited.
-
resetHomeView
public void resetHomeView()Deprecated.Description copied from interface:IDisplayResets the home (initial) view of the display- Specified by:
resetHomeViewin interfaceIDisplay
-
setBackgroundColor
Deprecated. -
registerToolBar
Deprecated.Description copied from class:AbstractDisplayRegisters the specified toolbar with this IDisplay. This IDisplay can then put buttons etc. are on this toolbar. This is a default no-op implementation.- Specified by:
registerToolBarin interfaceIDisplay- Overrides:
registerToolBarin classAbstractDisplay- Parameters:
bar- the bar to register
-
toggleInfoProbe
public void toggleInfoProbe()Deprecated.
-