|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.worldwind.BasicFactory
gov.nasa.worldwind.layers.BasicLayerFactory
public class BasicLayerFactory
A factory that creates Layer
instances.
Constructor Summary | |
---|---|
BasicLayerFactory()
Creates an instance of BasicLayerFactory; otherwise does nothing. |
Method Summary | |
---|---|
Object |
createFromConfigFile(String fileName)
Creates a layer from a configuration file. |
Object |
createFromDataConfig(DataConfiguration dataConfig,
AVList params)
Creates a layer from a data configuration. |
protected Layer |
createFromLayerDocument(Element domElement,
AVList params)
|
protected Layer |
createTiledImageLayer(Element domElement,
AVList params)
|
protected Layer |
doCreateFromCapabilities(Capabilities caps,
AVList params)
Implemented by subclasses to perform the actual object creation. |
protected Layer |
doCreateFromDataConfig(DataConfiguration dataConfig,
AVList params)
|
protected Layer |
doCreateFromDocument(Element domElement,
AVList params)
|
Methods inherited from class gov.nasa.worldwind.BasicFactory |
---|
createFromCapabilities, createFromClassName, createFromKeys, doCreateFromKey |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicLayerFactory()
Method Detail |
---|
public Object createFromConfigFile(String fileName)
layerType
attribute of the Layer
element of the XML configuration file to the
appropriate layer type. Layer types recognized are: serviceName
attribute of the Layer/Service
element of the XML configuration file to the appropriate base tiled image layer type. Service types recognized
are:
createFromConfigFile
in interface Factory
createFromConfigFile
in class BasicFactory
fileName
- the path to the configuration file. The file must be either an absolute path or a relative path
available on the classpath.
IllegalArgumentException
- if the configuration file name is null.
WWUnrecognizedException
- if the service type is unrecognized.
WWRuntimeException
- if object creation fails. The exception indicating the source of the failure is
included as the Throwable.initCause(Throwable)
.public Object createFromDataConfig(DataConfiguration dataConfig, AVList params)
Layer/layerType
configuration parameter to the appropriate layer type. Layer types
recognized are: Layer/Service/serviceName
configuration property to the
appropriate base tiled image layer type. Service types recognized are:
createFromDataConfig
in interface Factory
createFromDataConfig
in class BasicFactory
dataConfig
- the configuration information describing the component.params
- key-value parameters which override or supplement the information provided in the specified
configuration. A null reference is permitted.
IllegalArgumentException
- if the data configuration is null.
WWUnrecognizedException
- if the service type is unrecognized.
WWRuntimeException
- if object creation fails. The exception indicating the source of the failure is
included as the Throwable.initCause(Throwable)
.protected Layer createFromLayerDocument(Element domElement, AVList params)
protected Layer createTiledImageLayer(Element domElement, AVList params)
protected Layer doCreateFromCapabilities(Capabilities caps, AVList params)
BasicFactory
doCreateFromCapabilities
in class BasicFactory
caps
- the capabilities document.params
- a list of configuration properties. These properties override any specified in the capabilities
document. The list should contain the AVKey.LAYER_NAMES
property for services that define
layers, indicating which named layers described in the capabilities document to create. If this
argumet is null or contains no layers, the first named layer is used.
protected Layer doCreateFromDataConfig(DataConfiguration dataConfig, AVList params) throws Exception
Exception
protected Layer doCreateFromDocument(Element domElement, AVList params) throws Exception
Exception
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |