Class TLcdGXYViewJPEGEncoder

java.lang.Object
com.luciad.wms.server.viewencoder.TLcdGXYViewJPEGEncoder
All Implemented Interfaces:
ILcdGXYViewEncoder, ILcdWMSFeatureInfoRequestEncoder

Class implement ILcdGXYViewEncoder and ILcdWMSFeatureInfoRequestEncoder. This encoder encodes a ILcdGXYView as JPEG, with or without selection.
See Also:
  • Constructor Details

    • TLcdGXYViewJPEGEncoder

      public TLcdGXYViewJPEGEncoder()
  • Method Details

    • isClassTraceOn

      public static boolean isClassTraceOn()
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Returns true if tracing is enabled for this class.
      Returns:
      true if tracing is enabled for this class, false otherwise.
    • setClassTraceOn

      public static void setClassTraceOn(boolean aClassTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for all instances of this class. If the argument is true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
      Parameters:
      aClassTraceOn - if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
    • encodeGXYView

      public void encodeGXYView(ILcdGXYView aView, OutputStream aOutputStream)
      Encodes the given ILcdGXYView as a JPEG.
      Specified by:
      encodeGXYView in interface ILcdGXYViewEncoder
      Parameters:
      aView - .
      aOutputStream - .
      See Also:
    • getContentType

      public String getContentType()
      Description copied from interface: ILcdGXYViewEncoder
      Returns the content MIME type of the encoder.
      Specified by:
      getContentType in interface ILcdGXYViewEncoder
      Specified by:
      getContentType in interface ILcdWMSFeatureInfoRequestEncoder
      Returns:
      the MIME-type as String.
    • encode

      public void encode(ILcdGXYLayerSubsetList aSelectionSublist, OutputStream aOutputStream, ILcdGXYView aGXYView) throws jakarta.servlet.ServletException
      Encodes the ILcdGXYView to a JPEG and writes in to the given OutputStrean. The elements of the given TLcdGXYLayerSubsetList are painted in the ILcdGXYView in the selection color.
      Specified by:
      encode in interface ILcdWMSFeatureInfoRequestEncoder
      Parameters:
      aSelectionSublist - a TLcdGXYLayerSubsetList containing the selection to be encoded.
      aOutputStream - the OutputStream to write the output to.
      aGXYView - the ILcdGXYView in which the elements are selected .
      Throws:
      jakarta.servlet.ServletException - for writing and sending exceptions.
      See Also: