|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.datasource.IlvMapDataSource
ilog.views.maps.datasource.IlvGraphicLayerDataSource
ilog.views.maps.datasource.IlvPolylineMergerDataSource
public class IlvPolylineMergerDataSource
This class features a utility that merges several polylines into a single
polyline.
This can be useful when the API must label the polylines.
For example, roads comprised of many smaller polylines may be labeled several
times along their path, but they may also not be labeled if the Label Manager
cannot fit labels on these segments.
Using this utility class can produce cleaner and more efficient labeling of polylines.
| Nested Class Summary | |
|---|---|
static interface |
IlvPolylineMergerDataSource.IlvGraphicIdentifier
This interface compares collections of features that are to be merged as a single polyline. |
| Field Summary |
|---|
| Fields inherited from class ilog.views.maps.datasource.IlvMapDataSource |
|---|
renderer, usingGeodeticComputation |
| Constructor Summary | |
|---|---|
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 a IlvPolylineMergerDataSource on a IlvMapDataSource passed as parameter, with specified IlvGraphicIdentifier |
|
| Method Summary | |
|---|---|
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)
Set 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 |
| Methods inherited from class ilog.views.maps.datasource.IlvGraphicLayerDataSource |
|---|
add, add, clear, dispose, get, getDefaultFeatureRenderer, getFeatureIterator, getLowerRightCorner, getMonitoringData, getNextFeature, getUpperLeftCorner, isPersistent, makeGraphic, remove, restart, setCoordinateSystem, setManager, setMonitoringData, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ilog.views.maps.IlvMapFeatureIterator |
|---|
getCoordinateSystem |
| Constructor Detail |
|---|
public IlvPolylineMergerDataSource(IlvMapDataSource dataSource)
dataSource - the IlvMapDataSource producing polylines to merge
public IlvPolylineMergerDataSource(IlvInputStream stream)
throws IlvReadFileException
stream - stream to read from.
IlvReadFileException
public IlvPolylineMergerDataSource(IlvMapDataSource dataSource,
IlvPolylineMergerDataSource.IlvGraphicIdentifier identifier)
dataSource - the IlvMapDataSource containing polylines to mergeidentifier - the IlvGraphicIdentifier used to identify polylines to merge
together (same id)| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
IlvPolylineMergerDataSource into an IlvOutputStream
write in interface IlvPersistentObjectwrite in interface IlvFeatureRendererwrite in class IlvGraphicLayerDataSourcestream - The stream to write to.
IOExceptionIlvFeatureRenderer.write(ilog.views.io.IlvOutputStream)public void setComponentIdentifier(IlvPolylineMergerDataSource.IlvGraphicIdentifier identifier)
identifier - IlvGraphicIdentifier to retrieve the identifier to use.public IlvPolylineMergerDataSource.IlvGraphicIdentifier getComponentIdentifier()
public void setMergeDistance(double distance)
distance - the square of the max distance between two polygons to merge.
public void start()
throws Exception
start in class IlvGraphicLayerDataSourceException - when the initial sourceIlvMapDataSource.start()public boolean isGeoreferenced()
isGeoreferenced in interface IlvMapFeatureIteratorisGeoreferenced in class IlvGraphicLayerDataSourceIlvMapFeatureIterator.isGeoreferenced()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||