public override GraphWindow Build()
 {
     graphWindow = new GraphWindow();
     this.BuildMeanFontFamily(graphWindow);
     this.BuildGraphColor(graphWindow);
     this.BuildGraphHeight(graphWindow);
     this.BuildGraphWidth(graphWindow);
     this.BuildMeanFontSize(graphWindow);
     return(graphWindow);
 }
Exemple #2
0
        public Form1()
        {
            InitializeComponent();
            dataContainer = new DataContainer();
            ChartBuilder builder = new ChartBuilder();

            builder.Build();
            GraphWindow window = builder.getGraphWindow();

            dataChart.Height = window.GraphHeight;
            meanLabel.Font   = new Font("Arial", window.MeanFontSize, window.MeanFontStyle);
        }
 public override void BuildMeanFontSize(GraphWindow graphWindow)
 {
     graphWindow.MeanFontSize = 12.0f;
 }
 public override void BuildGraphWidth(GraphWindow graphWindow)
 {
     graphWindow.GraphWidth = 80;
 }
 public override void BuildGraphHeight(GraphWindow graphWindow)
 {
     graphWindow.GraphHeight = 150;
 }
 public override void BuildGraphColor(GraphWindow graphWindow)
 {
     graphWindow.GraphColor = ChartColorPalette.Berry;
 }
 public override void BuildMeanFontFamily(GraphWindow graphWindow)
 {
     graphWindow.MeanFontStyle = FontStyle.Bold;
 }
 public ChartBuilder()
 {
     graphWindow = new GraphWindow();
 }
Exemple #9
0
 public abstract void BuildMeanFontFamily(GraphWindow graphWindow);
Exemple #10
0
 public abstract void BuildMeanFontSize(GraphWindow graphWindow);
Exemple #11
0
 public abstract void BuildGraphHeight(GraphWindow graphWindow);
Exemple #12
0
 public abstract void BuildGraphWidth(GraphWindow graphWindow);
Exemple #13
0
 public abstract void BuildGraphColor(GraphWindow graphWindow);