Method |
Description |
addChangeListener(ChartChangeListener listener) |
This method registers an object for notification of changes to the chart. |
addLegend(LegendTitle legend) |
This method adds a legend to the plot and sends a ChartChangeEvent to all registered listeners. |
addSubtitle(Title subtitle) |
This method adds a chart subtitle, and notifies registered listeners that the chart has been modified. |
clearSubtitles( ) |
This method clears all subtitles from the chart and sends a ChartChangeEvent to all registered listeners. |
createBufferedImage(int width, int height) |
This method creates and returns a buffered image into which the chart has been drawn. |
draw(Graphics2D g2, Rectangle2D area) |
This method draws the chart on a Java 2D graphics device (Such as the screen or a printer). |
getBackgroundImage( ) |
This method returns the background image for the chart, or null if there is no image. |
getCategoryPlot( ) |
This method returns the plot cast as a CategoryPlot. |
getID( ) |
This method returns the ID for the chart. |
getLegend( ) |
This method returns the legend for the chart, if there is one. |
getPlot( ) |
This method returns the plot for the chart. |
getSubtitle(int index) |
This method returns a chart subtitle. |
getTitle( ) |
This method returns the main chart title. |
getXYPlot( ) |
This method returns the plot cast as a XYPlot. |
removeLegend( ) |
This method removes the first legend in the chart and sends a ChartChangeEvent to all registered listeners. |