Class TLcdWMSGetFeatureInfoContext.Builder

java.lang.Object
com.luciad.wms.client.model.TLcdWMSGetFeatureInfoContext.Builder
Enclosing class:
TLcdWMSGetFeatureInfoContext

public static class TLcdWMSGetFeatureInfoContext.Builder extends Object
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 Details

    • queryCoordinate

      public TLcdWMSGetFeatureInfoContext.Builder queryCoordinate(int aX, int aY)

      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

      public TLcdWMSGetFeatureInfoContext.Builder getMapContext(TLcdWMSGetMapContext aGetMapContext)

      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

      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.