Modifier and Type | Method and Description |
---|---|
static JFreeChart |
ChartFactory.createScatterPlot(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
XYDataset dataset)
Creates a scatter plot with default settings.
|
static JFreeChart |
ChartFactory.createScatterPlot(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
XYDataset dataset,
PlotOrientation orientation,
boolean legend,
boolean tooltips,
boolean urls)
Creates a scatter plot with default settings.
|
static JFreeChart |
ChartFactory.createXYLineChart(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
XYDataset dataset)
Creates a line chart (based on an
XYDataset ) with default
settings. |
static JFreeChart |
ChartFactory.createXYLineChart(java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
XYDataset dataset,
PlotOrientation orientation,
boolean legend,
boolean tooltips,
boolean urls)
Creates a line chart (based on an
XYDataset ) with default
settings. |
Modifier and Type | Method and Description |
---|---|
XYDataset |
XYItemEntity.getDataset()
Returns the dataset this entity refers to.
|
Modifier and Type | Method and Description |
---|---|
void |
XYItemEntity.setDataset(XYDataset dataset)
Sets the dataset this entity refers to.
|
Constructor and Description |
---|
XYItemEntity(java.awt.Shape area,
XYDataset dataset,
int series,
int item,
java.lang.String toolTipText,
java.lang.String urlText)
Creates a new entity.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object[] |
StandardXYSeriesLabelGenerator.createItemArray(XYDataset dataset,
int series)
Creates the array of items that can be passed to the
MessageFormat class for creating labels. |
protected java.lang.Object[] |
AbstractXYItemLabelGenerator.createItemArray(XYDataset dataset,
int series,
int item)
Creates the array of items that can be passed to the
MessageFormat class for creating labels. |
java.lang.String |
XYSeriesLabelGenerator.generateLabel(XYDataset dataset,
int series)
Generates a label for the specified series.
|
java.lang.String |
StandardXYSeriesLabelGenerator.generateLabel(XYDataset dataset,
int series)
Generates a label for the specified series.
|
java.lang.String |
XYItemLabelGenerator.generateLabel(XYDataset dataset,
int series,
int item)
Generates a label for the specified item.
|
java.lang.String |
AbstractXYItemLabelGenerator.generateLabelString(XYDataset dataset,
int series,
int item)
Generates a label string for an item in the dataset.
|
java.lang.String |
StandardXYToolTipGenerator.generateToolTip(XYDataset dataset,
int series,
int item)
Generates the tool tip text for an item in a dataset.
|
java.lang.String |
XYToolTipGenerator.generateToolTip(XYDataset dataset,
int series,
int item)
Generates the tooltip text for the specified item.
|
Modifier and Type | Method and Description |
---|---|
XYDataset |
XYPlot.getDataset()
Returns the primary dataset for the plot.
|
XYDataset |
XYPlot.getDataset(int index)
Returns the dataset with the specified index, or
null if there
is no dataset with that index. |
Modifier and Type | Method and Description |
---|---|
XYItemRenderer |
XYPlot.getRendererForDataset(XYDataset dataset)
Returns the renderer for the specified dataset (this is either the
renderer with the same index as the dataset or, if there isn't a
renderer with the same index, the default renderer).
|
int |
XYPlot.indexOf(XYDataset dataset)
Returns the index of the specified dataset, or
-1 if the
dataset does not belong to the plot. |
void |
XYPlot.setDataset(int index,
XYDataset dataset)
Sets a dataset for the plot and sends a change event to all registered
listeners.
|
void |
XYPlot.setDataset(XYDataset dataset)
Sets the primary dataset for the plot, replacing the existing dataset if
there is one.
|
Constructor and Description |
---|
XYPlot(XYDataset dataset,
ValueAxis domainAxis,
ValueAxis rangeAxis,
XYItemRenderer renderer)
Creates a new plot with the specified dataset, axes and renderer.
|
Modifier and Type | Method and Description |
---|---|
static int[] |
RendererUtilities.findLiveItems(XYDataset dataset,
int series,
double xLow,
double xHigh)
Finds a range of item indices that is guaranteed to contain all the
x-values from x0 to x1 (inclusive).
|
static int |
RendererUtilities.findLiveItemsLowerBound(XYDataset dataset,
int series,
double xLow,
double xHigh)
Finds the lower index of the range of live items in the specified data
series.
|
static int |
RendererUtilities.findLiveItemsUpperBound(XYDataset dataset,
int series,
double xLow,
double xHigh)
Finds the upper index of the range of live items in the specified data
series.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractXYItemRenderer.addEntity(EntityCollection entities,
java.awt.Shape area,
XYDataset dataset,
int series,
int item,
double entityX,
double entityY)
Adds an entity to the collection.
|
void |
XYItemRenderer.drawItem(java.awt.Graphics2D g2,
XYItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
PlotRenderingInfo info,
XYPlot plot,
ValueAxis domainAxis,
ValueAxis rangeAxis,
XYDataset dataset,
int series,
int item,
CrosshairState crosshairState,
int pass)
Called for each item to be plotted.
|
void |
XYLineAndShapeRenderer.drawItem(java.awt.Graphics2D g2,
XYItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
PlotRenderingInfo info,
XYPlot plot,
ValueAxis domainAxis,
ValueAxis rangeAxis,
XYDataset dataset,
int series,
int item,
CrosshairState crosshairState,
int pass)
Draws the visual representation of a single data item.
|
void |
XYBlockRenderer.drawItem(java.awt.Graphics2D g2,
XYItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
PlotRenderingInfo info,
XYPlot plot,
ValueAxis domainAxis,
ValueAxis rangeAxis,
XYDataset dataset,
int series,
int item,
CrosshairState crosshairState,
int pass)
Draws the block representing the specified item.
|
void |
StandardXYItemRenderer.drawItem(java.awt.Graphics2D g2,
XYItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
PlotRenderingInfo info,
XYPlot plot,
ValueAxis domainAxis,
ValueAxis rangeAxis,
XYDataset dataset,
int series,
int item,
CrosshairState crosshairState,
int pass)
Draws the visual representation of a single data item.
|
protected void |
AbstractXYItemRenderer.drawItemLabel(java.awt.Graphics2D g2,
PlotOrientation orientation,
XYDataset dataset,
int series,
int item,
double x,
double y,
boolean negative)
Draws an item label.
|
protected void |
XYLineAndShapeRenderer.drawPrimaryLine(XYItemRendererState state,
java.awt.Graphics2D g2,
XYPlot plot,
XYDataset dataset,
int pass,
int series,
int item,
ValueAxis domainAxis,
ValueAxis rangeAxis,
java.awt.geom.Rectangle2D dataArea)
Draws the item (first pass).
|
protected void |
XYLineAndShapeRenderer.drawPrimaryLineAsPath(XYItemRendererState state,
java.awt.Graphics2D g2,
XYPlot plot,
XYDataset dataset,
int pass,
int series,
int item,
ValueAxis domainAxis,
ValueAxis rangeAxis,
java.awt.geom.Rectangle2D dataArea)
Draws the item (first pass).
|
protected void |
XYLineAndShapeRenderer.drawSecondaryPass(java.awt.Graphics2D g2,
XYPlot plot,
XYDataset dataset,
int pass,
int series,
int item,
ValueAxis domainAxis,
java.awt.geom.Rectangle2D dataArea,
ValueAxis rangeAxis,
CrosshairState crosshairState,
EntityCollection entities)
Draws the item shapes and adds chart entities (second pass).
|
void |
XYItemRendererState.endSeriesPass(XYDataset dataset,
int series,
int firstItem,
int lastItem,
int pass,
int passCount)
This method is called by the
XYPlot when it ends a pass
through the (visible) items in a series. |
Range |
XYItemRenderer.findDomainBounds(XYDataset dataset)
Returns the lower and upper bounds (range) of the x-values in the
specified dataset.
|
Range |
AbstractXYItemRenderer.findDomainBounds(XYDataset dataset)
Returns the lower and upper bounds (range) of the x-values in the
specified dataset.
|
Range |
XYBlockRenderer.findDomainBounds(XYDataset dataset)
Returns the lower and upper bounds (range) of the x-values in the
specified dataset.
|
protected Range |
AbstractXYItemRenderer.findDomainBounds(XYDataset dataset,
boolean includeInterval)
Returns the lower and upper bounds (range) of the x-values in the
specified dataset.
|
Range |
XYItemRenderer.findRangeBounds(XYDataset dataset)
Returns the lower and upper bounds (range) of the y-values in the
specified dataset.
|
Range |
AbstractXYItemRenderer.findRangeBounds(XYDataset dataset)
Returns the range of values the renderer requires to display all the
items from the specified dataset.
|
Range |
XYBlockRenderer.findRangeBounds(XYDataset dataset)
Returns the range of values the renderer requires to display all the
items from the specified dataset.
|
protected Range |
AbstractXYItemRenderer.findRangeBounds(XYDataset dataset,
boolean includeInterval)
Returns the range of values the renderer requires to display all the
items from the specified dataset.
|
XYItemRendererState |
XYItemRenderer.initialise(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
XYPlot plot,
XYDataset dataset,
PlotRenderingInfo info)
Initialises the renderer then returns the number of 'passes' through the
data that the renderer will require (usually just one).
|
XYItemRendererState |
XYLineAndShapeRenderer.initialise(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
XYPlot plot,
XYDataset data,
PlotRenderingInfo info)
Initialises the renderer.
|
XYItemRendererState |
AbstractXYItemRenderer.initialise(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
XYPlot plot,
XYDataset data,
PlotRenderingInfo info)
Initialises the renderer and returns a state object that should be
passed to all subsequent calls to the drawItem() method.
|
XYItemRendererState |
StandardXYItemRenderer.initialise(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
XYPlot plot,
XYDataset data,
PlotRenderingInfo info)
Initialises the renderer.
|
void |
XYLineAndShapeRenderer.State.startSeriesPass(XYDataset dataset,
int series,
int firstItem,
int lastItem,
int pass,
int passCount)
This method is called by the
XYPlot at the start of each
series pass. |
void |
XYItemRendererState.startSeriesPass(XYDataset dataset,
int series,
int firstItem,
int lastItem,
int pass,
int passCount)
This method is called by the
XYPlot when it starts a pass
through the (visible) items in a series. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
XYURLGenerator.generateURL(XYDataset dataset,
int series,
int item)
Generates a URL for a particular item within a series.
|
java.lang.String |
StandardXYURLGenerator.generateURL(XYDataset dataset,
int series,
int item)
Generates a URL for a particular item within a series.
|
Modifier and Type | Method and Description |
---|---|
static XYDataset |
DatasetUtilities.sampleFunction2D(Function2D f,
double start,
double end,
int samples,
java.lang.Comparable seriesKey)
Creates an
XYDataset by sampling the specified function over a
fixed range. |
Modifier and Type | Method and Description |
---|---|
static Range |
DatasetUtilities.findDomainBounds(XYDataset dataset)
Returns the range of values in the domain (x-values) of a dataset.
|
static Range |
DatasetUtilities.findDomainBounds(XYDataset dataset,
boolean includeInterval)
Returns the range of values in the domain (x-values) of a dataset.
|
static Range |
DatasetUtilities.findDomainBounds(XYDataset dataset,
java.util.List visibleSeriesKeys,
boolean includeInterval)
Returns the bounds of the x-values in the specified
dataset
taking into account only the visible series and including any x-interval
if requested. |
static int[] |
DatasetUtilities.findItemIndicesForX(XYDataset dataset,
int series,
double x)
Finds the indices of the the items in the dataset that span the
specified x-value.
|
static java.lang.Number |
DatasetUtilities.findMaximumDomainValue(XYDataset dataset)
Returns the maximum domain value for the specified dataset.
|
static java.lang.Number |
DatasetUtilities.findMaximumRangeValue(XYDataset dataset)
Returns the maximum range value for the specified dataset.
|
static java.lang.Number |
DatasetUtilities.findMinimumDomainValue(XYDataset dataset)
Finds the minimum domain (or X) value for the specified dataset.
|
static java.lang.Number |
DatasetUtilities.findMinimumRangeValue(XYDataset dataset)
Returns the minimum range value for the specified dataset.
|
static Range |
DatasetUtilities.findRangeBounds(XYDataset dataset)
Returns the range of values in the range for the dataset.
|
static Range |
DatasetUtilities.findRangeBounds(XYDataset dataset,
boolean includeInterval)
Returns the range of values in the range for the dataset.
|
static Range |
DatasetUtilities.findRangeBounds(XYDataset dataset,
java.util.List visibleSeriesKeys,
Range xRange,
boolean includeInterval)
Finds the bounds of the y-values in the specified dataset, including
only those series that are listed in visibleSeriesKeys, and those items
whose x-values fall within the specified range.
|
static double |
DatasetUtilities.findYValue(XYDataset dataset,
int series,
double x)
Returns the interpolated value of y that corresponds to the specified
x-value in the given series.
|
static boolean |
DatasetUtilities.isEmptyOrNull(XYDataset dataset)
Returns
true if the dataset is empty (or null ),
and false otherwise. |
static Range |
DatasetUtilities.iterateDomainBounds(XYDataset dataset)
Iterates over the items in an
XYDataset to find
the range of x-values. |
static Range |
DatasetUtilities.iterateDomainBounds(XYDataset dataset,
boolean includeInterval)
Iterates over the items in an
XYDataset to find
the range of x-values. |
static Range |
DatasetUtilities.iterateRangeBounds(XYDataset dataset)
Iterates over the data item of the xy dataset to find
the range bounds.
|
static Range |
DatasetUtilities.iterateRangeBounds(XYDataset dataset,
boolean includeInterval)
Iterates over the data items of the xy dataset to find
the range bounds.
|
static Range |
DatasetUtilities.iterateToFindDomainBounds(XYDataset dataset,
java.util.List visibleSeriesKeys,
boolean includeInterval)
Returns the range of x-values in the specified dataset for the
data items belonging to the visible series.
|
static Range |
DatasetUtilities.iterateToFindRangeBounds(XYDataset dataset,
java.util.List visibleSeriesKeys,
Range xRange,
boolean includeInterval)
Returns the range of y-values in the specified dataset for the
data items belonging to the visible series and with x-values in the
given range.
|
static Range |
DatasetUtilities.iterateXYRangeBounds(XYDataset dataset)
Deprecated.
As of 1.0.10, use
DatasetUtilities.iterateRangeBounds(XYDataset) . |
Modifier and Type | Interface and Description |
---|---|
interface |
IntervalXYDataset
An extension of the
XYDataset interface that allows an x-interval
and a y-interval to be defined. |
interface |
IntervalXYZDataset
An extension of the
XYZDataset interface that allows a range of data
to be defined for any of the X values, the Y values, and the Z values. |
interface |
OHLCDataset
An interface that defines data in the form of (x, high, low, open, close)
tuples.
|
interface |
TableXYDataset
A dataset containing one or more data series containing (x, y) data items,
where all series in the dataset share the same set of x-values.
|
interface |
XYZDataset
The interface through which JFreeChart obtains data in the form of (x, y, z)
items - used for XY and XYZ plots.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractIntervalXYDataset
An base class that you can use to create new implementations of the
IntervalXYDataset interface. |
class |
AbstractXYDataset
An base class that you can use to create new implementations of the
XYDataset interface. |
class |
XYSeriesCollection
Represents a collection of
XYSeries objects that can be used as a
dataset. |
Constructor and Description |
---|
IntervalXYDelegate(XYDataset dataset)
Creates a new delegate that.
|
IntervalXYDelegate(XYDataset dataset,
boolean autoWidth)
Creates a new delegate for the specified dataset.
|