|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.graph.background.IlpAbstractBackground
ilog.cpl.graph.background.IlpAbstractMapDataSourceBackground
public abstract class IlpAbstractMapDataSourceBackground
This type servers as base type for background implementations that wish to use the IlvMapDataSource facilities, by implementing the common functionality needed for such backgrounds.
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)| Field Summary |
|---|
| Fields inherited from class ilog.cpl.graph.background.IlpAbstractBackground |
|---|
managerLayers |
| Fields inherited from interface ilog.cpl.graph.background.IlpBackground |
|---|
LOAD_ON_DEMAND_PROPERTY, THREADED_PROPERTY, URL_PROPERTY, VISIBLE_PROPERTY |
| Constructor Summary | |
|---|---|
IlpAbstractMapDataSourceBackground()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class ilog.cpl.graph.background.IlpAbstractBackground |
|---|
addLayer, addLayers, addPropertyChangeListener, endBatch, getManagerLayer, getManagerLayers, getManagerLayersCount, getProperties, getProperty, getUrl, isLoadOnDemand, isThreaded, isVisible, removeLayer, removeLayers, removePropertyChangeListener, setLoadOnDemand, setProperty, setThreaded, setUrl, setVisible, startBatch |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ilog.cpl.graph.background.IlpMapDataSourceBackground |
|---|
createMapDataSource |
| Methods inherited from interface ilog.cpl.graph.background.IlpBackground |
|---|
addPropertyChangeListener, getManagerLayer, getManagerLayers, getManagerLayersCount, getProperty, removePropertyChangeListener, setProperty |
| Constructor Detail |
|---|
public IlpAbstractMapDataSourceBackground()
| Method Detail |
|---|
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 IlpViewsView
IlpBackgroundHandlingException - 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 IlpViewsView
IlpBackgroundHandlingException - 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 used
protected 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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||