Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/15/11 18:41:13 (14 years ago)
Author:
abeham
Message:

#1465

  • fine tuned UI for setting data(table|row) visual properties
  • added control for the data table visual properties
  • added a few more visual properties
Location:
branches/histogram/HeuristicLab.Analysis/3.3/DataVisualization
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/histogram/HeuristicLab.Analysis/3.3/DataVisualization/DataRowVisualProperties.cs

    r6011 r6012  
    4040    }
    4141    #endregion
     42    #region LineStyle
     43    public enum DataRowLineStyle {
     44      Dash,
     45      DashDot,
     46      DashDotDot,
     47      Dot,
     48      NotSet,
     49      Solid
     50    }
     51    #endregion
    4252
    4353    private DataRowChartType chartType;
     
    8191      }
    8292    }
     93    private DataRowLineStyle lineStyle;
     94    public DataRowLineStyle LineStyle {
     95      get { return lineStyle; }
     96      set {
     97        if (lineStyle != value) {
     98          lineStyle = value;
     99          OnPropertyChanged("LineStyle");
     100        }
     101      }
     102    }
    83103    private bool startIndexZero;
    84104    public bool StartIndexZero {
     
    88108          startIndexZero = value;
    89109          OnPropertyChanged("StartIndexZero");
     110        }
     111      }
     112    }
     113    private int lineWidth;
     114    public int LineWidth {
     115      get { return lineWidth; }
     116      set {
     117        if (lineWidth != value) {
     118          lineWidth = value;
     119          OnPropertyChanged("LineWidth");
    90120        }
    91121      }
     
    133163      set { color = value; }
    134164    }
     165    [Storable(Name = "LineStyle")]
     166    private DataRowLineStyle StorableLineStyle {
     167      get { return lineStyle; }
     168      set { lineStyle = value; }
     169    }
    135170    [Storable(Name = "StartIndexZero")]
    136171    private bool StorableStartIndexZero {
    137172      get { return startIndexZero; }
    138173      set { startIndexZero = value; }
     174    }
     175    [Storable(Name = "LineWidth")]
     176    private int StorableLineWidth {
     177      get { return lineWidth; }
     178      set { lineWidth = value; }
    139179    }
    140180    [Storable(Name = "Bins")]
     
    158198      this.secondXAxis = original.secondXAxis;
    159199      this.color = original.color;
     200      this.lineStyle = original.lineStyle;
    160201      this.startIndexZero = original.startIndexZero;
     202      this.lineWidth = original.lineWidth;
    161203      this.bins = original.bins;
    162204      this.exactBins = original.exactBins;
     
    167209      secondXAxis = false;
    168210      color = Color.Empty;
     211      lineStyle = DataRowLineStyle.Solid;
    169212      startIndexZero = false;
     213      lineWidth = 1;
    170214      bins = 10;
    171215      exactBins = false;
  • branches/histogram/HeuristicLab.Analysis/3.3/DataVisualization/DataTableVisualProperties.cs

    r5445 r6012  
    5454    }
    5555
     56    private string secondXAxisTitle;
     57    public string SecondXAxisTitle {
     58      get { return secondXAxisTitle; }
     59      set {
     60        if (value == null) value = string.Empty;
     61        if (secondXAxisTitle != value) {
     62          secondXAxisTitle = value;
     63          OnPropertyChanged("SecondXAxisTitle");
     64        }
     65      }
     66    }
     67
    5668    private string secondYAxisTitle;
    5769    public string SecondYAxisTitle {
     
    7789      set { yAxisTitle = value; }
    7890    }
     91    [Storable(Name = "SecondXAxisTitle")]
     92    private string StorableSecondXAxisTitle {
     93      get { return secondXAxisTitle; }
     94      set { secondXAxisTitle = value; }
     95    }
    7996    [Storable(Name = "SecondYAxisTitle")]
    8097    private string StorableSecondYAxisTitle {
     
    90107      this.xAxisTitle = original.xAxisTitle;
    91108      this.yAxisTitle = original.yAxisTitle;
     109      this.secondXAxisTitle = original.secondXAxisTitle;
    92110      this.secondYAxisTitle = original.secondYAxisTitle;
    93111    }
     
    95113      this.xAxisTitle = string.Empty;
    96114      this.yAxisTitle = string.Empty;
     115      this.secondXAxisTitle = string.Empty;
    97116      this.secondYAxisTitle = string.Empty;
    98117    }
Note: See TracChangeset for help on using the changeset viewer.