Package com.luciad.wms.client.model
Class TLcdWMSGetMapContext.Builder
java.lang.Object
com.luciad.wms.client.model.TLcdWMSGetMapContext.Builder
- Enclosing class:
TLcdWMSGetMapContext
Builder class for
TLcdWMSGetMapContext
objects. Use TLcdWMSGetMapContext.newBuilder()
to create an instance of this builder.- Since:
- 2016.1.
-
Method Summary
Modifier and TypeMethodDescriptionall
(TLcdWMSGetMapContext aGetMapContext) Sets all parameters on the builder based on the given GetMap context.backgroundColor
(Color aBackgroundColor) Specifies the background color to use for the map.build()
Builds the context with the set parameters.imageSize
(int aWidth, int aHeight) Specifies the size of the returned image for the GetMap request.mapBounds
(ILcdBounds aMapBounds) Specifies the area of interest, specified in the map reference of the map to be returned.mapReference
(ILcdXYWorldReference aMapReference) Specifies the reference in which the map content should be returned.mapRotation
(Double aRotation) Specifies the rotation to use for the map.
-
Method Details
-
imageSize
Specifies the size of the returned image for the GetMap request. This parameter is mandatory.- Parameters:
aWidth
- the width of the returned map imageaHeight
- the width of the returned map image- Returns:
this
-
mapReference
Specifies the reference in which the map content should be returned. This parameter is mandatory.- Parameters:
aMapReference
- the reference in which the map content should be returned.- Returns:
this
-
mapBounds
Specifies the area of interest, specified in the map reference of the map to be returned. This parameter is mandatory.- Parameters:
aMapBounds
- he area of interest, specified in the reference of the map to be returned.- Returns:
this
-
mapRotation
Specifies the rotation to use for the map. Note that this parameter requires support for map rotations in the WMS server by means of theangle
request parameter. The default value isnull
, indicating that the rotation is applied in the WMS client, after the map is retrieved from the WMS server.- Parameters:
aRotation
- the rotation to use for the map- Returns:
this
- Since:
- 2022.0
-
backgroundColor
Specifies the background color to use for the map. This parameter is mandatory.- Parameters:
aBackgroundColor
- the background color to use for the map- Returns:
this
-
all
Sets all parameters on the builder based on the given GetMap context.
This is useful for example to create a new context that has almost all properties equal to another context.
- Parameters:
aGetMapContext
- a GetMap context- Returns:
this
-
build
Builds the context with the set parameters.- Returns:
- a context with the set parameters.
-