| OLD | NEW |
| 1 // | 1 // |
| 2 // Copyright 2014 Google Inc. All rights reserved. | 2 // Copyright 2014 Google Inc. All rights reserved. |
| 3 // | 3 // |
| 4 // Use of this source code is governed by a BSD-style | 4 // Use of this source code is governed by a BSD-style |
| 5 // license that can be found in the LICENSE file or at | 5 // license that can be found in the LICENSE file or at |
| 6 // https://developers.google.com/open-source/licenses/bsd | 6 // https://developers.google.com/open-source/licenses/bsd |
| 7 // | 7 // |
| 8 | 8 |
| 9 part of charted.charts; | 9 part of charted.charts; |
| 10 | 10 |
| 11 /// | 11 /// |
| 12 /// Model to provide highlight, selection and visibility in a ChartArea. | 12 /// Model to provide highlight, selection and visibility in a ChartArea. |
| 13 /// Selection and visibility | 13 /// Selection and visibility |
| 14 /// | 14 /// |
| 15 abstract class ChartState implements ChangeNotifier { | 15 abstract class ChartState implements Observable { |
| 16 static int COL_SELECTED = 0x001; | 16 static int COL_SELECTED = 0x001; |
| 17 static int COL_UNSELECTED = 0x002; | 17 static int COL_UNSELECTED = 0x002; |
| 18 static int COL_PREVIEW = 0x004; | 18 static int COL_PREVIEW = 0x004; |
| 19 static int COL_HIDDEN = 0x008; | 19 static int COL_HIDDEN = 0x008; |
| 20 static int COL_HIGHLIGHTED = 0x010; | 20 static int COL_HIGHLIGHTED = 0x010; |
| 21 static int COL_UNHIGHLIGHTED = 0x020; | 21 static int COL_UNHIGHLIGHTED = 0x020; |
| 22 static int COL_HOVERED = 0x040; | 22 static int COL_HOVERED = 0x040; |
| 23 static int VAL_HIGHLIGHTED = 0x080; | 23 static int VAL_HIGHLIGHTED = 0x080; |
| 24 static int VAL_UNHIGHLIGHTED = 0x100; | 24 static int VAL_UNHIGHLIGHTED = 0x100; |
| 25 static int VAL_HOVERED = 0x200; | 25 static int VAL_HOVERED = 0x200; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 } | 153 } |
| 154 | 154 |
| 155 /// | 155 /// |
| 156 /// Implementation of [ChangeRecord], that is used to notify changes to | 156 /// Implementation of [ChangeRecord], that is used to notify changes to |
| 157 /// values in [ChartData]. | 157 /// values in [ChartData]. |
| 158 /// | 158 /// |
| 159 class ChartPreviewChangeRecord implements ChangeRecord { | 159 class ChartPreviewChangeRecord implements ChangeRecord { |
| 160 final int previewed; | 160 final int previewed; |
| 161 const ChartPreviewChangeRecord(this.previewed); | 161 const ChartPreviewChangeRecord(this.previewed); |
| 162 } | 162 } |
| OLD | NEW |