public class WmsSelection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_BBOX
xml attribute name
|
static java.lang.String |
ATTR_CRS
crs attribute
|
static java.lang.String |
ATTR_FORMAT
xml attribute name
|
static java.lang.String |
ATTR_LAYER
xml attribute name
|
static java.lang.String |
ATTR_LEGENDURL
xml tag name
|
static java.lang.String |
ATTR_OPAQUE
xml attribute name
|
static java.lang.String |
ATTR_SERVER
xml tag name
|
static java.lang.String |
ATTR_SRS
xml attribute name
|
static java.lang.String |
ATTR_TITLE
xml attribute name
|
static java.lang.String |
ATTR_VERSION
xml attribute name
|
static java.lang.String |
TAG_BACKGROUNDWMS
xml tag name
|
static java.lang.String |
TAG_IMAGE
xml tag name
|
static java.lang.String |
TAG_WMS
xml tag name
|
Constructor and Description |
---|
WmsSelection()
Default constructor.
|
WmsSelection(java.lang.String layer,
java.lang.String title,
java.lang.String imageFile)
Create a WmsSelection from the specification
|
WmsSelection(java.lang.String server,
java.lang.String layer,
java.lang.String title,
java.lang.String srs,
java.lang.String format,
java.lang.String version,
GeoLocationInfo bounds)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
appendLayer(java.lang.String layerName,
GeoLocationInfo thatBounds)
Append the given layer to our layer name.
|
java.lang.String |
assembleRequest(GeoLocationInfo boundsToUse,
int imageWidth,
int imageHeight)
Create the wms request
|
boolean |
equals(java.lang.Object o)
Overwrite
|
boolean |
getAllowSubsets()
Get the AllowSubsets property.
|
GeoLocationInfo |
getBounds()
Get the Bounds property.
|
java.lang.String |
getDescription()
Get the Description property.
|
int |
getFixedHeight()
Get the FixedHeight property.
|
int |
getFixedWidth()
Get the FixedWidth property.
|
java.lang.String |
getFormat()
Get the Format property.
|
java.lang.String |
getImageFile()
Get the ImageFile property.
|
java.lang.String |
getLayer()
Get the Layer property.
|
java.lang.String |
getLegendIcon()
Get the LegendIcon property.
|
int |
getOpaque()
Get the Opaque property.
|
java.lang.String |
getServer()
Get the Server property.
|
java.lang.String |
getSRS()
Get the srs property.
|
java.util.List |
getTimeList()
Get the TimeList property.
|
java.lang.String |
getTitle()
Get the Title property.
|
java.lang.String |
getVersion()
Get the Version property.
|
int |
hashCode()
Overwrite
|
boolean |
isFixedImage()
Is this a fixed image
|
static java.util.List |
parseWmsResources(XmlResourceCollection xrc)
Process the xms xml resources
|
void |
setAllowSubsets(boolean value)
Set the AllowSubsets property.
|
void |
setBounds(GeoLocationInfo value)
Set the Bounds property.
|
void |
setDescription(java.lang.String value)
Set the Description property.
|
void |
setFixedHeight(int value)
Set the FixedHeight property.
|
void |
setFixedWidth(int value)
Set the FixedWidth property.
|
void |
setFormat(java.lang.String value)
Set the Format property.
|
void |
setImageFile(java.lang.String value)
Set the ImageFile property.
|
void |
setLayer(java.lang.String value)
Set the Layer property.
|
void |
setLegendIcon(java.lang.String value)
Set the LegendIcon property.
|
void |
setOpaque(int value)
Set the Opaque property.
|
void |
setServer(java.lang.String value)
Set the Server property.
|
void |
setSRS(java.lang.String value)
Set the srs property.
|
void |
setTimeList(java.util.List value)
Set the TimeList property.
|
void |
setTitle(java.lang.String value)
Set the Title property.
|
void |
setVersion(java.lang.String value)
Set the Version property.
|
java.lang.String |
toString()
to string
|
public static final java.lang.String TAG_BACKGROUNDWMS
public static final java.lang.String TAG_WMS
public static final java.lang.String TAG_IMAGE
public static final java.lang.String ATTR_SERVER
public static final java.lang.String ATTR_LEGENDURL
public static final java.lang.String ATTR_LAYER
public static final java.lang.String ATTR_TITLE
public static final java.lang.String ATTR_SRS
public static final java.lang.String ATTR_CRS
public static final java.lang.String ATTR_FORMAT
public static final java.lang.String ATTR_VERSION
public static final java.lang.String ATTR_BBOX
public static final java.lang.String ATTR_OPAQUE
public WmsSelection()
public WmsSelection(java.lang.String layer, java.lang.String title, java.lang.String imageFile)
layer
- the layertitle
- the titleimageFile
- the image filepublic WmsSelection(java.lang.String server, java.lang.String layer, java.lang.String title, java.lang.String srs, java.lang.String format, java.lang.String version, GeoLocationInfo bounds)
server
- The serverlayer
- The layertitle
- The titlesrs
- The srsformat
- The formatversion
- The versionbounds
- The boundspublic void appendLayer(java.lang.String layerName, GeoLocationInfo thatBounds)
layerName
- layer name to appendthatBounds
- its boundspublic boolean isFixedImage()
public java.lang.String assembleRequest(GeoLocationInfo boundsToUse, int imageWidth, int imageHeight)
boundsToUse
- The bounds to useimageWidth
- The widthimageHeight
- The heightpublic void setServer(java.lang.String value)
value
- The new value for Serverpublic java.lang.String getServer()
public void setSRS(java.lang.String value)
value
- The new value for srspublic java.lang.String getSRS()
public void setLayer(java.lang.String value)
value
- The new value for Layerpublic java.lang.String getLayer()
public void setBounds(GeoLocationInfo value)
value
- The new value for Boundspublic GeoLocationInfo getBounds()
public void setFormat(java.lang.String value)
value
- The new value for Formatpublic java.lang.String getFormat()
public void setTitle(java.lang.String value)
value
- The new value for Titlepublic java.lang.String getTitle()
public void setVersion(java.lang.String value)
value
- The new value for Versionpublic java.lang.String getVersion()
public java.lang.String toString()
toString
in class java.lang.Object
public static java.util.List parseWmsResources(XmlResourceCollection xrc)
xrc
- The resourcespublic void setFixedWidth(int value)
value
- The new value for FixedWidthpublic int getFixedWidth()
public void setOpaque(int value)
value
- The new value for FixedWidthpublic int getOpaque()
public void setFixedHeight(int value)
value
- The new value for FixedHeightpublic int getFixedHeight()
public void setAllowSubsets(boolean value)
value
- The new value for AllowSubsetspublic boolean getAllowSubsets()
public void setDescription(java.lang.String value)
value
- The new value for Descriptionpublic java.lang.String getDescription()
public void setLegendIcon(java.lang.String value)
value
- The new value for LegendIconpublic java.lang.String getLegendIcon()
public void setTimeList(java.util.List value)
value
- The new value for TimeListpublic java.util.List getTimeList()
public int hashCode()
hashCode
in class java.lang.Object
public void setImageFile(java.lang.String value)
value
- The new value for ImageFilepublic java.lang.String getImageFile()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object