|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Chart represents some form of a result generated by a chart
factory. The result is encoded with a MIME type returned by getContentType(). The content itself may be read with putContent(java.io.OutputStream). Finally, if the result involves any AnnotatedShape objects, they can be access with getAnnotatedShapes() method.
getAnnotatedShapes(),
getContentType(),
putContent(java.io.OutputStream),
ChartAttributes,
ChartData,
ChartFactory| Method Summary | |
java.util.List |
getAnnotatedShapes()
Returns the current list of recorded annotated shapes. |
java.lang.String |
getContentType()
Gets the chart content encoding MIME type. |
float |
getHeight()
Gets chart height in pixels. |
java.lang.Number |
getResolution()
Gets chart raster image pixels-per-millimeter resolution. |
float |
getWidth()
Gets chart width in pixels. |
void |
putContent(java.io.OutputStream stream)
Puts the chart content into given stream. |
| Method Detail |
public java.util.List getAnnotatedShapes()
AnnotatedShape
objects, with the annotation information as label, and the
corresponding shape as assosiated object.
The list elements are arranged in last-in-first-out (LIFO) order, so that shapes drawn last are encountered first when traversing the list from beginning to end.
The returned list object refers directly to the list object this
Chart uses to store the recorded shapes. Any
modifications to the list will therefore affect this
Chart instance, too.
public java.lang.String getContentType()
putContent(java.io.OutputStream)public float getHeight()
getWidth(),
getResolution(),
AbstractChart.getHeightInMillimeters()public java.lang.Number getResolution()
resolution = getResolution().floatValue(); widthInMillimeters = getWidth() / resolution; heightInMillimeters = getHeight() / resolution;
For other than raster bitmap charts, the resolution value is irrelevant.
getHeight(),
getWidth(),
ChartAttributes.getResolution()public float getWidth()
getHeight(),
getResolution(),
AbstractChart.getWidthInMillimeters()
public void putContent(java.io.OutputStream stream)
throws java.io.IOException
stream - stream to write chart content into
java.io.IOException - if an I/O error occursgetContentType()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||