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
ConstructorsConstructorDescriptionNetworkLayerOGL2D(Network<?> network, EdgeStyleOGL2D style, saf.v3d.scene.VLayer layer, DisplayOGL2D display) -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked when a projection event occurs.voidupdate(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:ProjectionListenerInvoked when a projection event occurs.- Specified by:
projectionEventOccurredin interfaceProjectionListener- Parameters:
evt- the object describing the event
-
update
Description copied from class:AbstractDisplayLayerOGL2DUpdates the displayed nodes by applying styles etc. The display is not updated to reflect these changes.- Specified by:
updatein interfaceIDisplayLayer<saf.v3d.scene.VSpatial>- Specified by:
updatein classAbstractDisplayLayerOGL2D<EdgeStyleOGL2D>- Parameters:
updater- used to update the layout and position information
-