@LcdService(service=ILcdGXYViewEncoder.class) public class TLcdGXYViewJPEGEncoder extends Object implements ILcdGXYViewEncoder,ILcdWMSFeatureInfoRequestEncoder
ILcdGXYViewEncoder
and ILcdWMSFeatureInfoRequestEncoder
.
This encoder encodes a ILcdGXYView
as JPEG, with or without selection.Constructor and Description |
---|
TLcdGXYViewJPEGEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
encode(ILcdGXYLayerSubsetList aSelectionSublist,
OutputStream aOutputStream,
ILcdGXYView aGXYView)
Encodes the
ILcdGXYView to a JPEG and writes in to the given OutputStrean . |
void |
encodeGXYView(ILcdGXYView aView,
OutputStream aOutputStream)
Encodes the given
ILcdGXYView as a JPEG. |
String |
getContentType()
Returns the content MIME type of the encoder.
|
static boolean |
isClassTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
public static boolean isClassTraceOn()
true
if tracing is enabled for this class.public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public void encodeGXYView(ILcdGXYView aView, OutputStream aOutputStream)
ILcdGXYView
as a JPEG.encodeGXYView
in interface ILcdGXYViewEncoder
aView
- .aOutputStream
- ..
public String getContentType()
ILcdGXYViewEncoder
getContentType
in interface ILcdGXYViewEncoder
getContentType
in interface ILcdWMSFeatureInfoRequestEncoder
String
.public void encode(ILcdGXYLayerSubsetList aSelectionSublist, OutputStream aOutputStream, ILcdGXYView aGXYView) throws javax.servlet.ServletException
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.encode
in interface ILcdWMSFeatureInfoRequestEncoder
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 .javax.servlet.ServletException
- for writing and sending exceptions..