Package com.massifmaps.datasources
Class VectorDataSource
java.lang.Object
com.massifmaps.datasources.VectorDataSource
- Direct Known Subclasses:
LocalVectorDataSource
Abstract base class for envelope based vector data sources. It provides default implementation
for listener registration and other common data source methods.
Subclasses need to define their own implementations of loadElements method.
The draw order of vector elements within the data source is undefined.
for listener registration and other common data source methods.
Subclasses need to define their own implementations of loadElements method.
The draw order of vector elements within the data source is undefined.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVectorDataSource(Projection projection) Constructs an abstract VectorDataSource object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the extent of the data of this data source.
The bounds are in coordinate system of the projection of the data source.Returns the projection used by this data source.loadElements(CullState cullState) Loads all the elements within the defined envelope.voidNotifies listeners that all vector elements have changed.
-
Constructor Details
-
VectorDataSource
Constructs an abstract VectorDataSource object.- Parameters:
projection- The projection used by this data source.
-
-
Method Details
-
getDataExtent
Returns the extent of the data of this data source.
The bounds are in coordinate system of the projection of the data source.- Returns:
- The extent of the data source.
-
getProjection
Returns the projection used by this data source.- Returns:
- The projection used by this data source.
-
loadElements
Loads all the elements within the defined envelope.- Parameters:
cullState- State for describing view parameters and conservative view envelope.- Returns:
- The vector of loaded vector elements. If no elements are available, null may be returned.
-
notifyElementsChanged
public void notifyElementsChanged()Notifies listeners that all vector elements have changed. This method refreshes all the existing
vector elements in the data source.
-