public class

VectorDataSource

extends Object
java.lang.Object
   ↳ com.carto.datasources.VectorDataSource
Known Direct Subclasses

Class Overview

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.

Summary

Public Methods
synchronized void delete()
MapBounds getDataExtent()
Returns the extent of the data of this data source.
Projection getProjection()
Returns the projection used by this data source.
VectorData loadElements(CullState cullState)
Loads all the elements within the defined envelope.
void notifyElementsChanged()
Notifies listeners that all vector elements have changed.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public synchronized void delete ()

public MapBounds 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.

public Projection getProjection ()

Returns the projection used by this data source.

Returns
  • The projection used by this data source.

public VectorData loadElements (CullState cullState)

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.

public void notifyElementsChanged ()

Notifies listeners that all vector elements have changed. This method refreshes all the existing
vector elements in the data source.