ilog.views.maps.datasource
Class IlvSplitDataSource

java.lang.Object
  extended by ilog.views.maps.datasource.IlvMapDataSource
      extended by ilog.views.maps.datasource.IlvHierarchicalDataSource
          extended by ilog.views.maps.datasource.IlvSplitDataSource
All Implemented Interfaces:
IlvPersistentObject

public class IlvSplitDataSource
extends IlvHierarchicalDataSource

This data source sorts all the graphical objects stored in a specific map layer. It creates a new tree from the map layers, according to the selection made by the criterion filter. This data source goes through all the objects in the manager layer, using the criterion filter to return a value. Each different value found triggers the creation of a single map layer in the layer tree.

Since:
JViews 8.0

Nested Class Summary
 
Nested classes/interfaces inherited from class ilog.views.maps.datasource.IlvHierarchicalDataSource
IlvHierarchicalDataSource.CriterionFilter, IlvHierarchicalDataSource.SingleAttributeFilter
 
Field Summary
 
Fields inherited from class ilog.views.maps.datasource.IlvHierarchicalDataSource
featureIterator, filename, nameMap, styleMap
 
Fields inherited from class ilog.views.maps.datasource.IlvMapDataSource
renderer, usingGeodeticComputation
 
Constructor Summary
IlvSplitDataSource(IlvInputStream stream)
          Creates an IlvSplitDataSource by reading its parameters from the stream.
IlvSplitDataSource(IlvMapLayer sourceLayer, IlvHierarchicalDataSource.CriterionFilter filter)
          Creates an IlvSplitDataSource from objects in a map layer, according to the criterion filter.
 
Method Summary
 IlvMapReusableFeatureIterator getFeatureIterator()
          Retrieves the feature iterator used by this data source.
 IlvFeatureRenderer getFeatureRenderer(IlvMapFeature feature)
          Gets the appropriate feature renderer for the specified IlvMapFeature.
 IlvThreadMonitoringData getMonitoringData()
          Returns the monitorData.
 void reset()
          Resets the data source and prepares it for reloading.
 void setMonitoringData(IlvThreadMonitoringData monitorData)
          Sets the monitorData.
 void write(IlvOutputStream stream)
          Writes an IlvSplitDataSource into an IlvOutputStream.
 
Methods inherited from class ilog.views.maps.datasource.IlvHierarchicalDataSource
addCriterionFilter, addLayer, createFeatureRenderer, createInsertionLayer, getCriterionFilters, getFeatureRenderer, getKey, getMapLayer, getStyle, isAcceptNullValues, readInfo, removeAllCriterionFilters, removeCriterionFilter, setAcceptNullValues, setupLayer, start
 
Methods inherited from class ilog.views.maps.datasource.IlvMapDataSource
addDataSourceListener, callListeners, getBackupDataSources, getCoordinateSystem, getDescription, getInsertionLayer, getManager, getName, getNode, getValidExtentions, hasInsertionLayer, initBackupDataSource, initInsertionLayer, isAttachingAttributes, isSaveBackupDataSources, isSourceDataAvailable, isUsingGeodeticComputation, mapIntersects, removeDataSourceListener, setAttachingAttributes, setCoordinateSystem, setDescription, setFeatureRenderer, setForceUsingBackupDataSource, setInsertionLayer, setManager, setName, setSaveBackupDataSources, setValidExtentions, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvSplitDataSource

public IlvSplitDataSource(IlvInputStream stream)
                   throws IlvReadFileException
Creates an IlvSplitDataSource by reading its parameters from the stream.

Parameters:
stream - The stream to read from.
Throws:
IlvReadFileException

IlvSplitDataSource

public IlvSplitDataSource(IlvMapLayer sourceLayer,
                          IlvHierarchicalDataSource.CriterionFilter filter)
                   throws MalformedURLException
Creates an IlvSplitDataSource from objects in a map layer, according to the criterion filter.

Parameters:
sourceLayer - The IlvMapLayer containing the IlvMapGraphic to split.
filter - The criterion filter used to split data with the same id apart.
Throws:
MalformedURLException
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes an IlvSplitDataSource into an IlvOutputStream.

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvHierarchicalDataSource
Parameters:
stream - The stream to write to.
Throws:
IOException

reset

public void reset()
Resets the data source and prepares it for reloading.

Overrides:
reset in class IlvHierarchicalDataSource
See Also:
IlvMapDataSource.reset()

getFeatureIterator

public IlvMapReusableFeatureIterator getFeatureIterator()
Retrieves the feature iterator used by this data source.

Overrides:
getFeatureIterator in class IlvHierarchicalDataSource
Returns:
null.
See Also:
IlvHierarchicalDataSource.getFeatureIterator()

getFeatureRenderer

public IlvFeatureRenderer getFeatureRenderer(IlvMapFeature feature)
                                      throws Exception
Gets the appropriate feature renderer for the specified IlvMapFeature.

Overrides:
getFeatureRenderer in class IlvHierarchicalDataSource
Parameters:
feature - the feature to render.
Returns:
the IlvFeatureRenderer.
Throws:
Exception - if a feature renderer does not exist for the specified IlvMapFeature.
See Also:
IlvHierarchicalDataSource.getFeatureRenderer(ilog.views.maps.IlvMapFeature)

getMonitoringData

public IlvThreadMonitoringData getMonitoringData()
Returns the monitorData.

Returns:
Returns the monitorData.

setMonitoringData

public void setMonitoringData(IlvThreadMonitoringData monitorData)
Sets the monitorData.

Parameters:
monitorData - The monitorData to set.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.