Changeset 1341 for trunk/sources/HeuristicLab.Visualization/LineChart.cs
- Timestamp:
- 03/13/09 18:21:26 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/LineChart.cs
r1337 r1341 19 19 private readonly Dictionary<IDataRow, RowEntry> rowToRowEntry = new Dictionary<IDataRow, RowEntry>(); 20 20 21 private readonly ViewSettings viewSettings; 22 21 23 // private readonly Stack<RectangleD> clippingAreaHistory = new Stack<RectangleD>(); 22 24 private readonly WorldShape userInteractionShape = new WorldShape(); … … 29 31 private bool zoomToFullView; 30 32 31 private readonly ViewPropertiesModel viewPropertiesModel;32 33 33 34 /// <summary> … … 50 51 51 52 this.model = model; 52 view PropertiesModel = new ViewPropertiesModel(titleShape.Font, titleShape.Color, legendShape.Font, legendShape.Color, xAxis.Font, xAxis.Color);53 view PropertiesModel.OnUpdateProperties += UpdateViewProperties;53 viewSettings = model.ViewSettings; 54 viewSettings.OnUpdateSettings += UpdateViewProperties; 54 55 55 56 Item = model; … … 62 63 63 64 private void UpdateViewProperties() { 64 titleShape.Font = view PropertiesModel.TitleFont;65 titleShape.Color = view PropertiesModel.TitleColor;66 67 legendShape.Font = view PropertiesModel.LegendFont;68 legendShape.Color = view PropertiesModel.LegendColor;69 70 xAxis.Font = view PropertiesModel.XAxisFont;71 xAxis.Color = view PropertiesModel.XAxisColor;65 titleShape.Font = viewSettings.TitleFont; 66 titleShape.Color = viewSettings.TitleColor; 67 68 legendShape.Font = viewSettings.LegendFont; 69 legendShape.Color = viewSettings.LegendColor; 70 71 xAxis.Font = viewSettings.XAxisFont; 72 xAxis.Color = viewSettings.XAxisColor; 72 73 73 74 canvasUI.Invalidate(); … … 145 146 146 147 private void optionsToolStripMenuItem_Click(object sender, EventArgs e) { 147 OptionsDialog optionsdlg = new OptionsDialog( this.model, viewPropertiesModel);148 OptionsDialog optionsdlg = new OptionsDialog(model); 148 149 optionsdlg.ShowDialog(this); 149 150 }
Note: See TracChangeset
for help on using the changeset viewer.