@LcdService(service=ILcdGXYViewEncoder.class, priority=20000) public class TLcdGXYViewGIFEncoder extends Object implements ILcdGXYViewEncoder,ILcdWMSFeatureInfoRequestEncoder
ILcdGXYViewEncoder
and ILcdWMSFeatureInfoRequestEncoder
.
This encoder encodes an ILcdGXYView
to a GIF image. The maximum number of
colors for GIF images is 256. When there are more colors in the image to be encoded, the number
of colors is automatically reduced before the GIF is generated. The encoding process and
color reduction step is done with the ImageIO library.Constructor and Description |
---|
TLcdGXYViewGIFEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
encode(ILcdGXYLayerSubsetList aSelectionSublist,
OutputStream aOutputStream,
ILcdGXYView aGXYView)
Encodes the
ILcdGXYView to a GIF and writes in to the given
OutputStrean . |
void |
encodeGXYView(ILcdGXYView aGXYView,
OutputStream aOutputStream)
Encodes the given
ILcdGXYView as a GIF and sends it to the outputStream. |
String |
getContentType()
Returns the content MIME type of the encoder.
|
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
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 aGXYView, OutputStream aOutputStream) throws IOException
ILcdGXYView
as a GIF and sends it to the outputStream.encodeGXYView
in interface ILcdGXYViewEncoder
aGXYView
- the view to decide.aOutputStream
- the outputstream to send the result to.IOException
- for I/O errors.ILcdGXYViewEncoder
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 GIF 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.ILcdWMSFeatureInfoRequestEncoder.