public class TLcdGXYViewSVGEncoder extends Object implements ILcdGXYViewEncoder,ILcdWMSFeatureInfoRequestEncoder
ILcdGXYViewEncoder
and ILcdWMSFeatureInfoRequestEncoder
.
This encoder encodes a ILcdGXYView
as SVG, with or without selection.Constructor and Description |
---|
TLcdGXYViewSVGEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
encode(ILcdGXYLayerSubsetList aSubsetList,
OutputStream aOutputStream,
ILcdGXYView aGXYView)
Encodes the given selection in the
TLcdGXYLayerSubsetList from a given ILcdGXYView
and sends it to the given OutputStream . |
void |
encodeGXYView(ILcdGXYView aGXYView,
OutputStream aOutputStream)
encodes a given
ILcdGXYView to the OutputStream . |
String |
getContentType()
Returns the content MIME type of the encoder.
|
int |
getPrecision()
The precision controls the number of decimal places used
in floating point values output.
|
void |
setPrecision(int aPrecision)
The precision controls the number of decimal places used
in floating point values output.
|
public int getPrecision()
setPrecision(int)
public void setPrecision(int aPrecision)
aPrecision
- the number of decimal places to use in floating point values output.getPrecision()
public void encodeGXYView(ILcdGXYView aGXYView, OutputStream aOutputStream) throws IOException
ILcdGXYViewEncoder
ILcdGXYView
to the OutputStream
.encodeGXYView
in interface ILcdGXYViewEncoder
aGXYView
- the ILcdGXYView
to be encoded. aOutputStream
- the OutputStream
to write the encoded view to.IOException
- for any I/O Exceptions.public String getContentType()
ILcdGXYViewEncoder
getContentType
in interface ILcdGXYViewEncoder
getContentType
in interface ILcdWMSFeatureInfoRequestEncoder
String
.public void encode(ILcdGXYLayerSubsetList aSubsetList, OutputStream aOutputStream, ILcdGXYView aGXYView) throws javax.servlet.ServletException
ILcdWMSFeatureInfoRequestEncoder
TLcdGXYLayerSubsetList
from a given ILcdGXYView
and sends it to the given OutputStream
.encode
in interface ILcdWMSFeatureInfoRequestEncoder
aSubsetList
- 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.