|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ge.research.acuity.ui.renderers.JFreeRenderer
A GraphRenderer implementation for the JFreeChart 0.9.8 API and library
| Field Summary |
| Fields inherited from interface com.ge.research.acuity.ui.renderers.GraphRenderer |
bundle |
| Constructor Summary | |
JFreeRenderer()
|
|
| Method Summary | |
java.lang.String |
createChartImage(java.lang.Object chart,
int width,
int height)
Takes a 3rd party graphing library chart object, and size dimensions, and passes to a graphing servlet to create an image of the chart, and store in the session |
int |
getChartImageHeightOffset()
Returns the pixel offset of the chart image height, produced by the renderer. |
int |
getChartImageWidthOffset()
Returns the pixel offset of the chart image width, produced by the renderer. |
java.lang.String |
getImageMap(java.lang.Object chart,
java.lang.String identifier)
Takes a 3rd party graphing library chart object, and its image identifier and retrieves/creates any image map information for the chart. |
java.lang.String |
getRenderServlet()
Returns the graphing server servlet context path, so that the chart can be rendered within an HTML session and available to a browser. |
java.lang.Object |
render(GraphPO po)
Converts a GraphPO presentation object into a 3rd party graphing library chart object |
java.lang.Object |
render(PresentationObject po)
Converts a PresentationObject into a media displayable representation |
protected void |
setupAxes(org.jfree.chart.plot.CategoryPlot plot,
GraphPO po,
boolean xAsCategory)
Sets up the axes properties of the chart (x/y axis titles, rotation, labels, etc.) |
protected void |
setupAxes(org.jfree.chart.plot.XYPlot plot,
GraphPO po)
Sets up the axes properties of the chart (x/y axis titles, rotation, labels, etc.) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JFreeRenderer()
| Method Detail |
public java.lang.String createChartImage(java.lang.Object chart,
int width,
int height)
GraphRenderer
createChartImage in interface GraphRendererchart - the 3rd party graphing library chart objectwidth - the width of the chart imageheight - the height of the chart image
public final int getChartImageHeightOffset()
GraphRenderer
getChartImageHeightOffset in interface GraphRendererpublic final int getChartImageWidthOffset()
GraphRenderer
getChartImageWidthOffset in interface GraphRenderer
public java.lang.String getImageMap(java.lang.Object chart,
java.lang.String identifier)
GraphRenderer
getImageMap in interface GraphRendererchart - the 3rd party graphing library chart objectidentifier - the identifier of the chart image in the session,
to get the image map information for
identifierpublic final java.lang.String getRenderServlet()
GraphRenderer
getRenderServlet in interface GraphRendererpublic java.lang.Object render(GraphPO po)
GraphRenderer
render in interface GraphRendererpo - the graph presentation object to convert into 3rd party library object
public final java.lang.Object render(PresentationObject po)
Renderer
render in interface Rendererpo - the presentation object to convert
protected void setupAxes(org.jfree.chart.plot.XYPlot plot,
GraphPO po)
plot - the graph chart plot being createdpo - the graph presentation object being converted
protected void setupAxes(org.jfree.chart.plot.CategoryPlot plot,
GraphPO po,
boolean xAsCategory)
plot - the graph chart plot being createdpo - the graph presentation object being converted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||