public class ChartModel extends Object
| Constructor and Description |
|---|
ChartModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addColor(Color color)
Adds a color to the list of custom color patterns for the data.
|
void |
addColor(String color)
Adds a color to the list of custom color patterns for the data.
|
Map<String,? extends Number[]> |
getArrayData() |
Object[] |
getArrayData(Object label) |
Set<String> |
getAxisLabels() |
List<String> |
getBarLabels() |
List<String> |
getColors()
Returns the custom color pattern for the data.
|
Map<String,? extends Number> |
getData() |
Object |
getData(String label) |
XAxis |
getxAxis()
Returns the x-axis.
|
YAxis |
getyAxis()
Returns the y-axis.
|
boolean |
hasArrayData() |
void |
setArrayData(Map<String,? extends Number[]> arrayData) |
void |
setBarLabels(List<String> barLabels) |
void |
setBarLabels(String[] barLabels) |
void |
setColors(List<String> colors)
Sets the custom color pattern for the data.
|
void |
setData(Map<String,? extends Number> data) |
void |
setxAxis(String label)
Sets the text that will be displayed along the x axis.
|
void |
setxAxis(XAxis xAxis)
Sets the x-axis.
|
void |
setyAxis(String label)
Sets the text that will be displayed along the y axis.
|
void |
setyAxis(YAxis yAxis)
Sets the y-axis.
|
public List<String> getColors()
public void setColors(List<String> colors)
colors - the custom color pattern for the datapublic void addColor(String color)
color - a String representation of a colorpublic void addColor(Color color)
color - a color from the color enumpublic XAxis getxAxis()
public void setxAxis(String label)
label - the text that will be displayed along the x axispublic void setxAxis(XAxis xAxis)
xAxis - the x-axispublic YAxis getyAxis()
public void setyAxis(String label)
label - the text that will be displayed along the y axispublic void setyAxis(YAxis yAxis)
yAxis - the y-axispublic void setBarLabels(String[] barLabels)
barLabels - public void setArrayData(Map<String,? extends Number[]> arrayData)
arrayData - public boolean hasArrayData()
Copyright © 2015 Joseph Hendrix