public static class TLcdWMSGetMapContext.Builder extends Object
TLcdWMSGetMapContext
objects. Use TLcdWMSGetMapContext.newBuilder()
to create an instance of this builder.Modifier and Type | Method and Description |
---|---|
TLcdWMSGetMapContext.Builder |
all(TLcdWMSGetMapContext aGetMapContext)
Sets all parameters on the builder based on the given GetMap context.
|
TLcdWMSGetMapContext.Builder |
backgroundColor(Color aBackgroundColor)
Specifies the background color to use for the map.
|
TLcdWMSGetMapContext |
build()
Builds the context with the set parameters.
|
TLcdWMSGetMapContext.Builder |
imageSize(int aWidth,
int aHeight)
Specifies the size of the returned image for the GetMap request.
|
TLcdWMSGetMapContext.Builder |
mapBounds(ILcdBounds aMapBounds)
Specifies the area of interest, specified in the map reference
of the map to be returned.
|
TLcdWMSGetMapContext.Builder |
mapReference(ILcdXYWorldReference aMapReference)
Specifies the reference in which the map content should be returned.
|
TLcdWMSGetMapContext.Builder |
mapRotation(Double aRotation)
Specifies the rotation to use for the map.
|
public TLcdWMSGetMapContext.Builder imageSize(int aWidth, int aHeight)
aWidth
- the width of the returned map imageaHeight
- the width of the returned map imagethis
public TLcdWMSGetMapContext.Builder mapReference(ILcdXYWorldReference aMapReference)
aMapReference
- the reference in which the map content should be returned.this
public TLcdWMSGetMapContext.Builder mapBounds(ILcdBounds aMapBounds)
aMapBounds
- he area of interest, specified in the reference of the map to be returned.this
public TLcdWMSGetMapContext.Builder mapRotation(Double aRotation)
angle
request parameter.
The default value is null
, indicating that the rotation is applied in the WMS client,
after the map is retrieved from the WMS server.aRotation
- the rotation to use for the mapthis
public TLcdWMSGetMapContext.Builder backgroundColor(Color aBackgroundColor)
aBackgroundColor
- the background color to use for the mapthis
public TLcdWMSGetMapContext.Builder all(TLcdWMSGetMapContext aGetMapContext)
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.
aGetMapContext
- a GetMap contextthis
public TLcdWMSGetMapContext build()