de.laures.cewolf.storage
Class SerializableChartImage

java.lang.Object
  extended by de.laures.cewolf.storage.SerializableChartImage
All Implemented Interfaces:
ChartImage, java.io.Serializable

public class SerializableChartImage
extends java.lang.Object
implements ChartImage, java.io.Serializable

Author:
guido
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface de.laures.cewolf.ChartImage
IMG_TYPE_CHART, IMG_TYPE_LEGEND
 
Constructor Summary
SerializableChartImage(ChartImage img)
           
 
Method Summary
 byte[] getBytes()
          Writes out a cached image to an outputstream.
 int getHeight()
          Returns the height of the chart image in pixel.
 java.lang.String getMimeType()
          Returns the MIME type of this image.
 int getSize()
          Returns the size of the image in bytes.
 java.util.Date getTimeoutTime()
           
 int getType()
          Returns the type of the chart image.
 int getWidth()
          Returns the width of the chart image in pixel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableChartImage

public SerializableChartImage(ChartImage img)
                       throws CewolfException
Throws:
CewolfException
Method Detail

getWidth

public int getWidth()
Description copied from interface: ChartImage
Returns the width of the chart image in pixel.

Specified by:
getWidth in interface ChartImage
Returns:
the width of the chart image in pixel
See Also:
ChartImage.getWidth()

getHeight

public int getHeight()
Description copied from interface: ChartImage
Returns the height of the chart image in pixel.

Specified by:
getHeight in interface ChartImage
Returns:
the height of the chart image in pixel
See Also:
ChartImage.getHeight()

getType

public int getType()
Description copied from interface: ChartImage
Returns the type of the chart image.

Specified by:
getType in interface ChartImage
Returns:
the type of the chart image
See Also:
ChartImage.getType()

getBytes

public byte[] getBytes()
                throws CewolfException
Description copied from interface: ChartImage
Writes out a cached image to an outputstream. This method only marks the object as accessed and therfore frees it for cache cleanup.

Specified by:
getBytes in interface ChartImage
Throws:
CewolfException
See Also:
ChartImage.getBytes()

getMimeType

public java.lang.String getMimeType()
Description copied from interface: ChartImage
Returns the MIME type of this image.

Specified by:
getMimeType in interface ChartImage
Returns:
the MIME type of the image
See Also:
ChartImage.getMimeType()

getSize

public int getSize()
            throws CewolfException
Description copied from interface: ChartImage
Returns the size of the image in bytes.

Specified by:
getSize in interface ChartImage
Returns:
size of the image
Throws:
CewolfException - if the size could not be determined
See Also:
ChartImage.getSize()

getTimeoutTime

public java.util.Date getTimeoutTime()
Specified by:
getTimeoutTime in interface ChartImage


cewolf tag library - web charts with JFreeChart