Package viewer.base
Class Layer
java.lang.Object
viewer.base.Layer
- Direct Known Subclasses:
DatabaseLayer
,ListLayer
,TreeLayer
public abstract class Layer
extends java.lang.Object
A layer that can be added to a map.
- Author:
- haunert
-
Field Summary
Fields Modifier and Type Field Description protected Envelope
extent
the total extent of this layerprotected SymbolFactory
mySymbolFactory
the factory used to transform features to drawable map objects -
Constructor Summary
Constructors Constructor Description Layer()
Layer(SymbolFactory symbolFactory)
-
Method Summary
Modifier and Type Method Description Envelope
getExtent()
Returns the extent of this layer as an envelopeabstract java.util.List<Symbol>
query(Envelope searchEnv)
Queries all symbols whose bounding boxes intersect the search envelopevoid
setExtent(Envelope extent)
Sets the extent of this layer as an envelope.ListLayer
toCachedLayer()
creates a new layer in which all symbols are stored in a list, based on this layer
-
Field Details
-
extent
the total extent of this layer -
mySymbolFactory
the factory used to transform features to drawable map objects
-
-
Constructor Details
-
Method Details
-
getExtent
Returns the extent of this layer as an envelope- Returns:
- extent to return
-
setExtent
Sets the extent of this layer as an envelope. Use with care!- Parameters:
extent
- extent to set
-
query
Queries all symbols whose bounding boxes intersect the search envelope- Parameters:
searchEnv
- the search envelope- Returns:
- found objects
-
toCachedLayer
creates a new layer in which all symbols are stored in a list, based on this layer- Returns:
- created layer
-