Last change
on this file since 1235 was
1233,
checked in by mstoeger, 16 years ago
|
General housekeeping (#498) Removed some old unused Z-Order values. Replaced some var types by concrete types. Renamed some LineShape properties. Added caching of Pens and Brushes in LineShape and RectangleShape. Put axis tick calculation algorithm into its own class.
|
File size:
1.1 KB
|
Line | |
---|
1 | using System.Drawing;
|
---|
2 | using HeuristicLab.Visualization.LabelProvider;
|
---|
3 |
|
---|
4 | namespace HeuristicLab.Visualization {
|
---|
5 |
|
---|
6 | public enum DataRowType {
|
---|
7 | Normal, SingleValue
|
---|
8 | }
|
---|
9 |
|
---|
10 | public interface IDataRow {
|
---|
11 | string Label { get; set; }
|
---|
12 | Color Color { get; set; }
|
---|
13 | int Thickness { get; set; }
|
---|
14 | DrawingStyle Style { get; set; }
|
---|
15 | DataRowType LineType { get; set; }
|
---|
16 | ILabelProvider YAxisLabelProvider { get; set; }
|
---|
17 |
|
---|
18 | /// <summary>
|
---|
19 | /// Raised when data row data changed. Should cause redraw in the view.
|
---|
20 | /// </summary>
|
---|
21 | event DataRowChangedHandler DataRowChanged;
|
---|
22 |
|
---|
23 | void AddValue(double value);
|
---|
24 | void AddValue(double value, int index);
|
---|
25 | void AddValues(double[] values);
|
---|
26 | void AddValues(double[] values, int index);
|
---|
27 |
|
---|
28 | void ModifyValue(double value, int index);
|
---|
29 | void ModifyValues(double[] values, int index);
|
---|
30 |
|
---|
31 | void RemoveValue(int index);
|
---|
32 | void RemoveValues(int index, int count);
|
---|
33 |
|
---|
34 | int Count { get; }
|
---|
35 | double this[int index] { get; set; }
|
---|
36 |
|
---|
37 | event ValuesChangedHandler ValuesChanged;
|
---|
38 | event ValueChangedHandler ValueChanged;
|
---|
39 | }
|
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.