|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.charts4j.Plots
public final class Plots
Static factory class for Plot
hierarchy. The plots can then be
rendered by a GChart
.
GChart
,
GCharts
,
Data
,
DataUtil
Method Summary | |
---|---|
static BarChartPlot |
newBarChartPlot(Data data)
Define a bar chart plot. |
static BarChartPlot |
newBarChartPlot(Data data,
Color color)
Define a bar chart plot. |
static BarChartPlot |
newBarChartPlot(Data data,
Color color,
String legend)
Define a bar chart series. |
static Line |
newLine(Data data)
Define a line. |
static Line |
newLine(Data data,
Color color)
Define a line. |
static Line |
newLine(Data data,
Color color,
String legend)
Define a line. |
static Plot |
newPlot(Data data)
Define a plot. |
static Plot |
newPlot(Data data,
Color color)
Define a plot. |
static Plot |
newPlot(Data data,
Color color,
String legend)
Define a plot. |
static RadarPlot |
newRadarPlot(Data data)
Define a radar plot. |
static RadarPlot |
newRadarPlot(Data data,
Color color)
Define a radar plot. |
static RadarPlot |
newRadarPlot(Data data,
Color color,
String legend)
Define a radar plot. |
static ScatterPlotData |
newScatterPlotData(Data xData,
Data yData)
Create the scatter plot data. |
static ScatterPlotData |
newScatterPlotData(Data xData,
Data yData,
Data pointSizes)
Create the scatter plot data. |
static XYLine |
newXYLine(Data xData,
Data yData)
Define a xy line. |
static XYLine |
newXYLine(Data xData,
Data yData,
Color color)
Define a xy line. |
static XYLine |
newXYLine(Data xData,
Data yData,
Color color,
String legend)
Define a xy line. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static BarChartPlot newBarChartPlot(Data data)
BarChart
.
data
- Data for this bar chart plot. Cannot be null.
Data
,
DataUtil
public static BarChartPlot newBarChartPlot(Data data, Color color)
BarChart
.
data
- Data for this bar chart plot. Cannot be null.color
- Color for this bar chart plot. Cannot be null.
Data
,
DataUtil
public static BarChartPlot newBarChartPlot(Data data, Color color, String legend)
BarChart
.
data
- Data for this bar chart plot. Cannot be null.color
- Color for this bar chart plot. Cannot be null.legend
- Legend for this bar chart plot. Cannot be null.
Data
,
DataUtil
public static ScatterPlotData newScatterPlotData(Data xData, Data yData)
xData
- x data. Cannot be null.yData
- y data. Cannot be null.
Data
public static ScatterPlotData newScatterPlotData(Data xData, Data yData, Data pointSizes)
Plot.addShapeMarkers(Shape, Color, int)
method.
The size at which the data point is rendered is a function the marker
size defined via the Plot.addShapeMarkers(Shape, Color, int)
method, and the values passed into this method in the pointSizes object.
For instance, if a point is defined (via the shape marker) with a size of
20, then the element that corresponds to that point in the data series
will render proportionally to that marker definition. A value of 0 will
render at size 0, a value of 100 will render at size 20.
xData
- x data. Cannot be null.yData
- y data. Cannot be null.pointSizes
- size of x,y data. Cannot be null.
Data
public static Line newLine(Data data)
LineChart
.
data
- Data for this line. Cannot be null.
Data
,
DataUtil
public static Line newLine(Data data, Color color)
LineChart
.
data
- Data for this line. Cannot be null.color
- Line color. Cannot be null.
Data
,
DataUtil
public static Line newLine(Data data, Color color, String legend)
LineChart
.
data
- Data for this line. Cannot be null.color
- Line color. Cannot be null.legend
- Legend for this line. Cannot be null.
Data
,
DataUtil
public static XYLine newXYLine(Data xData, Data yData)
XYLineChart
.
xData
- Data for this xy line.yData
- Data for this xy line.
Data
public static XYLine newXYLine(Data xData, Data yData, Color color)
XYLineChart
.
xData
- Data for this xy line. Cannot be null.yData
- Data for this xy line. Cannot be null.color
- XYLine color. Cannot be null.
Data
,
DataUtil
public static XYLine newXYLine(Data xData, Data yData, Color color, String legend)
XYLineChart
.
xData
- Data for this xy line. Cannot be null.yData
- Data for this xy line. Cannot be null.color
- XYLine color. Cannot be null.legend
- Legend for this xy line. Cannot be null.
Data
,
DataUtil
public static RadarPlot newRadarPlot(Data data)
RadarPlot
.
data
- Data for this radar plot. Cannot be null.
Data
,
DataUtil
public static RadarPlot newRadarPlot(Data data, Color color)
RadarPlot
.
data
- Data for this radar plot. Cannot be null.color
- RadarPlot color. Cannot be null.
Data
,
DataUtil
public static RadarPlot newRadarPlot(Data data, Color color, String legend)
RadarPlot
.
data
- Data for this radar plot. Cannot be null.color
- RadarPlot color. Cannot be null.legend
- Legend for this radar plot. Cannot be null.
Data
,
DataUtil
public static Plot newPlot(Data data)
LineChart
XYLineChart
BarChart
RadarPlot
.
data
- Data for this plot. Cannot be null.
Data
,
DataUtil
public static Plot newPlot(Data data, Color color)
LineChart
XYLineChart
BarChart
RadarPlot
.
data
- Data for this plot. Cannot be null.color
- Plot color. Cannot be null.
Data
,
DataUtil
public static Plot newPlot(Data data, Color color, String legend)
LineChart
XYLineChart
BarChart
RadarPlot
.
data
- Data for this plot. Cannot be null.color
- Plot color. Cannot be null.legend
- Legend for this plot. Cannot be null.
Data
,
DataUtil
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |