Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/27/09 17:48:20 (15 years ago)
Author:
mstoeger
Message:

Add option for grid visibility and color (#555)

File:
1 edited

Legend:

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

    r1457 r1458  
    11using System;
    22using System.Collections.Generic;
     3using System.Drawing;
    34using HeuristicLab.Visualization.LabelProvider;
    45using HeuristicLab.Visualization.Test;
     
    1415    public bool ClipChangeable = true;
    1516    private AxisPosition position = AxisPosition.Left;
     17
     18    private bool showGrid = true;
     19    private Color gridColor = Color.LightBlue;
    1620
    1721    public event YAxisDescriptorChangedHandler YAxisDescriptorChanged;
     
    8286    public AxisPosition Position {
    8387      get { return position; }
    84       set { position = value; }
     88      set {
     89        position = value;
     90        OnYAxisDescriptorChanged();
     91      }
     92    }
     93
     94    public bool ShowGrid {
     95      get { return showGrid; }
     96      set {
     97        showGrid = value;
     98        OnYAxisDescriptorChanged();
     99      }
     100    }
     101
     102    public Color GridColor {
     103      get { return gridColor; }
     104      set {
     105        gridColor = value;
     106        OnYAxisDescriptorChanged();
     107      }
    85108    }
    86109
Note: See TracChangeset for help on using the changeset viewer.