public class GraphManager
extends java.lang.Object
| Constructor and Description |
|---|
GraphManager(GUI gui)
Constructor for the GraphManger
|
| Modifier and Type | Method and Description |
|---|---|
void |
addData(EnumRegion region,
int graphNumber,
int year,
int dataValue) |
void |
addData(int year,
double[] foodPrice)
Method which adds a data point to the graphs in the food product bar
|
Graph |
getGraphNodeGraph(EnumRegion region,
int number)
Gets the requested graph
|
Graph |
getProductBarGraph(int i)
Gets the request product bar graph
|
public GraphManager(GUI gui)
gui - public void addData(int year,
double[] foodPrice)
year - foodPrice - public void addData(EnumRegion region, int graphNumber, int year, int dataValue)
public Graph getGraphNodeGraph(EnumRegion region, int number)
region - graph of the regionnumber - number of the graph you want to getpublic Graph getProductBarGraph(int i)
i - index of the product bar graph you want to get