public class LayerCache extends Layer
多版本缓存图层可以将同一区域的多个缓存添加到一个图层(LayerCache)上,这些缓存一般是不同时间获取的不同内容的缓存(下文将这些缓存称为不同版本的缓存),并可以控制当前显示哪一个缓存,进而用于展现动态变化的信息。
如下图所示,基于地图底图,叠加一个多版本缓存图层,图层中添加了该区域不同时间道路交通变化情况的背景透明缓存,通过时间控制当前只显示一个缓存,从而展现一个交通变化的动态效果。
限定符和类型 | 方法和说明 |
---|---|
String |
getConnectionInfo()
返回多版本缓存图层所连接的缓存的配置文件全路径,如果为多个缓存时,采用“;”分割。
|
String |
getCurrentVersion()
返回多版本缓存图层中当前展现的缓存的版本名称。
|
List<String> |
getDescriptions()
返回多版本缓存图层中所连接的所有缓存的描述信息。
|
int |
getEffectsTime() |
List<String> |
getVersions()
返回多版本缓存图层中所连接的所有缓存的版本名称,也就是所连接的缓存的名称。
|
boolean |
isEffectsEnable() |
void |
setConnectionInfo(String info)
设置多版本缓存图层所连接的缓存的配置文件全路径,当添加多个缓存时,采用“;”分割。
|
void |
setCurrentVersion(String version)
设置多版本缓存图层中当前展现的缓存的版本名称。
|
void |
setEffectsEnable(boolean effectsEnable) |
void |
setEffectsTime(int time) |
addCaptionChangedListener, addEditableChangedListener, addElementDrawingListener, addGridFunction, addSelectableChangedListener, addSnapableChangedListener, addVisibleChangedListener, checkLayerSubType, clearThemeElementPositions, findLayer, fromXML, getAdditionalSetting, getBlendMode, getBounds, getCaption, getClipRegion, getDataset, getDeduplicateThreshold, getDeduplicateTolerance, getDescription, getDisplayControledLayer, getDisplayFilter, getDisplayFilterStr, getExtensionPlugin, getExtensionUserInfo, getExternalInfo, getFieldValuesDisplayFilter, getFillMarkerOrder, getGridFunctionArgs, getGridFunctionType, getGridFunctonCount, getLayerWeight, getMap, getMaxVisibleScale, getMinVisibleGeometrySize, getMinVisibleScale, getName, getOpaqueRate, getOverlapGeometryPixel, getOverlapGeometryThreshold, getParentGroup, getParentSnapshot, getRepresentationField, getSelection, getSource, getSubLayerType, getSubType, getSymbolScale, getTheme, getThemeElementPosition, getTimeEndField, getTimeFilterEnding, getTimeFilterStarting, getTimeStartField, getTimeStepInterval, getValueExpressions, hitTest, hitTest, hitTest, hitTestGeoCompound, isAntialias, isClipRegionEnabled, isCompleteLineSymbolDisplayed, isCrossroadOptimized, isDeduplicateEnabled, isDiposed, isDisposed, isEditable, isFullLabelEnabled, isInteroperable, isLayerCacheEnabled, isModified, isOverlapDisplayed, isOverlapGeometryEnabled, isRepresentationEnabled, isSelectable, isSnapable, isSuperAndSubScript, isSwipeEnabled, isSymbolScalable, IsTimeFilterEnable, isVisible, isVisibleScale, removeCaptionChangedListener, removeEditableChangedListener, removeElementDrawingListener, removeGridFunction, removeSelectableChangedListener, removeSnapableChangedListener, removeThemeElementPosition, removeVisibleChangedListener, setAdditionalSetting, setAntialias, setBlendMode, setCaption, setClipRegion, setClipRegionEnabled, setCompleteLineSymbolDisplayed, setCrossroadOptimized, setDataset, setDeduplicateEnabled, setDeduplicateThreshold, setDeduplicateTolerance, setDescription, setDisplayControledLayer, setDisplayFilter, setDisplayFilterStr, setEditable, setExtensionUserInfo, setExternalInfo, setFillMarkerOrder, setFullLabelEnabled, setInteroperable, SetLayerCacheEnabled, SetLayerCacheRefresh, setLayerWeight, setMaxVisibleScale, setMinVisibleGeometrySize, setMinVisibleScale, setModified, setOpaqueRate, setOverlapDisplayed, setOverlapGeometryEnabled, setOverlapGeometryPixel, setOverlapGeometryThreshold, setRepresentationEnabled, setRepresentationField, setSelectable, setSelection, setSnapable, setSource, setSource, setSuperAndSubScript, setSwipeEnabled, setSymbolScalable, setSymbolScale, setThemeElementPosition, setTimeEndField, setTimeFilterEnable, setTimeFilterEnding, setTimeFilterStarting, setTimeStartField, setTimeStepInterval, setValueExpressions, setVisible, themeSymbolsToGeometries, themeSymbolsToGeometrys, themeToDatasetVector, toXML
public String getConnectionInfo()
public void setConnectionInfo(String info)
info
- 多版本缓存图层所连接的缓存的配置文件全路径,当添加多个缓存时,采用“;”分割。public List<String> getVersions()
public String getCurrentVersion()
public void setCurrentVersion(String version)
version
- 多版本缓存图层中当前展现的缓存的版本名称。public void setEffectsEnable(boolean effectsEnable)
public boolean isEffectsEnable()
public void setEffectsTime(int time)
public int getEffectsTime()
Copyright © 2021–2024 SuperMap. All rights reserved.