Java org.jfree.chart JFreeChart fields, constructors, methods, implement or subclass

Example usage for Java org.jfree.chart JFreeChart fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.jfree.chart JFreeChart.

The text is from its open source code.

Subclass

org.jfree.chart.JFreeChart has subclasses.
Click this link to see all its subclasses.

Field

ProjectInfoINFO
Information about the project.
FontDEFAULT_TITLE_FONT
The default font for titles.
PaintDEFAULT_BACKGROUND_PAINT
The default background color.
RenderingHints.KeyKEY_SUPPRESS_SHADOW_GENERATION
The key for a rendering hint that can suppress the generation of a shadow effect when drawing the chart.

Constructor

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.

Method

voidaddChangeListener(ChartChangeListener listener)
Registers an object for notification of changes to the chart.
voidaddLegend(LegendTitle legend)
Adds a legend to the plot and sends a ChartChangeEvent to all registered listeners.
voidaddProgressListener(ChartProgressListener listener)
Registers an object for notification of progress events relating to the chart.
voidaddSubtitle(Title subtitle)
Adds a chart subtitle, and notifies registered listeners that the chart has been modified.
voidaddSubtitle(int index, Title subtitle)
Adds a subtitle at a particular position in the subtitle list, and sends a ChartChangeEvent to all registered listeners.
voidclearSubtitles()
Clears all subtitles from the chart and sends a ChartChangeEvent to all registered listeners.
Objectclone()
Clones the object, and takes care of listeners.
BufferedImagecreateBufferedImage(int width, int height)
Creates and returns a buffered image into which the chart has been drawn.
BufferedImagecreateBufferedImage(int imageWidth, int imageHeight, double drawWidth, double drawHeight, ChartRenderingInfo info)
Creates and returns a buffered image into which the chart has been drawn.
BufferedImagecreateBufferedImage(int width, int height, ChartRenderingInfo info)
Creates and returns a buffered image into which the chart has been drawn.
BufferedImagecreateBufferedImage(int width, int height, int imageType, ChartRenderingInfo info)
Creates and returns a buffered image into which the chart has been drawn.
voiddraw(Graphics2D g2, Rectangle2D area)
Draws the chart on a Java 2D graphics device (such as the screen or a printer).
voiddraw(Graphics2D g2, Rectangle2D area, ChartRenderingInfo info)
Draws the chart on a Java 2D graphics device (such as the screen or a printer).
voiddraw(Graphics2D g2, Rectangle2D chartArea, Point2D anchor, ChartRenderingInfo info)
Draws the chart on a Java 2D graphics device (such as the screen or a printer).
voidfireChartChanged()
Sends a default ChartChangeEvent to all registered listeners.
booleangetAntiAlias()
Returns a flag that indicates whether or not anti-aliasing is used when the chart is drawn.
PaintgetBackgroundPaint()
Returns the paint used for the chart background.
CategoryPlotgetCategoryPlot()
Returns the plot cast as a CategoryPlot .
LegendTitlegetLegend()
Returns the legend for the chart, if there is one.
LegendTitlegetLegend(int index)
Returns the nth legend for a chart, or null.
PlotgetPlot()
Returns the plot for the chart.
RenderingHintsgetRenderingHints()
Returns the collection of rendering hints for the chart.
TitlegetSubtitle(int index)
Returns a chart subtitle.
intgetSubtitleCount()
Returns the number of titles for the chart.
ListgetSubtitles()
Returns the list of subtitles for the chart.
TextTitlegetTitle()
Returns the main chart title.
XYPlotgetXYPlot()
Returns the plot cast as an XYPlot .
voidplotChanged(PlotChangeEvent event)
Receives notification that the plot has changed, and passes this on to registered listeners.
voidremoveChangeListener(ChartChangeListener listener)
Deregisters an object for notification of changes to the chart.
voidremoveLegend()
Removes the first legend in the chart and sends a ChartChangeEvent to all registered listeners.
voidremoveSubtitle(Title title)
Removes the specified subtitle and sends a ChartChangeEvent to all registered listeners.
voidsetAntiAlias(boolean flag)
Sets a flag that indicates whether or not anti-aliasing is used when the chart is drawn.
voidsetBackgroundImage(Image image)
Sets the background image for the chart and sends a ChartChangeEvent to all registered listeners.
voidsetBackgroundImageAlignment(int alignment)
Sets the background alignment.
voidsetBackgroundImageAlpha(float alpha)
Sets the alpha-transparency for the chart's background image.
voidsetBackgroundPaint(Paint paint)
Sets the paint used to fill the chart background and sends a ChartChangeEvent to all registered listeners.
voidsetBorderPaint(Paint paint)
Sets the paint used to draw the chart border (if visible).
voidsetBorderStroke(Stroke stroke)
Sets the stroke used to draw the chart border (if visible).
voidsetBorderVisible(boolean visible)
Sets a flag that controls whether or not a border is drawn around the outside of the chart.
voidsetNotify(boolean notify)
Sets a flag that controls whether or not listeners receive ChartChangeEvent notifications.
voidsetPadding(RectangleInsets padding)
Sets the padding between the chart border and the chart drawing area, and sends a ChartChangeEvent to all registered listeners.
voidsetRenderingHints(RenderingHints renderingHints)
Sets the rendering hints for the chart.
voidsetSubtitles(List subtitles)
Sets the title list for the chart (completely replaces any existing titles) and sends a ChartChangeEvent to all registered listeners.
voidsetTextAntiAlias(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.
voidsetTextAntiAlias(Object val)
Sets the value in the rendering hints table for RenderingHints#KEY_TEXT_ANTIALIASING and sends a ChartChangeEvent to all registered listeners.
voidsetTitle(TextTitle title)
Sets the main title for the chart and sends a ChartChangeEvent to all registered listeners.
voidsetTitle(String text)
Sets the chart title and sends a ChartChangeEvent to all registered listeners.
StringtoString()
Returns a string representation of the object.