class JFXyPlot<X extends Comparable> extends XyPlotBase<X>
This is open source software released under the Apache 2.0 License
| Modifier and Type | Class and Description |
|---|---|
private class |
JFXyPlot.ModelAdapter<S extends Comparable>
An implementation of the XyModel interface that manages data for this plot
|
private class |
JFXyPlot.OrientAdapter
An adapter implementation for the ChartOrientation interface
|
private class |
JFXyPlot.TrendLine
A XyTrend adapter for the JFreeChart library
|
| Modifier and Type | Field and Description |
|---|---|
private Map<Integer,JFXyDataset<X,? extends Comparable>> |
datasetMap |
private DecimalFormat |
decimalFormat |
private org.jfree.chart.plot.XYPlot |
plot |
private Map<Comparable,JFXyPlot.TrendLine> |
trendMap |
| Constructor and Description |
|---|
JFXyPlot(org.jfree.chart.axis.ValueAxis domainAxis,
org.jfree.chart.axis.ValueAxis rangeAxis)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
private void |
applyTrend(JFXyDataset<X,Comparable> dataset,
JFXyPlot.TrendLine trend)
Applies a trend line to the plot based on the dataset and trend definition
|
XyAxes |
axes()
Returns the plot axes control interface
|
<S extends Comparable> |
data()
Returns the plot data control interface
|
private int |
getDatasetCount()
Returns the number of none null data sets for this plot
|
private String |
getTrendTooltip(org.jfree.data.xy.XYDataset dataset,
int series,
int item)
Returns a tooltip to display a trend line equation
|
(package private) String |
getXyTooltip(org.jfree.data.xy.XYDataset dataset,
int series,
int item)
Returns a tooltip to display details for an XY point
|
XyOrient |
orient()
Returns the interface to set the chart orientation
|
XyRender |
render(int index)
Returns the chart plot style interface for the dataset index
|
<S extends Comparable> |
trend(S seriesKey)
Returns the trend line controller interface for the series specified
|
(package private) org.jfree.chart.plot.XYPlot |
underlying()
Returns the underlying JFreeChart plot object
|
getColorModel, getSeriesColor, getSeriesLineWidth, getSeriesPointShape, isSeriesDashedLine, isSeriesPointsVisible, style, withColorModelprivate org.jfree.chart.plot.XYPlot plot
private Map<Comparable,JFXyPlot.TrendLine> trendMap
private Map<Integer,JFXyDataset<X extends Comparable,? extends Comparable>> datasetMap
private DecimalFormat decimalFormat
JFXyPlot(org.jfree.chart.axis.ValueAxis domainAxis,
org.jfree.chart.axis.ValueAxis rangeAxis)
domainAxis - the domain axisrangeAxis - the range axisfinal org.jfree.chart.plot.XYPlot underlying()
public XyAxes axes()
XyPlotpublic <S extends Comparable> XyModel<X,S> data()
XyPlotpublic XyOrient orient()
XyPlotpublic <S extends Comparable> XyTrend trend(S seriesKey)
XyPlotseriesKey - the series key to create trend line forpublic XyRender render(int index)
XyPlotindex - the dataset index, 0 being the first datasetprivate int getDatasetCount()
private void applyTrend(JFXyDataset<X,Comparable> dataset, JFXyPlot.TrendLine trend)
dataset - the dataset from which to compute the trend linetrend - the trend line instanceString getXyTooltip(org.jfree.data.xy.XYDataset dataset, int series, int item)
dataset - the dataset referenceseries - the series indexitem - the item indexprivate String getTrendTooltip(org.jfree.data.xy.XYDataset dataset, int series, int item)
dataset - the dataset referenceseries - the series indexitem - the item indexCopyright 2014-2017, Xavier Witdouck