Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: packages/charted/lib/charts/chart_state.dart

Issue 2213693002: Updated charted DEP to 0.4.X (Closed) Base URL: https://github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 17 matching lines...) Expand all
28 static const COL_UNSELECTED_CLASS = 'col-unselected'; 28 static const COL_UNSELECTED_CLASS = 'col-unselected';
29 static const COL_PREVIEW_CLASS = 'col-previewed'; 29 static const COL_PREVIEW_CLASS = 'col-previewed';
30 static const COL_HIDDEN_CLASS = 'col-hidden'; 30 static const COL_HIDDEN_CLASS = 'col-hidden';
31 static const COL_HIGHLIGHTED_CLASS = 'col-highlighted'; 31 static const COL_HIGHLIGHTED_CLASS = 'col-highlighted';
32 static const COL_UNHIGHLIGHTED_CLASS = 'col-unhighlighted'; 32 static const COL_UNHIGHLIGHTED_CLASS = 'col-unhighlighted';
33 static const COL_HOVERED_CLASS = 'col-hovered'; 33 static const COL_HOVERED_CLASS = 'col-hovered';
34 static const VAL_HIGHLIGHTED_CLASS = 'row-highlighted'; 34 static const VAL_HIGHLIGHTED_CLASS = 'row-highlighted';
35 static const VAL_UNHIGHLIGHTED_CLASS = 'row-unhighlighted'; 35 static const VAL_UNHIGHLIGHTED_CLASS = 'row-unhighlighted';
36 static const VAL_HOVERED_CLASS = 'row-hovered'; 36 static const VAL_HOVERED_CLASS = 'row-hovered';
37 37
38 static const COLUMN_CLASS_NAMES = const [ 38 static const COLUMN_CLASS_NAMES = const <String>[
39 COL_SELECTED_CLASS, 39 COL_SELECTED_CLASS,
40 COL_UNSELECTED_CLASS, 40 COL_UNSELECTED_CLASS,
41 COL_PREVIEW_CLASS, 41 COL_PREVIEW_CLASS,
42 COL_HIGHLIGHTED_CLASS, 42 COL_HIGHLIGHTED_CLASS,
43 COL_UNHIGHLIGHTED_CLASS, 43 COL_UNHIGHLIGHTED_CLASS,
44 COL_HIDDEN_CLASS, 44 COL_HIDDEN_CLASS,
45 COL_HOVERED_CLASS 45 COL_HOVERED_CLASS
46 ]; 46 ];
47 47
48 static const VALUE_CLASS_NAMES = const [ 48 static const VALUE_CLASS_NAMES = const <String>[
49 COL_SELECTED_CLASS, 49 COL_SELECTED_CLASS,
50 COL_UNSELECTED_CLASS, 50 COL_UNSELECTED_CLASS,
51 COL_PREVIEW_CLASS, 51 COL_PREVIEW_CLASS,
52 COL_HIGHLIGHTED_CLASS, 52 COL_HIGHLIGHTED_CLASS,
53 COL_UNHIGHLIGHTED_CLASS, 53 COL_UNHIGHLIGHTED_CLASS,
54 COL_HIDDEN_CLASS, 54 COL_HIDDEN_CLASS,
55 COL_HOVERED_CLASS, 55 COL_HOVERED_CLASS,
56 VAL_HIGHLIGHTED_CLASS, 56 VAL_HIGHLIGHTED_CLASS,
57 VAL_UNHIGHLIGHTED_CLASS, 57 VAL_UNHIGHLIGHTED_CLASS,
58 VAL_HOVERED_CLASS 58 VAL_HOVERED_CLASS
(...skipping 10 matching lines...) Expand all
69 Iterable<int> get hidden; 69 Iterable<int> get hidden;
70 70
71 /// Currently previewed row or column. Hidden items can be previewed 71 /// Currently previewed row or column. Hidden items can be previewed
72 /// by hovering on the corresponding label in Legend 72 /// by hovering on the corresponding label in Legend
73 /// - Contains a column on CartesianArea if useRowColoring is false. 73 /// - Contains a column on CartesianArea if useRowColoring is false.
74 /// - Row index in all other cases. 74 /// - Row index in all other cases.
75 int preview; 75 int preview;
76 76
77 /// Currently highlighted value, if any, represented as column and row. 77 /// Currently highlighted value, if any, represented as column and row.
78 /// Highlight is result of a click on certain value. 78 /// Highlight is result of a click on certain value.
79 Iterable<Pair<int, int>> highlights; 79 Iterable<Pair<int, int>> get highlights;
80 80
81 /// Currently hovered value, if any, represented as column and row. 81 /// Currently hovered value, if any, represented as column and row.
82 /// Hover is result of mouse moving over a certian value in chart. 82 /// Hover is result of mouse moving over a certian value in chart.
83 Pair<int, int> hovered; 83 Pair<int, int> hovered;
84 84
85 /// Ensure that a row or column is visible. 85 /// Ensure that a row or column is visible.
86 bool unhide(int id); 86 bool unhide(int id);
87 87
88 /// Ensure that a row or column is invisible. 88 /// Ensure that a row or column is invisible.
89 bool hide(int id); 89 bool hide(int id);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « packages/charted/lib/charts/chart_events.dart ('k') | packages/charted/lib/charts/chart_theme.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698