public abstract class IlpAbstractIVLBackground extends IlpAbstractBackground
IVL file format as a background in JViews TGO.
The IlpAbstractIVLBackground serves as a base class for IVL
based backgrounds, as it provides the common functionality behind such backgrounds.
For example the ability add or remove IlvManagerLayers to the
background programmatically is provided at this level.
For concrete implementations of this class see the below noted IlpBackground
implementations.
With regards to the ability to add and remove IlvManagerLayers
programatically the following should be noted:
IlvManagerLayers added to background programatically. So the
properties of the IlpBackground (like visibility) are inherited and
propagated to the added layersIlvManagerLayers during a background reload. This case should be
handled by adding additional IlpAbstractIVLBackground that points to the
IVL files that represent the additional IlvManagerLayers. Or by
re-adding the additional IlvManagerLayers after the background
has been reloaded.IlpIVLFrameworkBackground,
IlpIVLMapBackground| Modifier and Type | Field and Description |
|---|---|
static String |
MAP_THEMED_PROPERTY
The map themed property.
|
static int |
numberOfPaddingLayers
Determines the number of IlvManagerLayer instances that should be used to
pad the IlvManager being handled before reading and IVL file in.
|
managerLayersLOAD_ON_DEMAND_PROPERTY, THREADED_PROPERTY, URL_PROPERTY, VISIBLE_PROPERTY| Constructor and Description |
|---|
IlpAbstractIVLBackground()
Sets the default property values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addManagerLayer(IlvManagerLayer layer,
int index,
IlpViewsView view)
Adds an IlvManagerLayer to this background at the specified index.
|
void |
create(IlvManager manager,
int index,
IlpViewsView view)
Invokes super implementation and handles internal structures.
|
void |
dispose(IlvManager manager,
IlpViewsView view)
Calls the super implementation and then disposes internal structure.
|
boolean |
isMapThemed()
Returns whether or not this background is using Map Themes.
|
void |
removeManagerLayer(int index,
IlpViewsView view)
Removes the IlvManagerLayer positioned at the specified index from this
background.
|
void |
setMapThemed(boolean mapThemed)
Sets whether or not this background is using Map Themes.
|
addLayer, addLayers, addPropertyChangeListener, endBatch, getManagerLayer, getManagerLayers, getManagerLayersCount, getProperties, getProperty, getUrl, isLoadOnDemand, isThreaded, isVisible, removeLayer, removeLayers, removePropertyChangeListener, setLoadOnDemand, setProperty, setThreaded, setUrl, setVisible, startBatchpublic static int numberOfPaddingLayers
public static final String MAP_THEMED_PROPERTY
Note: This is a readonly property, it should not be modified.
Contains the Boolean that determines if this IlpAbstractIVLBackground
uses a Map Theme. When specifying an IVL background via CSS, if the value of
this property is set to true, an IlpIVLMapBackground
will be used to represent the background, otherwise an
IlpIVLFrameworkBackground is used.
public IlpAbstractIVLBackground()
public boolean isMapThemed()
Defaults to false.
public void setMapThemed(boolean mapThemed)
mapThemed - true to use and false otherwise.public void create(IlvManager manager, int index, IlpViewsView view) throws IlpBackgroundHandlingException
Subclasses overriding this method must issue a super.create call.
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
Subclasses overriding this method must issue a super.dispose call.
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 void addManagerLayer(IlvManagerLayer layer, int index, IlpViewsView view) throws IlpBackgroundHandlingException
The IlvManagerLayer can already contain graphics. If it is indeed the case, the graphics in the layer will be incorporated into the appropriate structures of this background and removed from any pre-existing structures (like any given IlvManager with which it may have been created).
layer - the layer to be added.index - must be a positive integer. If the index provided is equal or
greater than the layer count, then the provided layer is added to the next
available index in an incremental fashion. The index is zero based.view - The view in which the background shall be displayed.IlpBackgroundHandlingException - if it cannot handle the request.public void removeManagerLayer(int index,
IlpViewsView view)
throws IlpBackgroundHandlingException
index - must be a positive integer that is less than the layer
count. The index is zero based.view - The view in which the background is displayed.IlpBackgroundHandlingException - if it cannot handle the request.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.