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

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

Plug-in for making GIF images from chart. Creates 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
GIFEncoderPlugin(java.awt.Container container)
          Plug-in constructor.
GIFEncoderPlugin(int iWidth, int iHeight, java.awt.Container container)
          Plug-in constructor.
GIFEncoderPlugin(int iWidth, int iHeight, View cView)
          Plug-in constructor.
GIFEncoderPlugin(View cView)
          Plug-in constructor.
 
Method Summary
Modifier and Type Method and Description
 void setLZW(boolean useLZW)
          Used to indicate whether we are using LZW algorithm.
 void setTransparent(boolean useTransparent)
          Used to indicate if background is transparent or not.
 
Methods inherited from class lt.monarch.chart.plugins.ImagePlugin
activate, deactivate, generateImageFile, 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

GIFEncoderPlugin

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

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

GIFEncoderPlugin

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

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

GIFEncoderPlugin

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

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

GIFEncoderPlugin

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

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

setTransparent

public void setTransparent(boolean useTransparent)
Used to indicate if background is transparent or not.

Parameters:
useTransparent - - True if background is transparent.

setLZW

public void setLZW(boolean useLZW)
Used to indicate whether we are using LZW algorithm. Images encoded with LZW algorithm generally are smaller, but using LZW algorithm for GIF requires license from UNISYS.

Parameters:
useLZW - - True if LZW algorithm will be used.