Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/07/09 15:57:16 (15 years ago)
Author:
mstoeger
Message:

Implemented multiple Y-Axes. (#433) Panning & Zooming is broken.

File:
1 edited

Legend:

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

    r1240 r1285  
    77
    88    private ILabelProvider labelProvider = new ContinuousLabelProvider("e4");
     9    private bool visible = true;
    910
    1011    public ILabelProvider LabelProvider {
     
    1314    }
    1415
     16    public bool Visible {
     17      get { return visible; }
     18      set { visible = value; }
     19    }
     20
    1521    public override void Draw(Graphics graphics) {
    1622      ClearShapes();
    1723
    18       foreach (double y in AxisTicks.GetTicks(PixelsPerInterval, Parent.Viewport.Height,
    19                                               ClippingArea.Height,
    20                                               ClippingArea.Y1)) {
    21         TextShape label = new TextShape(ClippingArea.X2 - 3, y,
    22                                         labelProvider.GetLabel(y));
    23         label.AnchorPositionX = AnchorPositionX.Right;
    24         label.AnchorPositionY = AnchorPositionY.Middle;
    25         AddShape(label);
     24      if (Visible) {
     25        foreach (double y in AxisTicks.GetTicks(PixelsPerInterval, Parent.Viewport.Height,
     26                                                ClippingArea.Height,
     27                                                ClippingArea.Y1)) {
     28          TextShape label = new TextShape(ClippingArea.X2 - 3, y,
     29                                          labelProvider.GetLabel(y));
     30          label.AnchorPositionX = AnchorPositionX.Right;
     31          label.AnchorPositionY = AnchorPositionY.Middle;
     32          AddShape(label);
     33        }
    2634      }
    2735
Note: See TracChangeset for help on using the changeset viewer.