Package repast.simphony.visualization
Class AbstractDisplay
java.lang.Object
repast.simphony.visualization.AbstractDisplay
- All Implemented Interfaces:
Renderer,ProjectionListener,IDisplay
- Direct Known Subclasses:
AbstractDisplay3D,Display2D,DisplayGIS,DisplayGIS3D,DisplayOGL2D
-
Nested Class Summary
Nested classes/interfaces inherited from interface repast.simphony.visualization.IDisplay
IDisplay.LayoutFrequency -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DisplayListenerSupportstatic longprotected static final Cursorprotected longprotected ProbeListenerSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDisplayListener(DisplayListener listener) Adds a display listener to this display.protected abstract voidvoidaddProbeListener(ProbeListener listener) Adds a probe listener to listen for probe events produced by this IDisplay.static Cursorvoiddestroy()Destroys the display, allowing it to free any resources it may have acquired.protected abstract voidmoveObject(Object o) voidInvoked when a projection event occurs.voidregisterToolBar(JToolBar bar) Registers the specified toolbar with this IDisplay.protected abstract voidvoidsetProbeSupport(ProbeListenerSupport probeSupport) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface repast.simphony.visualization.IDisplay
closed, createEditor, deIconified, getLayout, getPanel, iconified, init, resetHomeView, setLayout, setLayoutFrequency, update
-
Field Details
-
FRAME_UPDATE_INTERVAL
public static long FRAME_UPDATE_INTERVAL -
INFO_CURSOR
-
probeSupport
-
dlSupport
-
lastRenderTS
protected long lastRenderTS
-
-
Constructor Details
-
AbstractDisplay
public AbstractDisplay()
-
-
Method Details
-
projectionEventOccurred
Description copied from interface:ProjectionListenerInvoked when a projection event occurs.- Specified by:
projectionEventOccurredin interfaceProjectionListener- Parameters:
evt- the object describing the event
-
addObject
-
removeObject
-
moveObject
-
addProbeListener
Adds a probe listener to listen for probe events produced by this IDisplay.- Specified by:
addProbeListenerin interfaceIDisplay- Parameters:
listener- the listener to add
-
addDisplayListener
Adds a display listener to this display.- Specified by:
addDisplayListenerin interfaceIDisplay- Parameters:
listener- the listener to add
-
registerToolBar
Registers 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- Parameters:
bar- the bar to register
-
getProbeSupport
-
setProbeSupport
-
destroy
public void destroy()Destroys the display, allowing it to free any resources it may have acquired. -
createInfoCursor
-