public class IlvPolylineMergerDataSource extends IlvGraphicLayerDataSource
Modifier and Type | Class and Description |
---|---|
static interface |
IlvPolylineMergerDataSource.IlvGraphicIdentifier
This interface compares collections of features that are to be
merged as a single polyline.
|
renderer, usingGeodeticComputation
Constructor and Description |
---|
IlvPolylineMergerDataSource(IlvInputStream stream)
Creates a data source by reading its parameters on the stream.
|
IlvPolylineMergerDataSource(IlvMapDataSource dataSource)
Creates a IlvPolylineMergerDataSource on a IlvMapDataSource passed as
parameter.
|
IlvPolylineMergerDataSource(IlvMapDataSource dataSource,
IlvPolylineMergerDataSource.IlvGraphicIdentifier identifier)
Creates an
IlvPolylineMergerDataSource on an IlvMapDataSource passed as
parameter, with the specified IlvGraphicIdentifier |
Modifier and Type | Method and Description |
---|---|
IlvPolylineMergerDataSource.IlvGraphicIdentifier |
getComponentIdentifier()
Returns the
IlvGraphicIdentifier used by this polyline merger to identify
polylines that should be merged together. |
boolean |
isGeoreferenced()
Returns false.
|
void |
setComponentIdentifier(IlvPolylineMergerDataSource.IlvGraphicIdentifier identifier)
Sets the
IlvGraphicIdentifier used by this polyline merger to identify polylines that should be merged together |
void |
setMergeDistance(double distance)
Sets the criterion distance used when merging polylines.
|
void |
start()
Merges together the specified collection of polylines.
|
void |
write(IlvOutputStream stream)
Writes an
IlvPolylineMergerDataSource into an IlvOutputStream |
add, add, clear, dispose, get, getDefaultFeatureRenderer, getFeatureIterator, getLowerRightCorner, getMonitoringData, getNextFeature, getUpperLeftCorner, isPersistent, makeGraphic, remove, restart, setCoordinateSystem, setManager, setMonitoringData, size
addDataSourceListener, callListeners, createInsertionLayer, getBackupDataSources, getCoordinateSystem, getDescription, getFeatureRenderer, getInsertionLayer, getManager, getMapLayer, getName, getNode, getValidExtentions, hasInsertionLayer, initBackupDataSource, initInsertionLayer, isAttachingAttributes, isGrapherMode, isSaveBackupDataSources, isSourceDataAvailable, isUsingBackupDataSource, isUsingGeodeticComputation, mapIntersects, removeDataSourceListener, reset, setAttachingAttributes, setDescription, setFeatureRenderer, setForceUsingBackupDataSource, setGrapherMode, setInsertionLayer, setName, setSaveBackupDataSources, setValidExtentions, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCoordinateSystem
public IlvPolylineMergerDataSource(IlvMapDataSource dataSource)
dataSource
- The IlvMapDataSource producing polylines to mergepublic IlvPolylineMergerDataSource(IlvInputStream stream) throws IlvReadFileException
stream
- The stream to read from.IlvReadFileException
public IlvPolylineMergerDataSource(IlvMapDataSource dataSource, IlvPolylineMergerDataSource.IlvGraphicIdentifier identifier)
IlvPolylineMergerDataSource
on an IlvMapDataSource
passed as
parameter, with the specified IlvGraphicIdentifier
dataSource
- the IlvMapDataSource
containing the polylines to merge.identifier
- the IlvGraphicIdentifier
used to identify the polylines to merge
together (same id)public void write(IlvOutputStream stream) throws IOException
IlvPolylineMergerDataSource
into an IlvOutputStream
write
in interface IlvPersistentObject
write
in interface IlvFeatureRenderer
write
in class IlvGraphicLayerDataSource
stream
- The stream to write to.IOException
IlvFeatureRenderer.write(ilog.views.io.IlvOutputStream)
public void setComponentIdentifier(IlvPolylineMergerDataSource.IlvGraphicIdentifier identifier)
IlvGraphicIdentifier
used by this polyline merger to identify polylines that should be merged togetheridentifier
- IlvGraphicIdentifier
to retrieve the identifier to use.public IlvPolylineMergerDataSource.IlvGraphicIdentifier getComponentIdentifier()
IlvGraphicIdentifier
used by this polyline merger to identify
polylines that should be merged together.IlvGraphicIdentifier
used by this polyline merger.public void setMergeDistance(double distance)
distance
- The square of the maximum distance between two polygons to merge.public void start() throws Exception
start
in class IlvGraphicLayerDataSource
Exception
- when the initial sourceIlvMapDataSource.start()
public boolean isGeoreferenced()
isGeoreferenced
in interface IlvMapFeatureIterator
isGeoreferenced
in class IlvGraphicLayerDataSource
IlvMapFeatureIterator.isGeoreferenced()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.