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

Unified Diff: charted/lib/charts/src/chart_series_impl.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « charted/lib/charts/src/chart_legend_impl.dart ('k') | charted/lib/charts/src/chart_state_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: charted/lib/charts/src/chart_series_impl.dart
diff --git a/charted/lib/charts/src/chart_series_impl.dart b/charted/lib/charts/src/chart_series_impl.dart
deleted file mode 100644
index 3fe88b98c4881b00f27cb01a3810b5c5b90b6ddf..0000000000000000000000000000000000000000
--- a/charted/lib/charts/src/chart_series_impl.dart
+++ /dev/null
@@ -1,53 +0,0 @@
-//
-// Copyright 2014 Google Inc. All rights reserved.
-//
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file or at
-// https://developers.google.com/open-source/licenses/bsd
-//
-
-part of charted.charts;
-
-class DefaultChartSeriesImpl extends ChangeNotifier implements ChartSeries {
- final String name;
-
- Iterable<String> _measureAxisIds;
- Iterable<int> _measures;
- ChartRenderer _renderer;
-
- SubscriptionsDisposer _disposer = new SubscriptionsDisposer();
-
- DefaultChartSeriesImpl(this.name, Iterable<int> measures, this._renderer,
- Iterable<String> measureAxisIds) {
- this.measures = measures;
- this.measureAxisIds = measureAxisIds;
- }
-
- set renderer(ChartRenderer value) {
- if (value != null && value == _renderer) return;
- _renderer.dispose();
- _renderer = value;
- notifyChange(new ChartSeriesChangeRecord(this));
- }
-
- ChartRenderer get renderer => _renderer;
-
- set measures(Iterable<int> value) {
- _measures = value;
-
- if (_measures is ObservableList) {
- _disposer.add(
- (_measures as ObservableList).listChanges.listen(_measuresChanged));
- }
- }
-
- Iterable<int> get measures => _measures;
-
- set measureAxisIds(Iterable<String> value) => _measureAxisIds = value;
- Iterable<String> get measureAxisIds => _measureAxisIds;
-
- _measuresChanged(_) {
- if (_measures is! ObservableList) return;
- notifyChange(new ChartSeriesChangeRecord(this));
- }
-}
« no previous file with comments | « charted/lib/charts/src/chart_legend_impl.dart ('k') | charted/lib/charts/src/chart_state_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698