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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addObject(Object obj)
Adds the specified object to the layer.void
applyUpdates()
Applies the latest set of updates to the displayed objects.T
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 Detail
-
update
void update(LayoutUpdater updater)
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
void addObject(Object obj)
Adds the specified object to the layer.- Parameters:
obj
- the object to add
-
removeObject
void removeObject(Object obj)
Removes the specified objecdt from the layer.- Parameters:
obj
- the object to remove
-
-