lt.monarch.chart.plugins
Class SVGEncoderPlugin<ChartType extends Chart<?>>

java.lang.Object
  extended by lt.monarch.chart.plugins.AbstractChartPlugin<ChartType>
      extended by lt.monarch.chart.plugins.ImagePlugin<ChartType>
          extended by lt.monarch.chart.plugins.SVGEncoderPlugin<ChartType>
All Implemented Interfaces:
java.io.Serializable, ChartPlugin<ChartType>

public class SVGEncoderPlugin<ChartType extends Chart<?>>
extends ImagePlugin<ChartType>

See Also:
Serialized Form

Nested Class Summary
Modifier and Type Class and Description
 
Nested classes/interfaces inherited from class lt.monarch.chart.plugins.ImagePlugin
ImagePlugin.ChartImageBuilder
 
Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.plugins.ImagePlugin
chartImage, chartView, container, encoder, imageHeight, imageWidth, insets, scaleImage
 
Constructor Summary
Constructor and Description
SVGEncoderPlugin(int iWidth, int iHeight, View cView)
          Plug-in constructor.
SVGEncoderPlugin(View cView)
          Plug-in constructor.
 
Method Summary
Modifier and Type Method and Description
 void generateImageFile(java.io.OutputStream outStream)
          Generates image from chart View.
 
Methods inherited from class lt.monarch.chart.plugins.ImagePlugin
activate, deactivate, getEncoder, getInsets, processBeforeEncoding, setInsets
 
Methods inherited from class lt.monarch.chart.plugins.AbstractChartPlugin
adjustChart, chart, getChart, install, isActivated, paint, uninstall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGEncoderPlugin

public SVGEncoderPlugin(int iWidth,
                        int iHeight,
                        View cView)
Plug-in constructor. Allows to create the SVG image from specified chart View.

Parameters:
iWidth - width of chart image.
iHeight - height of chart image.
cView - View of the chart for image rendering.

SVGEncoderPlugin

public SVGEncoderPlugin(View cView)
Plug-in constructor. The size of the resulting SVG image will be the same as the size of the chart View.

Parameters:
cView - View of the chart for image rendering.
Method Detail

generateImageFile

public void generateImageFile(java.io.OutputStream outStream)
Description copied from class: ImagePlugin
Generates image from chart View.

Overrides:
generateImageFile in class ImagePlugin<ChartType extends Chart<?>>
Parameters:
outStream - where encoded image is sent.