source: Dev/branches/rest-dojo-ui/client/dojox/charting/axis2d/Base.js @ 256

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: 2.3 KB
Line 
1define(["dojo/_base/declare", "../Element"],
2        function(declare, Element){
3/*=====
4var Element = dojox.charting.Element;
5=====*/
6return declare("dojox.charting.axis2d.Base", Element, {
7        //      summary:
8        //              The base class for any axis.  This is more of an interface/API
9        //              definition than anything else; see dojox.charting.axis2d.Default
10        //              for more details.
11        constructor: function(chart, kwArgs){
12                //      summary:
13                //              Return a new base axis.
14                //      chart: dojox.charting.Chart
15                //              The chart this axis belongs to.
16                //      kwArgs: dojox.charting.axis2d.__AxisCtorArgs?
17                //              An optional arguments object to define the axis parameters.
18                this.vertical = kwArgs && kwArgs.vertical;
19        },
20        clear: function(){
21                //      summary:
22                //              Stub function for clearing the axis.
23                //      returns: dojox.charting.axis2d.Base
24                //              A reference to the axis for functional chaining.
25                return this;    //      dojox.charting.axis2d.Base
26        },
27        initialized: function(){
28                //      summary:
29                //              Return a flag as to whether or not this axis has been initialized.
30                //      returns: Boolean
31                //              If the axis is initialized or not.
32                return false;   //      Boolean
33        },
34        calculate: function(min, max, span){
35                //      summary:
36                //              Stub function to run the calcuations needed for drawing this axis.
37                //      returns: dojox.charting.axis2d.Base
38                //              A reference to the axis for functional chaining.
39                return this;    //      dojox.charting.axis2d.Base
40        },
41        getScaler: function(){
42                //      summary:
43                //              A stub function to return the scaler object created during calculate.
44                //      returns: Object
45                //              The scaler object (see dojox.charting.scaler.linear for more information)
46                return null;    //      Object
47        },
48        getTicks: function(){
49                //      summary:
50                //              A stub function to return the object that helps define how ticks are rendered.
51                //      returns: Object
52                //              The ticks object.
53                return null;    //      Object
54        },
55        getOffsets: function(){
56                //      summary:
57                //              A stub function to return any offsets needed for axis and series rendering.
58                //      returns: Object
59                //              An object of the form { l, r, t, b }.
60                return {l: 0, r: 0, t: 0, b: 0};        //      Object
61        },
62        render: function(dim, offsets){
63                //      summary:
64                //              Stub function to render this axis.
65                //      returns: dojox.charting.axis2d.Base
66                //              A reference to the axis for functional chaining.
67                this.dirty = false;
68                return this;    //      dojox.charting.axis2d.Base
69        }
70});
71});
Note: See TracBrowser for help on using the repository browser.