|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.jfreechart.ChartUtils
public class ChartUtils
Some useful static routines. Essentially extends JFreeChart
org.jfree.data.general.DatasetUtilities
and org.jfree.chart.ChartUtilities
.
Constructor Summary | |
---|---|
ChartUtils()
|
Method Summary | |
---|---|
static org.jfree.data.general.Dataset |
getDatasetFromEntity(org.jfree.chart.entity.ChartEntity entity)
|
static java.util.List |
getSubPlots(org.jfree.chart.plot.Plot plot)
If the plot is a combined plot, return a list of all subplots. |
static int |
getXIndex(org.jfree.data.xy.XYDataset dataset,
int seriesIndex,
double xValue)
Returns the index of the item in the dataset with the matching x-value. |
static java.lang.Number |
getYValue(org.jfree.data.xy.XYDataset dataset,
int seriesIndex,
double xValue)
|
static java.lang.Number |
getYValue(org.jfree.data.xy.XYDataset dataset,
int seriesIndex,
java.lang.Number xValue)
Given an X value (not a series index), return the corresponding Y value if it exists or null if it doesn't. |
static boolean |
isCombinedPlot(org.jfree.chart.plot.Plot chartPlot)
|
static boolean |
isDataEntity(org.jfree.chart.entity.ChartEntity entity)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartUtils()
Method Detail |
---|
public static int getXIndex(org.jfree.data.xy.XYDataset dataset, int seriesIndex, double xValue)
dataset
- seriesIndex
- xValue
-
public static java.lang.Number getYValue(org.jfree.data.xy.XYDataset dataset, int seriesIndex, java.lang.Number xValue)
dataset
- The dataset to search throughseriesIndex
- The series to accessxValue
- Value that the x-item must have
public static java.lang.Number getYValue(org.jfree.data.xy.XYDataset dataset, int seriesIndex, double xValue)
public static org.jfree.data.general.Dataset getDatasetFromEntity(org.jfree.chart.entity.ChartEntity entity)
entity
- public static boolean isDataEntity(org.jfree.chart.entity.ChartEntity entity)
public static boolean isCombinedPlot(org.jfree.chart.plot.Plot chartPlot)
public static java.util.List getSubPlots(org.jfree.chart.plot.Plot plot)
plot
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |