Example usage for Java org.jfree.chart JFreeChart fields, constructors, methods, implement or subclass
The text is from its open source code.
ProjectInfo | INFO Information about the project. |
Font | DEFAULT_TITLE_FONT The default font for titles. |
Paint | DEFAULT_BACKGROUND_PAINT The default background color. |
RenderingHints.Key | KEY_SUPPRESS_SHADOW_GENERATION The key for a rendering hint that can suppress the generation of a shadow effect when drawing the chart. |
JFreeChart(String title, Plot plot) Creates a new chart with the given title and plot. | |
JFreeChart(String title, Font titleFont, Plot plot, boolean createLegend) Creates a new chart with the given title and plot. | |
JFreeChart(Plot plot) Creates a new chart based on the supplied plot. |
void | addChangeListener(ChartChangeListener listener) Registers an object for notification of changes to the chart. |
void | addLegend(LegendTitle legend) Adds a legend to the plot and sends a ChartChangeEvent to all registered listeners. |
void | addProgressListener(ChartProgressListener listener) Registers an object for notification of progress events relating to the chart. |
void | addSubtitle(Title subtitle) Adds a chart subtitle, and notifies registered listeners that the chart has been modified. |
void | addSubtitle(int index, Title subtitle) Adds a subtitle at a particular position in the subtitle list, and sends a ChartChangeEvent to all registered listeners. |
void | clearSubtitles() Clears all subtitles from the chart and sends a ChartChangeEvent to all registered listeners. |
Object | clone() Clones the object, and takes care of listeners. |
BufferedImage | createBufferedImage(int width, int height) Creates and returns a buffered image into which the chart has been drawn. |
BufferedImage | createBufferedImage(int imageWidth, int imageHeight, double drawWidth, double drawHeight, ChartRenderingInfo info) Creates and returns a buffered image into which the chart has been drawn. |
BufferedImage | createBufferedImage(int width, int height, ChartRenderingInfo info) Creates and returns a buffered image into which the chart has been drawn. |
BufferedImage | createBufferedImage(int width, int height, int imageType, ChartRenderingInfo info) Creates and returns a buffered image into which the chart has been drawn. |
void | draw(Graphics2D g2, Rectangle2D area) Draws the chart on a Java 2D graphics device (such as the screen or a printer). |
void | draw(Graphics2D g2, Rectangle2D area, ChartRenderingInfo info) Draws the chart on a Java 2D graphics device (such as the screen or a printer). |
void | draw(Graphics2D g2, Rectangle2D chartArea, Point2D anchor, ChartRenderingInfo info) Draws the chart on a Java 2D graphics device (such as the screen or a printer). |
void | fireChartChanged() Sends a default ChartChangeEvent to all registered listeners. |
boolean | getAntiAlias() Returns a flag that indicates whether or not anti-aliasing is used when the chart is drawn. |
Paint | getBackgroundPaint() Returns the paint used for the chart background. |
CategoryPlot | getCategoryPlot() Returns the plot cast as a CategoryPlot . |
LegendTitle | getLegend() Returns the legend for the chart, if there is one. |
LegendTitle | getLegend(int index) Returns the nth legend for a chart, or null . |
Plot | getPlot() Returns the plot for the chart. |
RenderingHints | getRenderingHints() Returns the collection of rendering hints for the chart. |
Title | getSubtitle(int index) Returns a chart subtitle. |
int | getSubtitleCount() Returns the number of titles for the chart. |
List | getSubtitles() Returns the list of subtitles for the chart. |
TextTitle | getTitle() Returns the main chart title. |
XYPlot | getXYPlot() Returns the plot cast as an XYPlot . |
void | plotChanged(PlotChangeEvent event) Receives notification that the plot has changed, and passes this on to registered listeners. |
void | removeChangeListener(ChartChangeListener listener) Deregisters an object for notification of changes to the chart. |
void | removeLegend() Removes the first legend in the chart and sends a ChartChangeEvent to all registered listeners. |
void | removeSubtitle(Title title) Removes the specified subtitle and sends a ChartChangeEvent to all registered listeners. |
void | setAntiAlias(boolean flag) Sets a flag that indicates whether or not anti-aliasing is used when the chart is drawn. |
void | setBackgroundImage(Image image) Sets the background image for the chart and sends a ChartChangeEvent to all registered listeners. |
void | setBackgroundImageAlignment(int alignment) Sets the background alignment. |
void | setBackgroundImageAlpha(float alpha) Sets the alpha-transparency for the chart's background image. |
void | setBackgroundPaint(Paint paint) Sets the paint used to fill the chart background and sends a ChartChangeEvent to all registered listeners. |
void | setBorderPaint(Paint paint) Sets the paint used to draw the chart border (if visible). |
void | setBorderStroke(Stroke stroke) Sets the stroke used to draw the chart border (if visible). |
void | setBorderVisible(boolean visible) Sets a flag that controls whether or not a border is drawn around the outside of the chart. |
void | setNotify(boolean notify) Sets a flag that controls whether or not listeners receive ChartChangeEvent notifications. |
void | setPadding(RectangleInsets padding) Sets the padding between the chart border and the chart drawing area, and sends a ChartChangeEvent to all registered listeners. |
void | setRenderingHints(RenderingHints renderingHints) Sets the rendering hints for the chart. |
void | setSubtitles(List subtitles) Sets the title list for the chart (completely replaces any existing titles) and sends a ChartChangeEvent to all registered listeners. |
void | setTextAntiAlias(boolean flag) Sets the value in the rendering hints table for RenderingHints#KEY_TEXT_ANTIALIASING to either RenderingHints#VALUE_TEXT_ANTIALIAS_ON or RenderingHints#VALUE_TEXT_ANTIALIAS_OFF , then sends a ChartChangeEvent to all registered listeners. |
void | setTextAntiAlias(Object val) Sets the value in the rendering hints table for RenderingHints#KEY_TEXT_ANTIALIASING and sends a ChartChangeEvent to all registered listeners. |
void | setTitle(TextTitle title) Sets the main title for the chart and sends a ChartChangeEvent to all registered listeners. |
void | setTitle(String text) Sets the chart title and sends a ChartChangeEvent to all registered listeners. |
String | toString() Returns a string representation of the object. |