Class TLcdGXYViewSVGEncoder
java.lang.Object
com.luciad.wms.server.viewencoder.TLcdGXYViewSVGEncoder
- All Implemented Interfaces:
ILcdGXYViewEncoder
,ILcdWMSFeatureInfoRequestEncoder
public class TLcdGXYViewSVGEncoder
extends Object
implements ILcdGXYViewEncoder, ILcdWMSFeatureInfoRequestEncoder
Class implements
ILcdGXYViewEncoder
and ILcdWMSFeatureInfoRequestEncoder
.
This encoder encodes a ILcdGXYView
as SVG, with or without selection.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(ILcdGXYLayerSubsetList aSubsetList, OutputStream aOutputStream, ILcdGXYView aGXYView) Encodes the given selection in theTLcdGXYLayerSubsetList
from a givenILcdGXYView
and sends it to the givenOutputStream
.void
encodeGXYView
(ILcdGXYView aGXYView, OutputStream aOutputStream) encodes a givenILcdGXYView
to theOutputStream
.Returns the content MIME type of the encoder.int
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.
-
Constructor Details
-
TLcdGXYViewSVGEncoder
public TLcdGXYViewSVGEncoder()
-
-
Method Details
-
getPrecision
public int getPrecision()The precision controls the number of decimal places used in floating point values output. Note that the precision is clipped to the [0,12] range.- Returns:
- the number of decimal places used in floating point values output.
- See Also:
-
setPrecision
public void setPrecision(int aPrecision) The precision controls the number of decimal places used in floating point values output. Note that the precision is clipped to the [0,12] range.- Parameters:
aPrecision
- the number of decimal places to use in floating point values output.- See Also:
-
encodeGXYView
Description copied from interface:ILcdGXYViewEncoder
encodes a givenILcdGXYView
to theOutputStream
.- Specified by:
encodeGXYView
in interfaceILcdGXYViewEncoder
- Parameters:
aGXYView
- theILcdGXYView
to be encoded.aOutputStream
- theOutputStream
to write the encoded view to.- Throws:
IOException
- for any I/O Exceptions.
-
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 aSubsetList, OutputStream aOutputStream, ILcdGXYView aGXYView) throws jakarta.servlet.ServletException Description copied from interface:ILcdWMSFeatureInfoRequestEncoder
Encodes the given selection in theTLcdGXYLayerSubsetList
from a givenILcdGXYView
and sends it to the givenOutputStream
.- Specified by:
encode
in interfaceILcdWMSFeatureInfoRequestEncoder
- Parameters:
aSubsetList
- 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.
-