Class Layer
- java.lang.Object
-
- nl.tudelft.simulation.dsol.animation.gis.map.Layer
-
- All Implemented Interfaces:
Serializable,LayerInterface
public class Layer extends Object implements LayerInterface
This is an implementation of the LayerInterface that just stores the basic metadata for each layer. The elements to draw are defined by a set of key - value pairs in the Feature. The Map implementation is a LinkedHashMap to enforce a reproducible order. The actual information of the objects in the layer (points, shapes) is contained in the DataSource.Copyright (c) 2020-2023 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information DSOL Manual. The DSOL project is distributed under a three-clause BSD-style license, which can be found at DSOL License.
- Author:
- Alexander Verbraeck
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Layer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFeature(FeatureInterface feature)List<FeatureInterface>getFeatures()StringgetName()booleanisDisplay()booleanisTransform()voidsetDisplay(boolean status)voidsetFeatures(List<FeatureInterface> features)voidsetName(String name)voidsetTransform(boolean transform)
-
-
-
Method Detail
-
getFeatures
public List<FeatureInterface> getFeatures()
- Specified by:
getFeaturesin interfaceLayerInterface
-
setFeatures
public void setFeatures(List<FeatureInterface> features)
- Specified by:
setFeaturesin interfaceLayerInterface
-
addFeature
public void addFeature(FeatureInterface feature)
- Specified by:
addFeaturein interfaceLayerInterface
-
getName
public String getName()
- Specified by:
getNamein interfaceLayerInterface
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceLayerInterface
-
isDisplay
public boolean isDisplay()
- Specified by:
isDisplayin interfaceLayerInterface
-
setDisplay
public void setDisplay(boolean status)
- Specified by:
setDisplayin interfaceLayerInterface
-
isTransform
public boolean isTransform()
- Specified by:
isTransformin interfaceLayerInterface
-
setTransform
public void setTransform(boolean transform)
- Specified by:
setTransformin interfaceLayerInterface
-
-