Last change
on this file since 256 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
File size:
1007 bytes
|
Line | |
---|
1 | define(["dojo/_base/lang", "dojo/_base/declare"], |
---|
2 | function(lang, declare){ |
---|
3 | |
---|
4 | return declare("dojox.charting.action2d.Base", null, { |
---|
5 | // summary: |
---|
6 | // Base action class for plot and chart actions. |
---|
7 | |
---|
8 | constructor: function(chart, plot){ |
---|
9 | // summary: |
---|
10 | // Create a new base action. This can either be a plot or a chart action. |
---|
11 | // chart: dojox.charting.Chart |
---|
12 | // The chart this action applies to. |
---|
13 | // plot: String?|dojox.charting.plot2d.Base? |
---|
14 | // Optional target plot for this action. Default is "default". |
---|
15 | this.chart = chart; |
---|
16 | this.plot = plot ? (lang.isString(plot) ? this.chart.getPlot(plot) : plot) : this.chart.getPlot("default"); |
---|
17 | }, |
---|
18 | |
---|
19 | connect: function(){ |
---|
20 | // summary: |
---|
21 | // Connect this action to the plot or the chart. |
---|
22 | }, |
---|
23 | |
---|
24 | disconnect: function(){ |
---|
25 | // summary: |
---|
26 | // Disconnect this action from the plot or the chart. |
---|
27 | }, |
---|
28 | |
---|
29 | destroy: function(){ |
---|
30 | // summary: |
---|
31 | // Do any cleanup needed when destroying parent elements. |
---|
32 | this.disconnect(); |
---|
33 | } |
---|
34 | }); |
---|
35 | |
---|
36 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.