|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.laures.cewolf.taglib.ChartImageDefinition
public class ChartImageDefinition
Serializable implementaton of a ChartImage.
ChartImage
,
Serialized FormField Summary |
---|
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 | |
---|---|
byte[] |
getBytes()
Writes out a cached image to an outputstream. |
org.jfree.chart.JFreeChart |
getChart()
Returns a chart. |
org.jfree.data.general.Dataset |
getDataset()
Returns the dataset produced when using this definition. |
int |
getHeight()
Returns the height. |
java.lang.String |
getMimeType()
Returns the mimeType. |
org.jfree.chart.ChartRenderingInfo |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 ChartImage
public int getWidth()
getWidth
in interface ChartImage
public int getType()
ChartImage
getType
in interface ChartImage
ChartImage.IMG_TYPE_CHART
,
ChartImage.IMG_TYPE_LEGEND
public org.jfree.chart.JFreeChart getChart() throws DatasetProduceException, ChartValidationException, PostProcessingException
ChartHolder
getChart
in interface ChartHolder
DatasetProduceException
- if there could be no data produced for the cahrt
PostProcessingException
- if a post processor failed to process the chart
ChartValidationException
public org.jfree.data.general.Dataset getDataset() throws DatasetProduceException
ChartHolder
getDataset
in interface ChartHolder
DatasetProduceException
- if the dataset could not be producedpublic java.lang.String getMimeType()
getMimeType
in interface ChartImage
public org.jfree.chart.ChartRenderingInfo getRenderingInfo() throws CewolfException
CewolfException
public byte[] getBytes() throws CewolfException
ChartImage
getBytes
in interface ChartImage
CewolfException
public int getSize() throws CewolfException
ChartImage
getSize
in interface ChartImage
CewolfException
- if the size could not be determinedChartImage.getSize()
public java.util.Date getTimeoutTime()
getTimeoutTime
in interface ChartImage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |