Class AbstractDisplay3D
java.lang.Object
repast.simphony.visualization.AbstractDisplay
repast.simphony.visualization.visualization3D.AbstractDisplay3D
- All Implemented Interfaces:
WindowListener,EventListener,Renderer,ProjectionListener,IDisplay
- Direct Known Subclasses:
Display3D
Abstract base class for 3D displays.
- Version:
- $Revision: 1.2 $ $Date: 2006/01/06 22:53:54 $
- Author:
- Nick Collier
-
Nested Class Summary
Nested classes/interfaces inherited from interface repast.simphony.visualization.IDisplay
IDisplay.LayoutFrequency -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String,ProjectionDecorator3D> protected Map<Class,AbstractDisplayLayer3D> protected booleanprotected DisplayData<?>protected Layoutprotected Map<Network,AbstractDisplayLayer3D> protected JPanelprotected ValueDisplayLayer3Dprotected ValueLayerStyle3DFields inherited from class repast.simphony.visualization.AbstractDisplay
dlSupport, FRAME_UPDATE_INTERVAL, INFO_CURSOR, lastRenderTS, probeSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected abstract AbstractDisplayLayer3DcreateDisplayLayer(Style3D style) protected abstract AbstractDisplayLayer3DcreateEdgeLayer(EdgeStyle3D style, Network network) voidprotected abstract ValueDisplayLayer3Dprotected AbstractDisplayLayer3Dabstract org.jogamp.java3d.exp.swing.JCanvas3DDisplayData<?>Get the data used to initialize this display.voidinit()Initializes the display.protected voidmoveObject(Object o) voidregisterDecorator(ProjectionDecorator3D decorator) voidregisterNetworkStyle(Network network, EdgeStyle3D style) voidregisterStyle(Class clazz, Style3D style) voidprotected voidremoveObject(Object obj) voidSets the Layout for the display to use.voidsetLayoutFrequency(IDisplay.LayoutFrequency frequency, int interval) Sets the frequency of the layout.voidupdate()Updates the state of the display to reflect whatever it is that it is displaying.voidvoidvoidvoidvoidvoidvoidMethods inherited from class repast.simphony.visualization.AbstractDisplay
addDisplayListener, addProbeListener, createInfoCursor, destroy, getProbeSupport, projectionEventOccurred, registerToolBar, setProbeSupportMethods 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, resetHomeView
-
Field Details
-
initData
-
displayMap
-
networkMap
-
valueLayer
-
valueLayerStyle
-
layout
-
iconified
protected boolean iconified -
panel
-
decoratorMap
-
-
Constructor Details
-
AbstractDisplay3D
-
-
Method Details
-
init
public void init()Description copied from interface:IDisplayInitializes the display. Called once before the display is made visible. -
registerStyle
-
getRegisteredAgents
-
registerDecorator
-
registerNetworkStyle
-
registerValueLayerStyle
-
createPanel
public void createPanel() -
setLayout
Description copied from interface:IDisplaySets the Layout for the display to use. -
setLayoutFrequency
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()Description copied from interface:IDisplayUpdates the state of the display to reflect whatever it is that it is displaying. -
createDisplayLayer
-
createEdgeLayer
-
createValueLayerDisplayLayer
-
addObject
- Specified by:
addObjectin classAbstractDisplay
-
findLayer
-
moveObject
- Specified by:
moveObjectin classAbstractDisplay
-
removeObject
- Specified by:
removeObjectin classAbstractDisplay
-
windowActivated
- Specified by:
windowActivatedin interfaceWindowListener
-
windowClosed
- Specified by:
windowClosedin interfaceWindowListener
-
windowClosing
- Specified by:
windowClosingin interfaceWindowListener
-
windowDeactivated
- Specified by:
windowDeactivatedin interfaceWindowListener
-
windowDeiconified
- Specified by:
windowDeiconifiedin interfaceWindowListener
-
windowIconified
- Specified by:
windowIconifiedin interfaceWindowListener
-
windowOpened
- Specified by:
windowOpenedin interfaceWindowListener
-
getInitData
Get the data used to initialize this display.- Returns:
- the data used to initialize this display.
-
getCanvas
public abstract org.jogamp.java3d.exp.swing.JCanvas3D getCanvas()
-