public class WebMapContext extends Object
Modifier and Type | Field and Description |
---|---|
String |
_abstract |
String |
address |
Rectangle2D |
bBox |
String |
city |
boolean |
contactInfo |
String |
contactOrganization |
String |
contactPerson |
String |
contactPosition |
String |
country |
String |
descriptionURL |
String |
descriptionURLFormat |
String |
email |
static ArrayList<String> |
exportVersions |
String |
fax |
static String |
FILE_EXTENSION |
String |
fileVersion |
String |
id |
List<String> |
keywordList |
String |
logoURL |
String |
logoURLFormat |
Dimension |
logoURLSize |
String |
postCode |
String |
srs |
String |
stateOrProvince |
String |
telephone |
String |
title |
Dimension |
windowSize |
String |
xmlns |
String |
xmlns_xlink |
String |
xmlns_xsi |
String |
xsi_schemaLocation |
Constructor and Description |
---|
WebMapContext() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsExportableLayers(FLayer layer)
Searches in the layer tree of the TOC for an ocurrence of any
exportable layer and returns true if so, or false otherwise.
|
static ArrayList |
getExportableLayers(DefaultViewDocument v) |
void |
readFile(File file)
Initializes the WebMapContext properties from the values in the WebMapContext (.cml)
file passed in the argument.
|
String |
toXML(DefaultViewDocument v)
Exports the ProjectView passed as parameter to Web Map Context XML compliant
with the defined specifications for the version set in the fileVersion field.
|
public static final String FILE_EXTENSION
public String fileVersion
public Dimension windowSize
public String srs
public Rectangle2D bBox
public String title
public String id
public String xmlns
public String xmlns_xlink
public String xmlns_xsi
public String xsi_schemaLocation
public String _abstract
public Dimension logoURLSize
public String logoURLFormat
public String logoURL
public String descriptionURLFormat
public String descriptionURL
public boolean contactInfo
public String contactPerson
public String contactOrganization
public String contactPosition
public String address
public String city
public String stateOrProvince
public String postCode
public String country
public String telephone
public String fax
public String email
public void readFile(File file) throws UnsupportedVersionLayerException, ImportMapContextException
file
- UnsupportedVersionLayerException
ImportMapContextException
public String toXML(DefaultViewDocument v)
DefaultViewDocument
- to be exportedpublic static ArrayList getExportableLayers(DefaultViewDocument v)
public static boolean containsExportableLayers(FLayer layer)
layer
-