Package | Description |
---|---|
org.jfree.chart |
Core classes, including
JFreeChart and
ChartPanel . |
org.jfree.chart.entity |
Classes representing components of (or entities in) a chart.
|
org.jfree.chart.labels |
Generators and other classes used for the display of item labels and tooltips.
|
org.jfree.chart.plot |
Plot classes and related interfaces.
|
org.jfree.chart.urls |
Classes for adding URLS to charts for HTML image map generation.
|
org.jfree.data.category |
A package containing the
CategoryDataset interface and related classes. |
org.jfree.data.general |
Data interfaces and classes.
|
org.jfree.data.jdbc |
Dataset classes that fetch data from a database via JDBC.
|
org.jfree.data.xml |
Support for reading datasets from XML files.
|
Modifier and Type | Method and Description |
---|---|
static JFreeChart |
ChartFactory.createPieChart(java.lang.String title,
PieDataset dataset)
Creates a pie chart with default settings.
|
static JFreeChart |
ChartFactory.createPieChart(java.lang.String title,
PieDataset dataset,
boolean legend,
boolean tooltips,
boolean urls)
Creates a pie chart with default settings.
|
static JFreeChart |
ChartFactory.createPieChart(java.lang.String title,
PieDataset dataset,
boolean legend,
boolean tooltips,
java.util.Locale locale)
Creates a pie chart with default settings.
|
static JFreeChart |
ChartFactory.createPieChart(java.lang.String title,
PieDataset dataset,
PieDataset previousDataset,
int percentDiffForMaxScale,
boolean greenForIncrease,
boolean legend,
boolean tooltips,
boolean urls,
boolean subTitle,
boolean showDifference)
Creates a pie chart with default settings that compares 2 datasets.
|
static JFreeChart |
ChartFactory.createPieChart(java.lang.String title,
PieDataset dataset,
PieDataset previousDataset,
int percentDiffForMaxScale,
boolean greenForIncrease,
boolean legend,
boolean tooltips,
java.util.Locale locale,
boolean subTitle,
boolean showDifference)
Creates a pie chart with default settings that compares 2 datasets.
|
static JFreeChart |
ChartFactory.createPieChart3D(java.lang.String title,
PieDataset dataset)
Creates a 3D pie chart using the specified dataset.
|
static JFreeChart |
ChartFactory.createPieChart3D(java.lang.String title,
PieDataset dataset,
boolean legend,
boolean tooltips,
boolean urls)
Creates a 3D pie chart using the specified dataset.
|
static JFreeChart |
ChartFactory.createPieChart3D(java.lang.String title,
PieDataset dataset,
boolean legend,
boolean tooltips,
java.util.Locale locale)
Creates a 3D pie chart using the specified dataset.
|
static JFreeChart |
ChartFactory.createRingChart(java.lang.String title,
PieDataset dataset,
boolean legend,
boolean tooltips,
boolean urls)
Creates a ring chart with default settings.
|
static JFreeChart |
ChartFactory.createRingChart(java.lang.String title,
PieDataset dataset,
boolean legend,
boolean tooltips,
java.util.Locale locale)
Creates a ring chart with default settings.
|
Modifier and Type | Method and Description |
---|---|
PieDataset |
PieSectionEntity.getDataset()
Returns the dataset this entity refers to.
|
Modifier and Type | Method and Description |
---|---|
void |
PieSectionEntity.setDataset(PieDataset dataset)
Sets the dataset this entity refers to.
|
Constructor and Description |
---|
PieSectionEntity(java.awt.Shape area,
PieDataset dataset,
int pieIndex,
int sectionIndex,
java.lang.Comparable sectionKey,
java.lang.String toolTipText,
java.lang.String urlText)
Creates a new pie section entity.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object[] |
AbstractPieItemLabelGenerator.createItemArray(PieDataset dataset,
java.lang.Comparable key)
Creates the array of items that can be passed to the
MessageFormat class for creating labels. |
java.text.AttributedString |
StandardPieSectionLabelGenerator.generateAttributedSectionLabel(PieDataset dataset,
java.lang.Comparable key)
Generates an attributed label for the specified series, or
null if no attributed label is available (in which case,
the string returned by
StandardPieSectionLabelGenerator.generateSectionLabel(PieDataset, Comparable) will
provide the fallback). |
java.text.AttributedString |
PieSectionLabelGenerator.generateAttributedSectionLabel(PieDataset dataset,
java.lang.Comparable key)
Generates an attributed label for the specified series, or
null if no attributed label is available (in which case,
the string returned by
PieSectionLabelGenerator.generateSectionLabel(PieDataset, Comparable) will
provide the fallback). |
java.lang.String |
StandardPieSectionLabelGenerator.generateSectionLabel(PieDataset dataset,
java.lang.Comparable key)
Generates a label for a pie section.
|
java.lang.String |
PieSectionLabelGenerator.generateSectionLabel(PieDataset dataset,
java.lang.Comparable key)
Generates a label for a pie section.
|
protected java.lang.String |
AbstractPieItemLabelGenerator.generateSectionLabel(PieDataset dataset,
java.lang.Comparable key)
Generates a label for a pie section.
|
java.lang.String |
StandardPieToolTipGenerator.generateToolTip(PieDataset dataset,
java.lang.Comparable key)
Generates a tool tip text item for one section in a pie chart.
|
java.lang.String |
PieToolTipGenerator.generateToolTip(PieDataset dataset,
java.lang.Comparable key)
Generates a tool tip text item for the specified item in the dataset.
|
Modifier and Type | Method and Description |
---|---|
PieDataset |
PiePlot.getDataset()
Returns the dataset.
|
Modifier and Type | Method and Description |
---|---|
void |
PiePlot.setDataset(PieDataset dataset)
Sets the dataset and sends a
DatasetChangeEvent to 'this'. |
Constructor and Description |
---|
PiePlot(PieDataset dataset)
Creates a plot that will draw a pie chart for the specified dataset.
|
PiePlot3D(PieDataset dataset)
Creates a pie chart with a three dimensional effect using the specified
dataset.
|
RingPlot(PieDataset dataset)
Creates a new plot for the specified dataset.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
StandardPieURLGenerator.generateURL(PieDataset dataset,
java.lang.Comparable key,
int pieIndex)
Generates a URL.
|
java.lang.String |
PieURLGenerator.generateURL(PieDataset dataset,
java.lang.Comparable key,
int pieIndex)
Generates a URL for one item in a
PieDataset . |
java.lang.String |
CustomPieURLGenerator.generateURL(PieDataset dataset,
java.lang.Comparable key,
int pieIndex)
Generates a URL fragment.
|
Modifier and Type | Class and Description |
---|---|
class |
CategoryToPieDataset
A
PieDataset implementation that obtains its data from one row or
column of a CategoryDataset . |
Modifier and Type | Interface and Description |
---|---|
interface |
KeyedValuesDataset
A dataset containing (key, value) data items.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultKeyedValuesDataset
A default implementation of the
KeyedValuesDataset interface. |
class |
DefaultPieDataset
A default implementation of the
PieDataset interface. |
Modifier and Type | Method and Description |
---|---|
static PieDataset |
DatasetUtilities.createConsolidatedPieDataset(PieDataset source,
java.lang.Comparable key,
double minimumPercent)
Creates a new pie dataset based on the supplied dataset, but modified
by aggregating all the low value items (those whose value is lower
than the
percentThreshold ) into a single item with the
key "Other". |
static PieDataset |
DatasetUtilities.createConsolidatedPieDataset(PieDataset source,
java.lang.Comparable key,
double minimumPercent,
int minItems)
Creates a new pie dataset based on the supplied dataset, but modified
by aggregating all the low value items (those whose value is lower
than the
percentThreshold ) into a single item. |
static PieDataset |
DatasetUtilities.createPieDatasetForColumn(CategoryDataset dataset,
java.lang.Comparable columnKey)
Creates a pie dataset from a table dataset by taking all the values
for a single column.
|
static PieDataset |
DatasetUtilities.createPieDatasetForColumn(CategoryDataset dataset,
int column)
Creates a pie dataset from a
CategoryDataset by taking all the
values for a single column. |
static PieDataset |
DatasetUtilities.createPieDatasetForRow(CategoryDataset dataset,
java.lang.Comparable rowKey)
Creates a pie dataset from a table dataset by taking all the values
for a single row.
|
static PieDataset |
DatasetUtilities.createPieDatasetForRow(CategoryDataset dataset,
int row)
Creates a pie dataset from a table dataset by taking all the values
for a single row.
|
Modifier and Type | Method and Description |
---|---|
static double |
DatasetUtilities.calculatePieDatasetTotal(PieDataset dataset)
Calculates the total of all the values in a
PieDataset . |
static PieDataset |
DatasetUtilities.createConsolidatedPieDataset(PieDataset source,
java.lang.Comparable key,
double minimumPercent)
Creates a new pie dataset based on the supplied dataset, but modified
by aggregating all the low value items (those whose value is lower
than the
percentThreshold ) into a single item with the
key "Other". |
static PieDataset |
DatasetUtilities.createConsolidatedPieDataset(PieDataset source,
java.lang.Comparable key,
double minimumPercent,
int minItems)
Creates a new pie dataset based on the supplied dataset, but modified
by aggregating all the low value items (those whose value is lower
than the
percentThreshold ) into a single item. |
static boolean |
DatasetUtilities.isEmptyOrNull(PieDataset dataset)
Returns
true if the dataset is empty (or null ),
and false otherwise. |
Modifier and Type | Class and Description |
---|---|
class |
JDBCPieDataset
A
PieDataset that reads data from a database via JDBC. |
Modifier and Type | Method and Description |
---|---|
PieDataset |
PieDatasetHandler.getDataset()
Returns the dataset.
|
static PieDataset |
DatasetReader.readPieDatasetFromXML(java.io.File file)
Reads a
PieDataset from an XML file. |
static PieDataset |
DatasetReader.readPieDatasetFromXML(java.io.InputStream in)
Reads a
PieDataset from a stream. |