Package ucar.unidata.data.gis
Class WmsSelection
java.lang.Object
ucar.unidata.data.gis.WmsSelection
- Direct Known Subclasses:
WMSInfo
Class for controlling the display of color images.
- Version:
- $Revision: 1.12 $
- Author:
- Jeff McWhirter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
xml attribute namestatic final String
crs attributestatic final String
xml attribute namestatic final String
xml attribute namestatic final String
xml tag namestatic final String
xml attribute namestatic final String
xml tag namestatic final String
xml attribute namestatic final String
xml attribute namestatic final String
xml attribute namestatic final String
xml tag namestatic final String
xml tag namestatic final String
xml tag name -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.WmsSelection
(String layer, String title, String imageFile) Create a WmsSelection from the specificationWmsSelection
(String server, String layer, String title, String srs, String format, String version, GeoLocationInfo bounds) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendLayer
(String layerName, GeoLocationInfo thatBounds) Append the given layer to our layer name.assembleRequest
(GeoLocationInfo boundsToUse, int imageWidth, int imageHeight) Create the wms requestboolean
Overwriteboolean
Get the AllowSubsets property.Get the Bounds property.Get the Description property.int
Get the FixedHeight property.int
Get the FixedWidth property.Get the Format property.Get the ImageFile property.getLayer()
Get the Layer property.Get the LegendIcon property.int
Get the Opaque property.Get the Server property.getSRS()
Get the srs property.Get the TimeList property.getTitle()
Get the Title property.Get the Version property.int
hashCode()
Overwriteboolean
Is this a fixed imagestatic List
Process the xms xml resourcesvoid
setAllowSubsets
(boolean value) Set the AllowSubsets property.void
setBounds
(GeoLocationInfo value) Set the Bounds property.void
setDescription
(String value) Set the Description property.void
setFixedHeight
(int value) Set the FixedHeight property.void
setFixedWidth
(int value) Set the FixedWidth property.void
Set the Format property.void
setImageFile
(String value) Set the ImageFile property.void
Set the Layer property.void
setLegendIcon
(String value) Set the LegendIcon property.void
setOpaque
(int value) Set the Opaque property.void
Set the Server property.void
Set the srs property.void
setTimeList
(List value) Set the TimeList property.void
Set the Title property.void
setVersion
(String value) Set the Version property.toString()
to string
-
Field Details
-
TAG_BACKGROUNDWMS
xml tag name- See Also:
-
TAG_WMS
xml tag name- See Also:
-
TAG_IMAGE
xml tag name- See Also:
-
ATTR_SERVER
xml tag name- See Also:
-
ATTR_LEGENDURL
xml tag name- See Also:
-
ATTR_LAYER
xml attribute name- See Also:
-
ATTR_TITLE
xml attribute name- See Also:
-
ATTR_SRS
xml attribute name- See Also:
-
ATTR_CRS
crs attribute- See Also:
-
ATTR_FORMAT
xml attribute name- See Also:
-
ATTR_VERSION
xml attribute name- See Also:
-
ATTR_BBOX
xml attribute name- See Also:
-
ATTR_OPAQUE
xml attribute name- See Also:
-
-
Constructor Details
-
WmsSelection
public WmsSelection()Default constructor. -
WmsSelection
Create a WmsSelection from the specification- Parameters:
layer
- the layertitle
- the titleimageFile
- the image file
-
WmsSelection
public WmsSelection(String server, String layer, String title, String srs, String format, String version, GeoLocationInfo bounds) Constructor.- Parameters:
server
- The serverlayer
- The layertitle
- The titlesrs
- The srsformat
- The formatversion
- The versionbounds
- The bounds
-
-
Method Details
-
appendLayer
Append the given layer to our layer name. Union the bounds- Parameters:
layerName
- layer name to appendthatBounds
- its bounds
-
isFixedImage
public boolean isFixedImage()Is this a fixed image- Returns:
- true if fixed image
-
assembleRequest
Create the wms request- Parameters:
boundsToUse
- The bounds to useimageWidth
- The widthimageHeight
- The height- Returns:
- The request url
-
setServer
Set the Server property.- Parameters:
value
- The new value for Server
-
getServer
Get the Server property.- Returns:
- The Server
-
setSRS
Set the srs property.- Parameters:
value
- The new value for srs
-
getSRS
Get the srs property.- Returns:
- The srs
-
setLayer
Set the Layer property.- Parameters:
value
- The new value for Layer
-
getLayer
Get the Layer property.- Returns:
- The Layer
-
setBounds
Set the Bounds property.- Parameters:
value
- The new value for Bounds
-
getBounds
Get the Bounds property.- Returns:
- The Bounds
-
setFormat
Set the Format property.- Parameters:
value
- The new value for Format
-
getFormat
Get the Format property.- Returns:
- The Format
-
setTitle
Set the Title property.- Parameters:
value
- The new value for Title
-
getTitle
Get the Title property.- Returns:
- The Title
-
setVersion
Set the Version property.- Parameters:
value
- The new value for Version
-
getVersion
Get the Version property.- Returns:
- The Version
-
toString
to string -
parseWmsResources
Process the xms xml resources- Parameters:
xrc
- The resources- Returns:
- List of WmsSelection objects defined by the xml resources
-
setFixedWidth
public void setFixedWidth(int value) Set the FixedWidth property.- Parameters:
value
- The new value for FixedWidth
-
getFixedWidth
public int getFixedWidth()Get the FixedWidth property.- Returns:
- The FixedWidth
-
setOpaque
public void setOpaque(int value) Set the Opaque property.- Parameters:
value
- The new value for FixedWidth
-
getOpaque
public int getOpaque()Get the Opaque property.- Returns:
- The Opaque
-
setFixedHeight
public void setFixedHeight(int value) Set the FixedHeight property.- Parameters:
value
- The new value for FixedHeight
-
getFixedHeight
public int getFixedHeight()Get the FixedHeight property.- Returns:
- The FixedHeight
-
setAllowSubsets
public void setAllowSubsets(boolean value) Set the AllowSubsets property.- Parameters:
value
- The new value for AllowSubsets
-
getAllowSubsets
public boolean getAllowSubsets()Get the AllowSubsets property.- Returns:
- The AllowSubsets
-
setDescription
Set the Description property.- Parameters:
value
- The new value for Description
-
getDescription
Get the Description property.- Returns:
- The Description
-
setLegendIcon
Set the LegendIcon property.- Parameters:
value
- The new value for LegendIcon
-
getLegendIcon
Get the LegendIcon property.- Returns:
- The LegendIcon
-
setTimeList
Set the TimeList property.- Parameters:
value
- The new value for TimeList
-
getTimeList
Get the TimeList property.- Returns:
- The TimeList
-
hashCode
public int hashCode()Overwrite -
setImageFile
Set the ImageFile property.- Parameters:
value
- The new value for ImageFile
-
getImageFile
Get the ImageFile property.- Returns:
- The ImageFile
-
equals
Overwrite
-