Package repast.simphony.visualization
Interface IDisplayLayer<T>
- All Known Subinterfaces:
IDisplayLayer2D
,IDisplayLayer3D
- All Known Implementing Classes:
AbstractAirspaceLayer
,AbstractDisplayLayer3D
,AbstractDisplayLayerOGL2D
,AbstractRenderableLayer
,DisplayLayer2D
,DisplayLayer3D
,NetworkDisplayLayer2D
,NetworkDisplayLayer3D
,NetworkLayerGIS
,NetworkLayerOGL2D
,PlaceMarkLayer
,StyledDisplayLayer2D
,StyledDisplayLayerOGL2D
,SurfaceShapeLayer
public interface IDisplayLayer<T>
Interface for display layers.
- Author:
- Nick Collier
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the specified object to the layer.void
Applies the latest set of updates to the displayed objects.getVisualItem
(Object obj) Gets the visual representation of this object.void
removeObject
(Object obj) Removes the specified objecdt from the layer.void
update
(LayoutUpdater updater) Updates the layout, styles etc.
-
Method Details
-
update
Updates the layout, styles etc. of the displayed objects.- Parameters:
updater
- used to update the layout and position information
-
applyUpdates
void applyUpdates()Applies the latest set of updates to the displayed objects. Depending on the semantics of the display, this may or may not be necessary. -
addObject
Adds the specified object to the layer.- Parameters:
obj
- the object to add
-
removeObject
Removes the specified objecdt from the layer.- Parameters:
obj
- the object to remove
-
getVisualItem
Gets the visual representation of this object.- Parameters:
obj
- the object whose visual representation we want to get- Returns:
- the visual representation of this object.
-