Class TLcdGXYViewJPEGEncoder
java.lang.Object
com.luciad.wms.server.viewencoder.TLcdGXYViewJPEGEncoder
- All Implemented Interfaces:
ILcdGXYViewEncoder
,ILcdWMSFeatureInfoRequestEncoder
@LcdService(service=ILcdGXYViewEncoder.class)
public class TLcdGXYViewJPEGEncoder
extends Object
implements ILcdGXYViewEncoder, ILcdWMSFeatureInfoRequestEncoder
Class implement
ILcdGXYViewEncoder
and ILcdWMSFeatureInfoRequestEncoder
.
This encoder encodes a ILcdGXYView
as JPEG, with or without selection.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(ILcdGXYLayerSubsetList aSelectionSublist, OutputStream aOutputStream, ILcdGXYView aGXYView) Encodes theILcdGXYView
to a JPEG and writes in to the givenOutputStrean
.void
encodeGXYView
(ILcdGXYView aView, OutputStream aOutputStream) Encodes the givenILcdGXYView
as a JPEG.Returns the content MIME type of the encoder.static boolean
Deprecated.This method has been deprecated.static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.
-
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.Returnstrue
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 istrue
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
Encodes the givenILcdGXYView
as a JPEG.- Specified by:
encodeGXYView
in interfaceILcdGXYViewEncoder
- Parameters:
aView
- .aOutputStream
- .- See Also:
-
getContentType
Description copied from interface:ILcdGXYViewEncoder
Returns the content MIME type of the encoder.- Specified by:
getContentType
in interfaceILcdGXYViewEncoder
- Specified by:
getContentType
in interfaceILcdWMSFeatureInfoRequestEncoder
- Returns:
- the MIME-type as
String
.
-
encode
public void encode(ILcdGXYLayerSubsetList aSelectionSublist, OutputStream aOutputStream, ILcdGXYView aGXYView) throws jakarta.servlet.ServletException Encodes theILcdGXYView
to a JPEG and writes in to the givenOutputStrean
. The elements of the givenTLcdGXYLayerSubsetList
are painted in theILcdGXYView
in the selection color.- Specified by:
encode
in interfaceILcdWMSFeatureInfoRequestEncoder
- Parameters:
aSelectionSublist
- aTLcdGXYLayerSubsetList
containing the selection to be encoded.aOutputStream
- theOutputStream
to write the output to.aGXYView
- theILcdGXYView
in which the elements are selected .- Throws:
jakarta.servlet.ServletException
- for writing and sending exceptions.- See Also:
-