lt.monarch.chart.plugins
Class JPEGEncoderPlugin<ChartType extends Chart<?>>
java.lang.Object
lt.monarch.chart.plugins.AbstractChartPlugin<ChartType>
lt.monarch.chart.plugins.ImagePlugin<ChartType>
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
Method Summary
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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