public abstract class IlpAbstractMapDataSourceBackground extends IlpAbstractBackground implements IlpMapDataSourceBackground
Subclasses should overwrite the IlpMapDataSourceBackground.createMapDataSource
to return the proper instance that can handle the specific background format.
IlpMapDataSourceBackground.createMapDataSource(ilog.cpl.graphic.views.IlpViewsView)managerLayersLOAD_ON_DEMAND_PROPERTY, THREADED_PROPERTY, URL_PROPERTY, VISIBLE_PROPERTY| Modifier | Constructor and Description |
|---|---|
protected |
IlpAbstractMapDataSourceBackground()
Instantiates an abstract background.
|
| Modifier and Type | Method and Description |
|---|---|
void |
create(IlvManager manager,
int index,
IlpViewsView view)
This method:
Obtains the
IlvMapDataSource
Fills it with the background
Updates the IlvManagerLayer references
It relies on the IlpMapDataSourceBackground.createMapDataSource. |
protected IlvMapStyle |
createMapStyle()
Should create the
ilog.views.maps.graphic.style.IlvMapStyle to
be used by this background's
ilog.views.maps.datasource.IlvMapDataSource. |
protected IlvFeatureRenderer |
createRenderer(IlpViewsView view,
IlvMapFeatureIterator featureIterator)
Can be overwritten by background implementations that want to provide
a custom
IlvFeatureRenderer for a background. |
protected void |
customizeMapStyle(IlvMapStyle mapStyle)
Should customize the
ilog.views.maps.graphic.style.IlvMapStyle to
be used by this background's ilog.views.maps.datasource.IlvMapDataSource. |
void |
dispose(IlvManager manager,
IlpViewsView view)
This method:
Clears the area of the IlvManagerLayers used
Clears the IlvMapDataSource references from the underlying
IlvManager. |
IlvMapDataSource |
getMapDataSource()
Implementation of the IlpMapDataSourceBackground.
|
IlvMapStyle |
getMapStyle()
Returns the
IlvMapStyle that is associated with this background's
IlvMapDataSource. |
addLayer, addLayers, addPropertyChangeListener, endBatch, getManagerLayer, getManagerLayers, getManagerLayersCount, getProperties, getProperty, getUrl, isLoadOnDemand, isThreaded, isVisible, removeLayer, removeLayers, removePropertyChangeListener, setLoadOnDemand, setProperty, setThreaded, setUrl, setVisible, startBatchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateMapDataSourceaddPropertyChangeListener, getManagerLayer, getManagerLayers, getManagerLayersCount, getProperty, removePropertyChangeListener, setPropertyprotected IlpAbstractMapDataSourceBackground()
public void create(IlvManager manager, int index, IlpViewsView view) throws IlpBackgroundHandlingException
IlvMapDataSource
It relies on the IlpMapDataSourceBackground.createMapDataSource.
create in interface IlpBackgroundcreate in class IlpAbstractBackgroundmanager - the manager where the graphics should be added toindex - the IlvManagerLayer index in the manager from which this
background should start inserting the graphics.view - the associated IlpViewsViewIlpBackgroundHandlingException - in case there is a problem handling this operation.IlpAbstractBackground.create(ilog.views.IlvManager, int, ilog.cpl.graphic.views.IlpViewsView)public void dispose(IlvManager manager, IlpViewsView view) throws IlpBackgroundHandlingException
IlvManager.
dispose in interface IlpBackgrounddispose in class IlpAbstractBackgroundmanager - the manager where the graphics are being displayed.view - the associated IlpViewsViewIlpBackgroundHandlingException - in case there is a problem handling this operation.IlpAbstractBackground.dispose(ilog.views.IlvManager, ilog.cpl.graphic.views.IlpViewsView)public IlvMapDataSource getMapDataSource()
getMapDataSource in interface IlpMapDataSourceBackgroundIlvMapDataSource being used by this backgroundIlpMapDataSourceBackground.getMapDataSource()public IlvMapStyle getMapStyle()
IlvMapStyle that is associated with this background's
IlvMapDataSource.IlvMapStyle that is associated with this background's
IlvMapDataSource. Or null if the underlying IlvMapDataSource
has not been initialized.protected IlvFeatureRenderer createRenderer(IlpViewsView view, IlvMapFeatureIterator featureIterator)
IlvFeatureRenderer for a background.
By default it uses the IlvFeatureRenderer from the
IlvMapFeatureIterator.
view - the associated IlpViewsViewfeatureIterator - the feature iterator being usedprotected IlvMapStyle createMapStyle() throws IlpBackgroundHandlingException
ilog.views.maps.graphic.style.IlvMapStyle to
be used by this background's
ilog.views.maps.datasource.IlvMapDataSource.
Subclasses overriding this method can assume that the
getMapDataSource() will return a non null object
as the ilog.views.maps.datasource.IlvMapDataSource associated
with this background will already be available by the time this method is
invoked.
By default it re-uses the IlvMapStyle that is associated
with this background's IlvMapDataSource if any.
ilog.views.maps.graphic.style.IlvMapStyle to
be used by this background's
ilog.views.maps.datasource.IlvMapDataSource.IlpBackgroundHandlingException - if a problem occurs.protected void customizeMapStyle(IlvMapStyle mapStyle) throws IlpBackgroundHandlingException
ilog.views.maps.graphic.style.IlvMapStyle to
be used by this background's ilog.views.maps.datasource.IlvMapDataSource.
Subclasses overriding this method can assume that the
getMapDataSource() will return a non null object
as the ilog.views.maps.datasource.IlvMapDataSource associated
with this background will already be available by the time this method is
invoked.
Applies the default TGO map style values.
Note: if a null map style is returned by the
createMapStyle(), this method will not be called.
mapStyle - the ilog.views.maps.graphic.style.IlvMapStyle to
be used by this background's
ilog.views.maps.datasource.IlvMapDataSource.IlpBackgroundHandlingException - if a problem occurs.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.