NASA World Wind

gov.nasa.worldwind.util
Class WWDotNetLayerSetConfiguration

java.lang.Object
  extended by gov.nasa.worldwind.util.WWDotNetLayerSetConfiguration

public class WWDotNetLayerSetConfiguration
extends Object

A utility class for transforming a World Wind .NET LayerSet document to a standard Layer configuration document.


Constructor Summary
WWDotNetLayerSetConfiguration()
           
 
Method Summary
static DataConfiguration createDataConfig(Element domElement)
          Creates a standard layer configuration from a World Wind .NET LayerSet document.
protected static LatLon getLayerSetLatLon(Element context, String path, XPath xpath)
           
protected static Sector getLayerSetSector(Element context, String path, XPath xpath)
           
static boolean isLayerSetDocument(Element domElement)
          Returns true if a specified document should be accepted as a World Wind .NET LayerSet configuration document, and false otherwise.
protected static void transformLayerSet(Element context, Document outDoc, XPath xpath)
           
static Document transformLayerSetDocument(Element domElement)
          Transforms a World Wind .NET LayerSet document to a standard layer configuration document.
protected static void transformQuadTileSet(Element context, Element outElem, XPath xpath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WWDotNetLayerSetConfiguration

public WWDotNetLayerSetConfiguration()
Method Detail

createDataConfig

public static DataConfiguration createDataConfig(Element domElement)
Creates a standard layer configuration from a World Wind .NET LayerSet document.

Parameters:
domElement - backing document.
Returns:
Layer document, or null if the LayerSet document cannot be transformed to a standard document.
Throws:
IllegalArgumentException - if the document is null.

getLayerSetLatLon

protected static LatLon getLayerSetLatLon(Element context,
                                          String path,
                                          XPath xpath)

getLayerSetSector

protected static Sector getLayerSetSector(Element context,
                                          String path,
                                          XPath xpath)

isLayerSetDocument

public static boolean isLayerSetDocument(Element domElement)
Returns true if a specified document should be accepted as a World Wind .NET LayerSet configuration document, and false otherwise.

Parameters:
domElement - the document in question.
Returns:
true if the document is a LayerSet configuration document; false otherwise.
Throws:
IllegalArgumentException - if document is null.

transformLayerSet

protected static void transformLayerSet(Element context,
                                        Document outDoc,
                                        XPath xpath)

transformLayerSetDocument

public static Document transformLayerSetDocument(Element domElement)
Transforms a World Wind .NET LayerSet document to a standard layer configuration document.

Parameters:
domElement - LayerSet document to transform.
Returns:
standard Layer document, or null if the LayerSet document cannot be transformed to a standard document.
Throws:
IllegalArgumentException - if the document is null.

transformQuadTileSet

protected static void transformQuadTileSet(Element context,
                                           Element outElem,
                                           XPath xpath)

NASA World Wind

Hosted by docs.bugaco.com