Package viewer.base
Class ListLayer
java.lang.Object
viewer.base.Layer
viewer.base.ListLayer
public class ListLayer extends Layer
This class represents a layer that can be displayed in a Map.
- Author:
- Jan-Henrik Haunert
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ListLayer()
Constructs a new empty LayerListLayer(java.util.List<Feature> features)
Constructs a new Layer with specified featuresListLayer(SymbolFactory factory)
Constructs a new empty Layer -
Method Summary
Modifier and Type Method Description void
add(Feature f)
Adds a GeometryFeature to this Layer.void
clearLayer()
Removes all symbols from the layer and resets the extend.java.util.List<Symbol>
getSymbols()
boolean
isEmpty()
Is the ListLayeer empty?java.util.List<Symbol>
query(Envelope searchEnv)
Returns the symbols of this layer that intersect a specified envelope.boolean
remove(Symbol s)
Removes the specified Symbol from this Layer.void
setSymbolFactory(SymbolFactory factory)
sets symbol factoryTreeLayer
toTreeLayer()
Converts the current ListLayer to a TreeLayer
-
Constructor Details
-
Method Details
-
add
Adds a GeometryFeature to this Layer.- Parameters:
f
- the feature to be added
-
remove
Removes the specified Symbol from this Layer.- Parameters:
s
- the symbol to be added- Returns:
- if the symbol got removed successfully
-
clearLayer
public void clearLayer()Removes all symbols from the layer and resets the extend. -
getSymbols
-
query
Returns the symbols of this layer that intersect a specified envelope. -
toTreeLayer
Converts the current ListLayer to a TreeLayer- Returns:
- converted TreeLayer
-
isEmpty
public boolean isEmpty()Is the ListLayeer empty?- Returns:
- boolean value for the empty test
-
setSymbolFactory
sets symbol factory- Parameters:
factory
- symbol factory to be set
-