Interface GeoDataProducer
-
- All Superinterfaces:
DataProducer
- All Known Implementing Classes:
AbstractDataSetProducer
public interface GeoDataProducer extends DataProducer
A generic spatial data producer that gets data from MDS on demand. You can think of a GeoDataProducer as a data cache for a particular theme or table. It is typically associated with a Layer object. When the viewport changes, the Layer object may ask its GeoDataProducer to load necessary data that fills the new viewport. A GeoDataProducer should always load its data in a separate thread, and update the layer when data loading is done. The producer will produce events on these occasions: - successful completion of data loading for the current request - exception during data loading
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidabortLoad()voidclear()Clears all existing data.GeoObject[]getData()Gets currently available (already loaded) data.java.awt.geom.Rectangle2DgetDataMBR()returns the MBR of all the data currently loaded.intgetTargetSRID()Gets the data SRID.voidloadData(java.awt.geom.Area queryArea, int qwSrid)Loads data for the given query window.voidloadData(java.awt.geom.Rectangle2D queryWindow, int qwSrid)voidsetTargetSRID(int srid)Sets the data SRID.-
Methods inherited from interface oracle.spatial.network.nfe.vis.maps.core.DataProducer
getLayer, setLayer
-
-
-
-
Method Detail
-
getData
GeoObject[] getData()
Gets currently available (already loaded) data.- Returns:
-
clear
void clear()
Clears all existing data.
-
setTargetSRID
void setTargetSRID(int srid)
Sets the data SRID. If the source data is not in this SRID, it will be transformed into this SRID.- Parameters:
srid-
-
getTargetSRID
int getTargetSRID()
Gets the data SRID.
-
getDataMBR
java.awt.geom.Rectangle2D getDataMBR()
returns the MBR of all the data currently loaded.- Returns:
-
loadData
void loadData(java.awt.geom.Area queryArea, int qwSrid)Loads data for the given query window. If the query window is null or has an infinite size, then all available data will be loaded from the source.- Parameters:
queryArea-qwSrid- the SRID of the query area
-
loadData
void loadData(java.awt.geom.Rectangle2D queryWindow, int qwSrid)
-
abortLoad
void abortLoad()
-
-