public abstract class WebMapLayer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected GeoBounds |
bounds |
protected java.util.List<WebMapLayer> |
children |
protected java.lang.String |
name |
protected WebMapLayer |
parent |
protected QueryLayers |
queryLayer |
protected java.util.Set<java.lang.Integer> |
srids |
protected java.util.Collection<QueryLayers.Style> |
styles |
protected java.lang.String |
title |
Constructor and Description |
---|
WebMapLayer(java.lang.String name,
java.lang.String title,
QueryLayers queryLayer,
GeoBounds bounds,
java.util.Set<java.lang.Integer> srids,
java.util.List<WebMapLayer> children,
java.util.Collection<QueryLayers.Style> styles)
Create a new Layer.
|
Modifier and Type | Method and Description |
---|---|
void |
addToLayersDatabase(QueryLayers.Style style,
android.content.Context context)
Adds this map server layer to the LayersDatabase.
|
static void |
addToLayersDatabase(Service service,
android.content.Context ignored)
Adds this map server layer to the LayersDatabase.
|
GeoBounds |
getBounds()
Returns this layer's bounds.
|
java.util.List<WebMapLayer> |
getChildren()
Return the list of child Layers.
|
protected static java.io.File |
getDefaultXmlFile(java.lang.String title,
ServiceType type) |
java.lang.String |
getName()
Return the machine-usable name for this layer.
|
java.util.Set<java.lang.Integer> |
getSRIDs()
Return the list of SRIDs this layer supports.
|
java.util.Collection<QueryLayers.Style> |
getStyles()
Return the list of styles this layer supports.
|
java.lang.String |
getTitle()
Return the human-readable name of this layer.
|
boolean |
isDisplayable()
Indicates whether this layer is displayable in its own right.
|
void |
setParent(WebMapLayer parent) |
abstract java.io.File |
writeMobacXML(QueryLayers.Style style) |
protected final QueryLayers queryLayer
protected final java.lang.String title
protected final java.lang.String name
protected final GeoBounds bounds
protected final java.util.Set<java.lang.Integer> srids
protected final java.util.Collection<QueryLayers.Style> styles
protected WebMapLayer parent
protected final java.util.List<WebMapLayer> children
public WebMapLayer(java.lang.String name, java.lang.String title, QueryLayers queryLayer, GeoBounds bounds, java.util.Set<java.lang.Integer> srids, java.util.List<WebMapLayer> children, java.util.Collection<QueryLayers.Style> styles)
public void setParent(WebMapLayer parent)
public java.util.List<WebMapLayer> getChildren()
public GeoBounds getBounds()
public java.util.Collection<QueryLayers.Style> getStyles()
public java.util.Set<java.lang.Integer> getSRIDs()
public java.lang.String getTitle()
public java.lang.String getName()
public boolean isDisplayable()
public void addToLayersDatabase(QueryLayers.Style style, android.content.Context context) throws java.io.IOException
style
- the style with which this layer should be displayedjava.io.IOException
- in case of errorpublic abstract java.io.File writeMobacXML(QueryLayers.Style style) throws java.io.IOException
java.io.IOException
protected static java.io.File getDefaultXmlFile(java.lang.String title, ServiceType type)
public static void addToLayersDatabase(Service service, android.content.Context ignored) throws java.io.IOException
java.io.IOException
- in case of error