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
ConstructorDescriptionNetworkLayerOGL2D
(Network<?> network, EdgeStyleOGL2D style, saf.v3d.scene.VLayer layer, DisplayOGL2D display) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
NetworkLayerOGL2D
public NetworkLayerOGL2D(Network<?> network, EdgeStyleOGL2D style, saf.v3d.scene.VLayer layer, DisplayOGL2D display)
-
-
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
-
update
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
-