de.laures.cewolf
Interface ChartImage

All Known Implementing Classes:
ChartImageDefinition, SerializableChartImage

public interface ChartImage

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

public static final int IMG_TYPE_CHART
See Also:
Constant Field Values

IMG_TYPE_LEGEND

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

getWidth

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

Returns:
the width of the chart image in pixel

getHeight

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

Returns:
the height of the chart image in pixel

getType

public 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

public 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:
java.io.IOException - if an I/O error occured during write
CewolfException

getMimeType

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

Returns:
the MIME type of the image

getSize

public 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

public java.util.Date getTimeoutTime()


Copyright © {inceptionYear}-2007 null. All Rights Reserved.