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
Modifier and TypeFieldDescriptionprotected DisplayListenerSupport
static long
protected static final Cursor
protected long
protected ProbeListenerSupport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDisplayListener
(DisplayListener listener) Adds a display listener to this display.protected abstract void
void
addProbeListener
(ProbeListener listener) Adds a probe listener to listen for probe events produced by this IDisplay.static Cursor
void
destroy()
Destroys the display, allowing it to free any resources it may have acquired.protected abstract void
moveObject
(Object o) void
Invoked when a projection event occurs.void
registerToolBar
(JToolBar bar) Registers the specified toolbar with this IDisplay.protected abstract void
void
setProbeSupport
(ProbeListenerSupport probeSupport) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:ProjectionListener
Invoked when a projection event occurs.- Specified by:
projectionEventOccurred
in 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:
addProbeListener
in interfaceIDisplay
- Parameters:
listener
- the listener to add
-
addDisplayListener
Adds a display listener to this display.- Specified by:
addDisplayListener
in 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:
registerToolBar
in 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
-