Package org.adempiere.apps.graph
Class GraphBuilder
- java.lang.Object
-
- org.adempiere.apps.graph.GraphBuilder
-
public class GraphBuilder extends Object
- Author:
- hengsin
-
-
Field Summary
Fields Modifier and Type Field Description protected org.jfree.data.category.DefaultCategoryDataset
dataset
protected org.jfree.data.category.DefaultCategoryDataset
linearDataset
protected MGoal
m_goal
The Goalprotected String
m_X_AxisLabel
X Axis Labelprotected String
m_Y_AxisLabel
Y Axis Labelprotected org.jfree.data.general.DefaultPieDataset
pieDataset
-
Constructor Summary
Constructors Constructor Description GraphBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jfree.chart.JFreeChart
createChart(String type)
MGoal
getMGoal()
String
getXAxisLabel()
String
getYAxisLabel()
ArrayList<GraphColumn>
loadData()
void
loadDataSet(List<GraphColumn> list)
void
setMGoal(MGoal mgoal)
void
setXAxisLabel(String axisLabel)
void
setYAxisLabel(String axisLabel)
-
-
-
Field Detail
-
m_goal
protected MGoal m_goal
The Goal
-
m_X_AxisLabel
protected String m_X_AxisLabel
X Axis Label
-
m_Y_AxisLabel
protected String m_Y_AxisLabel
Y Axis Label
-
dataset
protected org.jfree.data.category.DefaultCategoryDataset dataset
-
linearDataset
protected org.jfree.data.category.DefaultCategoryDataset linearDataset
-
pieDataset
protected org.jfree.data.general.DefaultPieDataset pieDataset
-
-
Method Detail
-
createChart
public org.jfree.chart.JFreeChart createChart(String type)
- Parameters:
type
-- Returns:
- JFreeChart
-
getMGoal
public MGoal getMGoal()
- Returns:
- MGoal
-
setMGoal
public void setMGoal(MGoal mgoal)
- Parameters:
mgoal
-
-
getXAxisLabel
public String getXAxisLabel()
- Returns:
- X axis label
-
setXAxisLabel
public void setXAxisLabel(String axisLabel)
- Parameters:
axisLabel
-
-
getYAxisLabel
public String getYAxisLabel()
- Returns:
- Y axis label
-
setYAxisLabel
public void setYAxisLabel(String axisLabel)
- Parameters:
axisLabel
-
-
loadData
public ArrayList<GraphColumn> loadData()
- Returns:
- graph column list
-
loadDataSet
public void loadDataSet(List<GraphColumn> list)
-
-