Free cookie consent management tool by TermsFeed Policy Generator

Changeset 870


Ignore:
Timestamp:
11/29/08 13:21:08 (16 years ago)
Author:
mstoeger
Message:

Adjustments on LineChart for new interface. #345

Location:
trunk/sources/HeuristicLab.Visualization
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization/LineChart.cs

    r869 r870  
    6565        LineShape lineShape = new LineShape(i - 1, row[i - 1], i, row[i], 0, row.Color, row.Thickness);
    6666        lineShapes.Add(lineShape);
     67        // TODO each DataRow needs its own WorldShape so Y Axes can be zoomed independently.
    6768        canvasUI1.MainCanvas.WorldShape.AddShape(lineShape);
    6869      }
     
    8081    private readonly IDictionary<IDataRow, List<LineShape>> rowToLineShapes = new Dictionary<IDataRow, List<LineShape>>();
    8182
     83    // TODO use action parameter
    8284    private void OnRowValueChanged(IDataRow row, double value, int index, Action action) {
    8385      List<LineShape> lineShapes = rowToLineShapes[row];
     
    9092        LineShape lineShape = new LineShape(index - 1, row[index - 1], index, row[index], 0, row.Color, row.Thickness);
    9193        lineShapes.Add(lineShape);
     94        // TODO each DataRow needs its own WorldShape so Y Axes can be zoomed independently.
    9295        canvasUI1.MainCanvas.WorldShape.AddShape(lineShape);
    9396      }
     
    104107    }
    105108
     109    // TODO use action parameter
    106110    private void OnRowValuesChanged(IDataRow row, double[] values, int index, Action action) {
    107111      foreach (double value in values) {
  • trunk/sources/HeuristicLab.Visualization/LineShape.cs

    r869 r870  
    5555    public void Draw(Graphics graphics, Rectangle viewport, RectangleD clippingArea) {
    5656      using (Pen pen = new Pen(color, thickness)){
     57        // TODO there seems to be a bug with drawing straight lines.
    5758        Rectangle screenRect = Transform.ToScreen(boundingBox, viewport, clippingArea);
    5859        graphics.DrawLine(pen,screenRect.Left, screenRect.Bottom, screenRect.Right, screenRect.Top);
Note: See TracChangeset for help on using the changeset viewer.