summaryrefslogtreecommitdiff
path: root/js/dojo/dojox/charting/action2d/Base.js
diff options
context:
space:
mode:
authorTristan Zur <tzur@web.web.ccwn.org>2014-03-27 22:27:47 +0100
committerTristan Zur <tzur@web.web.ccwn.org>2014-03-27 22:27:47 +0100
commitb62676ca5d3d6f6ba3f019ea3f99722e165a98d8 (patch)
tree86722cb80f07d4569f90088eeaea2fc2f6e2ef94 /js/dojo/dojox/charting/action2d/Base.js
Initial commit of intern.ccwn.org contentsHEADmaster
Diffstat (limited to 'js/dojo/dojox/charting/action2d/Base.js')
-rw-r--r--js/dojo/dojox/charting/action2d/Base.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/js/dojo/dojox/charting/action2d/Base.js b/js/dojo/dojox/charting/action2d/Base.js
new file mode 100644
index 0000000..9f57e25
--- /dev/null
+++ b/js/dojo/dojox/charting/action2d/Base.js
@@ -0,0 +1,37 @@
+//>>built
+define("dojox/charting/action2d/Base", ["dojo/_base/lang", "dojo/_base/declare"],
+ function(lang, declare){
+
+ return declare("dojox.charting.action2d.Base", null, {
+ // summary:
+ // Base action class for plot and chart actions.
+
+ constructor: function(chart, plot){
+ // summary:
+ // Create a new base action. This can either be a plot or a chart action.
+ // chart: dojox.charting.Chart
+ // The chart this action applies to.
+ // plot: String?|dojox.charting.plot2d.Base?
+ // Optional target plot for this action. Default is "default".
+ this.chart = chart;
+ this.plot = plot ? (lang.isString(plot) ? this.chart.getPlot(plot) : plot) : this.chart.getPlot("default");
+ },
+
+ connect: function(){
+ // summary:
+ // Connect this action to the plot or the chart.
+ },
+
+ disconnect: function(){
+ // summary:
+ // Disconnect this action from the plot or the chart.
+ },
+
+ destroy: function(){
+ // summary:
+ // Do any cleanup needed when destroying parent elements.
+ this.disconnect();
+ }
+ });
+
+});