Class GraphBuilder


  • public class GraphBuilder
    extends Object
    Author:
    hengsin
    • 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
    • Constructor Detail

      • GraphBuilder

        public GraphBuilder()
    • 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 -