lt.monarch.chart.plugins
Class JPEGEncoderPlugin<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.JPEGEncoderPlugin<ChartType>
All Implemented Interfaces:
java.io.Serializable, ChartPlugin<ChartType>

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

Plug-in for making JPEG images from chart. Makes image from any specified View.

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
JPEGEncoderPlugin(java.awt.Container container)
          Plug-in constructor.
JPEGEncoderPlugin(int iWidth, int iHeight, java.awt.Container container)
          Plug-in constructor.
JPEGEncoderPlugin(int iWidth, int iHeight, View cView)
          Plug-in constructor.
JPEGEncoderPlugin(View cView)
          Plug-in constructor.
 
Method Summary
Modifier and Type Method and Description
protected  java.awt.Image processBeforeEncoding(java.awt.Image image)
          This method is called from generateImageFile method after chart is rendered into image and before image is passed to encoder.
 
Methods inherited from class lt.monarch.chart.plugins.ImagePlugin
activate, deactivate, generateImageFile, getEncoder, getInsets, 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

JPEGEncoderPlugin

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

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

JPEGEncoderPlugin

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

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

JPEGEncoderPlugin

public JPEGEncoderPlugin(int iWidth,
                         int iHeight,
                         java.awt.Container container)
Plug-in constructor. Allows to create the JPEG image from specified GUI Container.

Parameters:
iWidth - width of chart image.
iHeight - height of chart image.
container - Container of the chart for image rendering.

JPEGEncoderPlugin

public JPEGEncoderPlugin(java.awt.Container container)
Plug-in constructor. The size of the resulting JPEG image will be the same as the size of the chart Container.

Parameters:
container - Container of the chart for image rendering.
Method Detail

processBeforeEncoding

protected java.awt.Image processBeforeEncoding(java.awt.Image image)
Description copied from class: ImagePlugin
This method is called from generateImageFile method after chart is rendered into image and before image is passed to encoder.

Overrides:
processBeforeEncoding in class ImagePlugin<ChartType extends Chart<?>>
Parameters:
image - image with chart view
Returns:
image after possible processing