Package com.luciad.wms.client.model
Class TLcdWMSGetFeatureInfoContext.Builder
java.lang.Object
com.luciad.wms.client.model.TLcdWMSGetFeatureInfoContext.Builder
- Enclosing class:
TLcdWMSGetFeatureInfoContext
Builder class for
TLcdWMSGetFeatureInfoContext
objects. Use TLcdWMSGetFeatureInfoContext.newBuilder()
to create an instance of this builder. Note that is most cases, it should not be needed to create a
TLcdWMSGetFeatureInfoContext
. It can be retrieved from the layer. For more information, see
TLcdWMSGetFeatureInfoContext
class doc.- Since:
- 2016.1.
-
Method Summary
Modifier and TypeMethodDescriptionall
(TLcdWMSGetFeatureInfoContext aGetFeatureInfoContext) Sets all parameters on the builder based on the given GetFeatureInfo context.build()
Builds the context with the set parameters.getMapContext
(TLcdWMSGetMapContext aGetMapContext) Sets the GetMap context used for a GetFeatureInfo request.queryCoordinate
(int aX, int aY) Sets the coordinate used for the query.
-
Method Details
-
queryCoordinate
Sets the coordinate used for the query. This method should be called before calling
build()
.- Parameters:
aX
- the x coordinate (in view coordinates)aY
- the y coordinate (in view coordinates)- Returns:
this
-
getMapContext
Sets the GetMap context used for a GetFeatureInfo request. This method should be called before calling
build()
.- Parameters:
aGetMapContext
- the GetMap context used for a GetFeatureInfo request.- Returns:
this
-
all
public TLcdWMSGetFeatureInfoContext.Builder all(TLcdWMSGetFeatureInfoContext aGetFeatureInfoContext) Sets all parameters on the builder based on the given GetFeatureInfo context.
This is useful for example to create a new context that has almost all properties equal to another context.
- Parameters:
aGetFeatureInfoContext
- a GetFeatureInfo context- Returns:
this
-
build
Builds the context with the set parameters.- Returns:
- a context with the set parameters.
-