Rev | Line | |
---|
[1962] | 1 | using System.Drawing;
|
---|
| 2 |
|
---|
| 3 | namespace HeuristicLab.Visualization.Options {
|
---|
| 4 | public class DataRowSettings {
|
---|
| 5 | public event UpdateDataRowSettingsHandler OnUpdateDataRowSettings;
|
---|
| 6 |
|
---|
| 7 | private string label;
|
---|
| 8 | private Color color;
|
---|
| 9 | private int thickness;
|
---|
| 10 | private DrawingStyle style;
|
---|
| 11 | private DataRowType lineType;
|
---|
| 12 | private bool showMarkers;
|
---|
| 13 |
|
---|
| 14 | public DataRowSettings() {
|
---|
| 15 | label = "";
|
---|
| 16 | color = Color.Black;
|
---|
| 17 | thickness = 2;
|
---|
| 18 | style = DrawingStyle.Solid;
|
---|
| 19 | lineType = DataRowType.Normal;
|
---|
| 20 | showMarkers = true;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | public DataRowSettings(DataRowSettings src) {
|
---|
| 24 | label = src.label;
|
---|
| 25 | color = src.color;
|
---|
| 26 | thickness = src.thickness;
|
---|
| 27 | style = src.style;
|
---|
| 28 | lineType = src.lineType;
|
---|
| 29 | showMarkers = src.showMarkers;
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | public void UpdateView() {
|
---|
| 33 | if (OnUpdateDataRowSettings != null) {
|
---|
| 34 | OnUpdateDataRowSettings();
|
---|
| 35 | }
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | // public bool ShowMarkers {
|
---|
| 39 | // get { return showMarkers; }
|
---|
| 40 | // set {
|
---|
| 41 | // showMarkers = value;
|
---|
| 42 | // //OnDataRowChanged(this);
|
---|
| 43 | // }
|
---|
| 44 | // }
|
---|
| 45 |
|
---|
| 46 | public string Label {
|
---|
| 47 | get { return label; }
|
---|
| 48 | set {
|
---|
| 49 | label = value;
|
---|
| 50 | //OnDataRowChanged(this);
|
---|
| 51 | }
|
---|
| 52 | }
|
---|
| 53 |
|
---|
| 54 | public Color Color {
|
---|
| 55 | get { return color; }
|
---|
| 56 | set {
|
---|
| 57 | color = value;
|
---|
| 58 | //OnDataRowChanged(this);
|
---|
| 59 | }
|
---|
| 60 | }
|
---|
| 61 |
|
---|
| 62 | public int Thickness {
|
---|
| 63 | get { return thickness; }
|
---|
| 64 | set {
|
---|
| 65 | thickness = value;
|
---|
| 66 | //OnDataRowChanged(this);
|
---|
| 67 | }
|
---|
| 68 | }
|
---|
| 69 |
|
---|
| 70 | // public DrawingStyle Style {
|
---|
| 71 | // get { return style; }
|
---|
| 72 | // set {
|
---|
| 73 | // style = value;
|
---|
| 74 | // //OnDataRowChanged(this);
|
---|
| 75 | // }
|
---|
| 76 | // }
|
---|
| 77 | //
|
---|
| 78 | // public DataRowType LineType {
|
---|
| 79 | // get { return lineType; }
|
---|
| 80 | // set {
|
---|
| 81 | // lineType = value;
|
---|
| 82 | // //OnDataRowChanged(this);
|
---|
| 83 | // }
|
---|
| 84 | // }
|
---|
| 85 | }
|
---|
| 86 | public delegate void UpdateDataRowSettingsHandler();
|
---|
| 87 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.