de.laures.cewolf
Interface ChartImage

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ChartImageDefinition, SerializableChartImage

public interface ChartImage
extends java.io.Serializable

A special ChartHolder which also holds the image presentation of the chart.

Author:
Guido Laures

Field Summary
static int IMG_TYPE_CHART
           
static int IMG_TYPE_LEGEND
           
 
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.
 

Field Detail

IMG_TYPE_CHART

static final int IMG_TYPE_CHART
See Also:
Constant Field Values

IMG_TYPE_LEGEND

static final int IMG_TYPE_LEGEND
See Also:
Constant Field Values
Method Detail

getWidth

int getWidth()
Returns the width of the chart image in pixel.

Returns:
the width of the chart image in pixel

getHeight

int getHeight()
Returns the height of the chart image in pixel.

Returns:
the height of the chart image in pixel

getType

int getType()
Returns the type of the chart image.

Returns:
the type of the chart image
See Also:
IMG_TYPE_CHART, IMG_TYPE_LEGEND

getBytes

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

Throws:
CewolfException

getMimeType

java.lang.String getMimeType()
Returns the MIME type of this image.

Returns:
the MIME type of the image

getSize

int getSize()
            throws CewolfException
Returns the size of the image in bytes.

Returns:
size of the image
Throws:
CewolfException - if the size could not be determined

getTimeoutTime

java.util.Date getTimeoutTime()


cewolf tag library - web charts with JFreeChart