| java.lang.Object org.krysalis.jcharts.Chart
All known Subclasses: org.krysalis.jcharts.nonAxisChart.PieChart2D, org.krysalis.jcharts.axisChart.AxisChart, org.krysalis.jcharts.nonAxisChart.RadarChart, org.krysalis.jcharts.nonAxisChart.PieChart3D,
Chart | abstract public class Chart implements Serializable(Code) | | Base class of all charts.
author: Nathaniel Auvil, Sandor Dornbush version: $Id: Chart.java,v 1.3 2003/06/21 19:44:35 nathaniel_auvil Exp $ |
Chart | public Chart(LegendProperties legendProperties, ChartProperties chartProperties, int pixelWidth, int pixelHeight)(Code) | | Constructor
Parameters: legendProperties - Parameters: chartProperties - Parameters: pixelWidth - Parameters: pixelHeight - |
getBufferedImage | public BufferedImage getBufferedImage()(Code) | | Returns the BufferedImage used to generate the ImageMap. Only should be called on
binary format images, such as PNG and JPG, as it will not work on SVG.
This is a HACK and the design of jCharts should do better than this!!!!!!
BufferedImage |
getChartProperties | final public ChartProperties getChartProperties()(Code) | | Returns the general properties Object.
ChartProperties |
getGenerateImageMapFlag | public boolean getGenerateImageMapFlag()(Code) | | Returns flag indicating whether to generate an ImageMap
boolean |
getGraphics2D | final public Graphics2D getGraphics2D()(Code) | | Shortcut method to get Graphics2D. Be aware that the call BufferedImage.getGraphics()
and BufferedImage.createGraphics(), actually create a new Grpahics2D Object on each
invocation. This returns the member reference so calls to this are not creating a new
Object each time.
Graphics2D |
getImageHeight | final public int getImageHeight()(Code) | | Returns the BufferedImage height
int |
getImageWidth | final public int getImageWidth()(Code) | | Returns the BufferedImage width
int |
getLegend | final protected Legend getLegend()(Code) | | Returns the Legend. Will be NULL if no Legend is desired.
Legend |
hasLegend | final public boolean hasLegend()(Code) | | Returns flag indicating if there is a Legend.
boolean |
renderChartTitle | protected float renderChartTitle(String chartTitle, FontRenderContext fontRenderContext)(Code) | | Displays the chart title and returns the height of the title PLUS title padding.
Parameters: chartTitle - Parameters: fontRenderContext - float the height required by the title. If no title is displayed, zero is returned. |
setGraphics2D | final public void setGraphics2D(Graphics2D graphics2D)(Code) | | Sets the graphics object to render the chart on by the encoder.
Parameters: graphics2D - |
setImageMap | final public void setImageMap(ImageMap imageMap)(Code) | | To optimze performance of the ImageMap Object, we create it once we know how many data
elements are in the chart which is dependent on the AxisChart or PieChart2D
Parameters: imageMap - |
toHTML | public void toHTML(HTMLGenerator htmlGenerator, String imageFileName, ImageMap imageMap)(Code) | | Enables the testing routines to display the contents of this Object.
Parameters: htmlGenerator - Parameters: imageFileName - Parameters: imageMap - if this is NULL we are not creating image map data in html |
|
|