|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.laures.cewolf.taglib.ChartImageDefinition
public class ChartImageDefinition
Serializable implementaton of a ChartImage.
ChartImage,
Serialized Form| Field Summary | |
|---|---|
private ChartHolder |
chartHolder
|
private int |
height
|
private static org.apache.commons.logging.Log |
log
|
private java.lang.String |
mimeType
|
private RenderedImage |
renderedImage
|
private java.util.Date |
timeoutTime
|
private int |
type
|
private int |
width
|
| Fields inherited from interface de.laures.cewolf.ChartImage |
|---|
IMG_TYPE_CHART, IMG_TYPE_LEGEND |
| Constructor Summary | |
|---|---|
ChartImageDefinition(ChartHolder ch,
int width,
int height,
int type,
java.lang.String mimeType,
int timeout)
Constructor for ChartImage |
|
| Method Summary | |
|---|---|
private void |
ensureRendered()
|
protected void |
finalize()
|
byte[] |
getBytes()
Writes out a cached image to an outputstream. |
java.lang.Object |
getChart()
Returns a chart. |
java.lang.Object |
getDataset()
Returns the dataset produced when using this definition.The type of this object is dependant on the underlying chart implementation. |
int |
getHeight()
Returns the height. |
java.lang.String |
getMimeType()
Returns the mimeType. |
java.lang.Object |
getRenderingInfo()
|
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. |
private void |
onImageRendered(RenderedImage renderedImage)
Implemented onImageRendered method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.commons.logging.Log log
private final ChartHolder chartHolder
private final int height
private final int width
private final int type
private final java.lang.String mimeType
private final transient java.util.Date timeoutTime
private RenderedImage renderedImage
| Constructor Detail |
|---|
public ChartImageDefinition(ChartHolder ch,
int width,
int height,
int type,
java.lang.String mimeType,
int timeout)
| Method Detail |
|---|
public int getHeight()
getHeight in interface ChartImagepublic int getWidth()
getWidth in interface ChartImagepublic int getType()
ChartImage
getType in interface ChartImageChartImage.IMG_TYPE_CHART,
ChartImage.IMG_TYPE_LEGEND
public java.lang.Object getChart()
throws DatasetProduceException,
ChartValidationException,
PostProcessingException
ChartHolder
getChart in interface ChartHolderDatasetProduceException - if there could be no data produced for
the cahrt
PostProcessingException - if a post processor failed to
process the chart
ChartValidationException
public java.lang.Object getDataset()
throws DatasetProduceException
ChartHolder
getDataset in interface ChartHolderDatasetProduceException - if the dataset could not be producedpublic java.lang.String getMimeType()
getMimeType in interface ChartImage
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.ThrowableObject.finalize()
public java.lang.Object getRenderingInfo()
throws CewolfException
CewolfExceptionde.laures.cewolf.ChartImage#getRenderingInfo()
public byte[] getBytes()
throws CewolfException
ChartImage
getBytes in interface ChartImageCewolfException
private void ensureRendered()
throws CewolfException
CewolfException
public int getSize()
throws CewolfException
ChartImage
getSize in interface ChartImageCewolfException - if the size could not be determinedChartImage.getSize()public java.util.Date getTimeoutTime()
getTimeoutTime in interface ChartImageprivate void onImageRendered(RenderedImage renderedImage)
renderedImage - The imagede.laures.cewolf.ChartHolder#onImageRendered(de.laures.cewolf.util.RenderedImage).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||