Class NetworkLayerOGL2D
- java.lang.Object
-
- repast.simphony.visualizationOGL2D.AbstractDisplayLayerOGL2D<EdgeStyleOGL2D>
-
- repast.simphony.visualizationOGL2D.NetworkLayerOGL2D
-
- All Implemented Interfaces:
ProjectionListener
,IDisplayLayer<saf.v3d.scene.VSpatial>
public class NetworkLayerOGL2D extends AbstractDisplayLayerOGL2D<EdgeStyleOGL2D> implements ProjectionListener
- Author:
- Nick Collier
-
-
Field Summary
-
Fields inherited from class repast.simphony.visualizationOGL2D.AbstractDisplayLayerOGL2D
LABEL_KEY, labelLayers, layer, MODEL_OBJECT_KEY, objMap, style, toBeAdded, toBeRemoved
-
-
Constructor Summary
Constructors Constructor Description NetworkLayerOGL2D(Network<?> network, EdgeStyleOGL2D style, saf.v3d.scene.VLayer layer, DisplayOGL2D display)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
projectionEventOccurred(ProjectionEvent evt)
Invoked when a projection event occurs.void
update(LayoutUpdater updater)
Updates the displayed nodes by applying styles etc.-
Methods inherited from class repast.simphony.visualizationOGL2D.AbstractDisplayLayerOGL2D
addObject, applyUpdates, getStyle, getVisualItem, removeObject, setStyle
-
-
-
-
Constructor Detail
-
NetworkLayerOGL2D
public NetworkLayerOGL2D(Network<?> network, EdgeStyleOGL2D style, saf.v3d.scene.VLayer layer, DisplayOGL2D display)
-
-
Method Detail
-
projectionEventOccurred
public void projectionEventOccurred(ProjectionEvent evt)
Description copied from interface:ProjectionListener
Invoked when a projection event occurs.- Specified by:
projectionEventOccurred
in interfaceProjectionListener
- Parameters:
evt
- the object describing the event
-
update
public void update(LayoutUpdater updater)
Description copied from class:AbstractDisplayLayerOGL2D
Updates the displayed nodes by applying styles etc. The display is not updated to reflect these changes.- Specified by:
update
in interfaceIDisplayLayer<saf.v3d.scene.VSpatial>
- Specified by:
update
in classAbstractDisplayLayerOGL2D<EdgeStyleOGL2D>
- Parameters:
updater
- used to update the layout and position information
-
-