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 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 /// Value from ChartData on which the event occurred | 75 /// Value from ChartData on which the event occurred |
76 num get value; | 76 num get value; |
77 | 77 |
78 /// X position relative to the rendered chart | 78 /// X position relative to the rendered chart |
79 num get chartX; | 79 num get chartX; |
80 | 80 |
81 /// Y position relative to the rendered chart | 81 /// Y position relative to the rendered chart |
82 num get chartY; | 82 num get chartY; |
83 | 83 |
84 factory ChartEvent(Event source, ChartArea area, | 84 factory ChartEvent(Event source, ChartArea area, |
85 [ChartSeries series, int row, int column, value]) = DefaultChartEventImpl; | 85 [ChartSeries series, |
| 86 int row, |
| 87 int column, |
| 88 num value]) = DefaultChartEventImpl; |
86 } | 89 } |
87 | 90 |
88 /// Interface implemented by chart behaviors. | 91 /// Interface implemented by chart behaviors. |
89 /// During initialization, the behaviors subscribe to any necessary events and | 92 /// During initialization, the behaviors subscribe to any necessary events and |
90 /// handle them appropriately. | 93 /// handle them appropriately. |
91 abstract class ChartBehavior { | 94 abstract class ChartBehavior { |
92 /// Called while ChartArea is being initialized. | 95 /// Called while ChartArea is being initialized. |
93 /// - [area] is the ChartArea on which this behavior is installed | 96 /// - [area] is the ChartArea on which this behavior is installed |
94 /// - [upperRenderPane] is the Selection that is rendered on top of the | 97 /// - [upperRenderPane] is the Selection that is rendered on top of the |
95 /// chart. Behaviors can use it to draw any visualization in response | 98 /// chart. Behaviors can use it to draw any visualization in response |
96 /// to user actions. | 99 /// to user actions. |
97 /// - [lowerRenderPane] is the Selection that is rendered below the chart. | 100 /// - [lowerRenderPane] is the Selection that is rendered below the chart. |
98 void init( | 101 void init( |
99 ChartArea area, Selection upperRenderPane, Selection lowerRenderPane); | 102 ChartArea area, Selection upperRenderPane, Selection lowerRenderPane); |
100 | 103 |
101 /// Clears all DOM created by this behavior, unsubscribes to event listeners | 104 /// Clears all DOM created by this behavior, unsubscribes to event listeners |
102 /// and clears any state. | 105 /// and clears any state. |
103 void dispose(); | 106 void dispose(); |
104 } | 107 } |
OLD | NEW |