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
Modifier and TypeFieldDescriptionprotected Map<String,
ProjectionDecorator3D> protected Map<Class,
AbstractDisplayLayer3D> protected boolean
protected DisplayData<?>
protected Layout
protected Map<Network,
AbstractDisplayLayer3D> protected JPanel
protected ValueDisplayLayer3D
protected ValueLayerStyle3D
Fields inherited from class repast.simphony.visualization.AbstractDisplay
dlSupport, FRAME_UPDATE_INTERVAL, INFO_CURSOR, lastRenderTS, probeSupport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected abstract AbstractDisplayLayer3D
createDisplayLayer
(Style3D style) protected abstract AbstractDisplayLayer3D
createEdgeLayer
(EdgeStyle3D style, Network network) void
protected abstract ValueDisplayLayer3D
protected AbstractDisplayLayer3D
abstract org.jogamp.java3d.exp.swing.JCanvas3D
DisplayData<?>
Get the data used to initialize this display.void
init()
Initializes the display.protected void
moveObject
(Object o) void
registerDecorator
(ProjectionDecorator3D decorator) void
registerNetworkStyle
(Network network, EdgeStyle3D style) void
registerStyle
(Class clazz, Style3D style) void
protected void
removeObject
(Object obj) void
Sets the Layout for the display to use.void
setLayoutFrequency
(IDisplay.LayoutFrequency frequency, int interval) Sets the frequency of the layout.void
update()
Updates the state of the display to reflect whatever it is that it is displaying.void
void
void
void
void
void
void
Methods inherited from class repast.simphony.visualization.AbstractDisplay
addDisplayListener, addProbeListener, createInfoCursor, destroy, getProbeSupport, projectionEventOccurred, registerToolBar, setProbeSupport
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, 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:IDisplay
Initializes the display. Called once before the display is made visible. -
registerStyle
-
getRegisteredAgents
-
registerDecorator
-
registerNetworkStyle
-
registerValueLayerStyle
-
createPanel
public void createPanel() -
setLayout
Description copied from interface:IDisplay
Sets the Layout for the display to use. -
setLayoutFrequency
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()Description copied from interface:IDisplay
Updates the state of the display to reflect whatever it is that it is displaying. -
createDisplayLayer
-
createEdgeLayer
-
createValueLayerDisplayLayer
-
addObject
- Specified by:
addObject
in classAbstractDisplay
-
findLayer
-
moveObject
- Specified by:
moveObject
in classAbstractDisplay
-
removeObject
- Specified by:
removeObject
in classAbstractDisplay
-
windowActivated
- Specified by:
windowActivated
in interfaceWindowListener
-
windowClosed
- Specified by:
windowClosed
in interfaceWindowListener
-
windowClosing
- Specified by:
windowClosing
in interfaceWindowListener
-
windowDeactivated
- Specified by:
windowDeactivated
in interfaceWindowListener
-
windowDeiconified
- Specified by:
windowDeiconified
in interfaceWindowListener
-
windowIconified
- Specified by:
windowIconified
in interfaceWindowListener
-
windowOpened
- Specified by:
windowOpened
in 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()
-