public class WMSTiledImageLayer extends BasicTiledImageLayer
Modifier and Type | Class and Description |
---|---|
protected static class |
WMSTiledImageLayer.ComposeImageTile |
static class |
WMSTiledImageLayer.URLBuilder |
BasicTiledImageLayer.DownloadPostProcessor, BasicTiledImageLayer.RequestTask
TiledImageLayer.CompositionRetrievalPostProcessor, TiledImageLayer.LevelComparer
fileLock, RESOURCE_ID_OGC_CAPABILITIES
atMaxResolution, currentResourceTile, currentTiles, detailHint, detailHintOrigin, drawBoundingVolumes, drawTileBoundaries, forceLevelZeroLoads, levelComparer, levels, levelZeroLoaded, requestQ, retainLevelZeroTiles, supportedImageFormats, textureFormat, tileCountName, topLevels, useMipMaps, useTransparentTextures
Constructor and Description |
---|
WMSTiledImageLayer(AVList params) |
WMSTiledImageLayer(org.w3c.dom.Document dom,
AVList params) |
WMSTiledImageLayer(org.w3c.dom.Element domElement,
AVList params) |
WMSTiledImageLayer(java.lang.String stateInXml) |
WMSTiledImageLayer(WMSCapabilities caps,
AVList params) |
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
composeImageForSector(Sector sector,
int canvasWidth,
int canvasHeight,
double aspectRatio,
int levelNumber,
java.lang.String mimeType,
boolean abortOnError,
java.awt.image.BufferedImage image,
int timeout)
Create an image for the portion of this layer lying within a specified sector.
|
protected org.w3c.dom.Document |
createConfigurationDocument(AVList params)
Appends WMS tiled image layer configuration elements to the superclass configuration document.
|
void |
getRestorableStateForAVPair(java.lang.String key,
java.lang.Object value,
RestorableSupport rs,
RestorableSupport.StateObject context) |
protected static void |
legacyWmsRestoreStateToParams(RestorableSupport rs,
RestorableSupport.StateObject context,
AVList params) |
static AVList |
wmsGetParamsFromCapsDoc(WMSCapabilities caps,
AVList params)
Extracts parameters necessary to configure the layer from a WMS capabilities document.
|
protected static AVList |
wmsGetParamsFromDocument(org.w3c.dom.Element domElement,
AVList params)
Extracts parameters necessary to configure the layer from an XML DOM element.
|
static AVList |
wmsRestorableStateToParams(java.lang.String stateInXml)
Creates an attribute-value list from an xml document containing restorable state for this layer.
|
protected static void |
wmsRestoreStateToParams(RestorableSupport rs,
RestorableSupport.StateObject context,
AVList params) |
addTileToCache, createDownloadPostProcessor, createRequestTask, doGetRestorableState, doRestoreState, doRestoreStateForObject, doWriteConfigurationParams, forceTextureLoad, getConfigurationParams, getEstimatedMissingDataSize, getEstimatedMissingDataSize, getParamsFromDocument, getRestorableState, initFromOGCCapabilitiesResource, isRetrieveResources, isTextureFileExpired, loadTexture, makeLocal, makeLocal, needsConfigurationFile, readTexture, requestTexture, restorableStateToParams, restoreState, restoreStateForParams, retrieveLocalTexture, retrieveRemoteTexture, retrieveResources, retrieveTexture, setFallbacks, startResourceRetrieval, writeConfigurationFile, writeConfigurationParams
addTile, addTileOrDescendants, addTileToCurrent, assembleTiles, atMaxLevel, checkTextureExpiration, computeLevelForResolution, computeReferencePoint, countImagesInSector, countImagesInSector, createTiledImageLayerConfigDocument, createTiledImageLayerConfigElements, createTopLevelTiles, doRender, downloadImage, draw, drawBoundingVolumes, drawTileIDs, getAvailableImageFormats, getDefaultImageFormat, getDetailFactor, getDetailHint, getImage, getLegacyTiledImageLayerConfigParams, getLevels, getMaxEffectiveAltitude, getMinEffectiveAltitude, getReferencePoint, getRequestQ, getTextureFormat, getTiledImageLayerConfigParams, getTilesInSector, getTopLevels, getValue, isAtMaxResolution, isDrawBoundingVolumes, isDrawTileBoundaries, isDrawTileIDs, isForceLevelZeroLoads, isImageFormatAvailable, isLayerInView, isMultiResolution, isRetainLevelZeroTiles, isTileVisible, isUseMipMaps, isUseTransparentTextures, loadAllTopLevelTextures, meetsRenderCriteria, needToSplit, render, requestImage, retrieveLocalImage, retrieveRemoteImage, sendRequests, setAvailableImageFormats, setBlendingFunction, setDetailHint, setDrawBoundingVolumes, setDrawTileBoundaries, setDrawTileIDs, setExpiryTime, setForceLevelZeroLoads, setName, setRetainLevelZeroTiles, setTextureFormat, setUseMipMaps, setUseTransparentTextures, setValue
createLayerConfigElements, dispose, doPick, doPreRender, getDataFileStore, getExpiryTime, getLayerConfigParams, getMaxActiveAltitude, getMinActiveAltitude, getName, getOpacity, getScale, getScreenCredit, isEnabled, isLayerActive, isLayerConfigDocument, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, setDataFileStore, setEnabled, setMaxActiveAltitude, setMinActiveAltitude, setNetworkRetrievalEnabled, setOpacity, setPickEnabled, setScreenCredit, toString
onMessage, propertyChange
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues
onMessage
public WMSTiledImageLayer(AVList params)
public WMSTiledImageLayer(org.w3c.dom.Document dom, AVList params)
public WMSTiledImageLayer(org.w3c.dom.Element domElement, AVList params)
public WMSTiledImageLayer(java.lang.String stateInXml)
public WMSTiledImageLayer(WMSCapabilities caps, AVList params)
public java.awt.image.BufferedImage composeImageForSector(Sector sector, int canvasWidth, int canvasHeight, double aspectRatio, int levelNumber, java.lang.String mimeType, boolean abortOnError, java.awt.image.BufferedImage image, int timeout) throws java.lang.Exception
TiledImageLayer
composeImageForSector
in class TiledImageLayer
sector
- the sector of interest.canvasWidth
- the width of the canvas.canvasHeight
- the height of the canvas.aspectRatio
- the aspect ratio, width/height, of the window. If the aspect ratio is greater or equal to
one, the full width of the canvas is used for the image; the height used is proportional to
the inverse of the aspect ratio. If the aspect ratio is less than one, the full height of the
canvas is used, and the width used is proportional to the aspect ratio.levelNumber
- the target level of the tiled image layer.mimeType
- the type of image to create, e.g., "png" and "jpg".abortOnError
- indicates whether to stop assembling the image if an error occurs. If false, processing
continues until all portions of the layer that intersect the specified sector have been added
to the image. Portions for which an error occurs will be blank.image
- if non-null, a BufferedImage
in which to place the image. If null, a new buffered
image is created. The image must be the width and height specified in the
canvasWidth
and canvasHeight
arguments.timeout
- The amount of time to allow for reading the image from the server.canvasWidth
and
canvasHeight
. If the specified aspect ratio is one, all pixels contain values. If the aspect ratio
is greater than one, a full-width segment along the top of the canvas is blank. If the aspect ratio is less than
one, a full-height segment along the right side of the canvase is blank. If the image
argument was
non-null, that buffered image is returned.java.lang.IllegalArgumentException
- if sector
is null.java.lang.Exception
;
protected org.w3c.dom.Document createConfigurationDocument(AVList params)
createConfigurationDocument
in class BasicTiledImageLayer
params
- configuration parameters describing this WMS tiled image layer.public void getRestorableStateForAVPair(java.lang.String key, java.lang.Object value, RestorableSupport rs, RestorableSupport.StateObject context)
getRestorableStateForAVPair
in class BasicTiledImageLayer
protected static void legacyWmsRestoreStateToParams(RestorableSupport rs, RestorableSupport.StateObject context, AVList params)
public static AVList wmsGetParamsFromCapsDoc(WMSCapabilities caps, AVList params)
caps
- the capabilities document.params
- an attribute-value list in which to place the extracted parameters. May be null, in which case a
new attribute-value list is created and returned.java.lang.IllegalArgumentException
- if the capabilities document reference is null.protected static AVList wmsGetParamsFromDocument(org.w3c.dom.Element domElement, AVList params)
domElement
- the element to search for parameters.params
- an attribute-value list in which to place the extracted parameters. May be null, in which case
a new attribue-value list is created and returned.java.lang.IllegalArgumentException
- if the DOM element is null.public static AVList wmsRestorableStateToParams(java.lang.String stateInXml)
stateInXml
- an xml document specified in a String
.java.lang.IllegalArgumentException
- if the state reference is null.protected static void wmsRestoreStateToParams(RestorableSupport rs, RestorableSupport.StateObject context, AVList params)