コード例 #1
0
 /// <summary>
 /// Constructor setting prerequisit from a diagramInformation object
 /// </summary>
 /// <param name="diagramData">Object containing information about the diagram being created</param>
 public DiagramIntervalPointsGenerator(DiagramInformation diagramData)
 {
     DiagramDataToDraw = diagramData;
     YPointsUsedInDiagramGeneration = new List <ArrayList>();
     XPointsUsedInDiagramGeneration = new List <ArrayList>();
     StartIntervalsGenerator();
 }
コード例 #2
0
 /// <summary>
 /// Resets the data making up the diagram
 /// </summary>
 public void ResetDiagramData()
 {
     DiagramInformation.ClearDiagramPoints();
     IntervalPointsGenerator = null;
 }
コード例 #3
0
 /// <summary>
 /// This method creates the diagramInformationObject with data input from the GUI
 /// </summary>
 /// <param name="title">This is the diagram title from the GUI</param>
 /// <param name="intervalXAxis">This is the diagram interval X axis from the GUI</param>
 /// <param name="intervalYAxis">This is the diagram interval Y axis from the GUI</param>
 /// <param name="divisionsXAxis">This is the diagram divisions X axis from the GUI</param>
 /// <param name="divisionsYAxis">This is the diagram divisions Y axis from the GUI</param>
 /// <param name="heightOfDiagramGrid">The height of the grid containing the diagram (used to calculate the size of the diagram)</param>
 /// <param name="widthOfDiagramGrid">The width of the grid containing the diagram (used to calculate the size of the diagram)</param>
 public void CreateDiagramInformationObject(string title, int intervalXAxis, int intervalYAxis, int divisionsXAxis, int divisionsYAxis, double heightOfDiagramGrid, double widthOfDiagramGrid)
 {
     DiagramInformation = new DiagramInformation(title, intervalXAxis, intervalYAxis, divisionsXAxis, divisionsYAxis, heightOfDiagramGrid, widthOfDiagramGrid);
 }