X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/docs/output/Ext.draw.Draw.js diff --git a/docs/output/Ext.draw.Draw.js b/docs/output/Ext.draw.Draw.js new file mode 100644 index 00000000..287fe54a --- /dev/null +++ b/docs/output/Ext.draw.Draw.js @@ -0,0 +1 @@ +Ext.data.JsonP.Ext_draw_Draw({"tagname":"class","html":"

Hierarchy

Ext.Base
Ext.draw.Draw

Requires

Files

NOTE This is a private utility class for internal use by the framework. Don't rely on its existence.

Base Drawing class. Provides base drawing functions.

\n
Defined By

Properties

Get the reference to the current class from which this object was instantiated. ...

Get the reference to the current class from which this object was instantiated. Unlike statics,\nthis.self is scope-dependent and it's meant to be used for dynamic inheritance. See statics\nfor a detailed comparison

\n\n
Ext.define('My.Cat', {\n    statics: {\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        alert(this.self.speciesName); / dependent on 'this'\n\n        return this;\n    },\n\n    clone: function() {\n        return new this.self();\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n    statics: {\n        speciesName: 'Snow Leopard'         // My.SnowLeopard.speciesName = 'Snow Leopard'\n    }\n});\n\nvar cat = new My.Cat();                     // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard();     // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));             // alerts 'My.SnowLeopard'\n
\n
Defined By

Methods

( Array/Arguments args ) : Objectprotected
Call the original method that was previously overridden with override\n\nExt.define('My.Cat', {\n constructor: functi...

Call the original method that was previously overridden with override

\n\n
Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n\n        return this;\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        var instance = this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n\n        return instance;\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n
\n

Parameters

  • args : Array/Arguments

    The arguments, either an array or the arguments object

    \n

Returns

  • Object

    Returns the result after calling the overridden method

    \n
( Array/Arguments args ) : Objectprotected
Call the parent's overridden method. ...

Call the parent's overridden method. For example:

\n\n
Ext.define('My.own.A', {\n    constructor: function(test) {\n        alert(test);\n    }\n});\n\nExt.define('My.own.B', {\n    extend: 'My.own.A',\n\n    constructor: function(test) {\n        alert(test);\n\n        this.callParent([test + 1]);\n    }\n});\n\nExt.define('My.own.C', {\n    extend: 'My.own.B',\n\n    constructor: function() {\n        alert(\"Going to call parent's overriden constructor...\");\n\n        this.callParent(arguments);\n    }\n});\n\nvar a = new My.own.A(1); // alerts '1'\nvar b = new My.own.B(1); // alerts '1', then alerts '2'\nvar c = new My.own.C(2); // alerts \"Going to call parent's overriden constructor...\"\n                         // alerts '2', then alerts '3'\n
\n

Parameters

  • args : Array/Arguments

    The arguments, either an array or the arguments object\nfrom the current method, for example: this.callParent(arguments)

    \n

Returns

  • Object

    Returns the result from the superclass' method

    \n
Initialize configuration for this class. ...

Initialize configuration for this class. a typical example:

\n\n
Ext.define('My.awesome.Class', {\n    // The default config\n    config: {\n        name: 'Awesome',\n        isAwesome: true\n    },\n\n    constructor: function(config) {\n        this.initConfig(config);\n\n        return this;\n    }\n});\n\nvar awesome = new My.awesome.Class({\n    name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n
\n

Parameters

Returns

  • Object

    mixins The mixin prototypes as key - value pairs

    \n
A utility method to deduce an appropriate tick configuration for the data set of given\nfeature. ...

A utility method to deduce an appropriate tick configuration for the data set of given\nfeature.

\n

Parameters

  • from : Number/Date

    The minimum value in the data

    \n
  • to : Number/Date

    The maximum value in the data

    \n
  • stepsMax : Number

    The maximum number of ticks

    \n

Returns

  • Object

    The calculated step and ends info; When from and to are Dates, refer to the\nreturn value of snapEndsByDate. For numerical from and to the return value contains:

    \n
    • from : Number

      The result start value, which may be lower than the original start value

      \n
    • to : Number

      The result end value, which may be higher than the original end value

      \n
    • power : Number

      The calculate power.

      \n
    • step : Number

      The value size of each step

      \n
    • steps : Number

      The number of steps.

      \n
A utility method to deduce an appropriate tick configuration for the data set of given\nfeature when data is Dates. ...

A utility method to deduce an appropriate tick configuration for the data set of given\nfeature when data is Dates. Refer to snapEnds for numeric data.

\n

Parameters

  • from : Date

    The minimum value in the data

    \n
  • to : Date

    The maximum value in the data

    \n
  • stepsMax : Number

    The maximum number of ticks

    \n
  • lockEnds : Boolean

    If true, the 'from' and 'to' parameters will be used as fixed end values\nand will not be adjusted

    \n

Returns

  • Object

    The calculated step and ends info; properties are:

    \n
    • from : Date

      The result start value, which may be lower than the original start value

      \n
    • to : Date

      The result end value, which may be higher than the original end value

      \n
    • step : Number

      The value size of each step

      \n
    • steps : Number

      The number of steps.\nNOTE: the steps may not divide the from/to range perfectly evenly;\nthere may be a smaller distance between the last step and the end value than between prior\nsteps, particularly when the endsLocked param is true. Therefore it is best to not use\nthe steps result when finding the axis tick points, instead use the step, to, and\nfrom to find the correct point for each tick.

      \n
A utility method to deduce an appropriate tick configuration for the data set of given\nfeature and specific step size. ...

A utility method to deduce an appropriate tick configuration for the data set of given\nfeature and specific step size.

\n

Parameters

  • from : Date

    The minimum value in the data

    \n
  • to : Date

    The maximum value in the data

    \n
  • step : Array

    An array with two components: The first is the unit of the step (day, month, year, etc).\nThe second one is the number of units for the step (1, 2, etc.).

    \n
  • lockEnds : Boolean

    If true, the 'from' and 'to' parameters will be used as fixed end values\nand will not be adjusted

    \n

Returns

Get the reference to the class from which this object was instantiated. ...

Get the reference to the class from which this object was instantiated. Note that unlike self,\nthis.statics() is scope-independent and it always returns the class from which it was called, regardless of what\nthis points to during run-time

\n\n
Ext.define('My.Cat', {\n    statics: {\n        totalCreated: 0,\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        var statics = this.statics();\n\n        alert(statics.speciesName);     // always equals to 'Cat' no matter what 'this' refers to\n                                        // equivalent to: My.Cat.speciesName\n\n        alert(this.self.speciesName);   // dependent on 'this'\n\n        statics.totalCreated++;\n\n        return this;\n    },\n\n    clone: function() {\n        var cloned = new this.self;                      // dependent on 'this'\n\n        cloned.groupName = this.statics().speciesName;   // equivalent to: My.Cat.speciesName\n\n        return cloned;\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n\n    statics: {\n        speciesName: 'Snow Leopard'     // My.SnowLeopard.speciesName = 'Snow Leopard'\n    },\n\n    constructor: function() {\n        this.callParent();\n    }\n});\n\nvar cat = new My.Cat();                 // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));         // alerts 'My.SnowLeopard'\nalert(clone.groupName);                 // alerts 'Cat'\n\nalert(My.Cat.totalCreated);             // alerts 3\n
\n

Returns

","allMixins":[],"meta":{},"requires":["Ext.draw.Color"],"deprecated":null,"extends":"Ext.Base","inheritable":false,"static":false,"superclasses":["Ext.Base","Ext.draw.Draw"],"singleton":true,"code_type":"ext_define","alias":null,"statics":{"property":[],"css_var":[],"css_mixin":[],"cfg":[],"method":[],"event":[]},"subclasses":[],"uses":[],"protected":false,"mixins":[],"members":{"property":[{"tagname":"property","deprecated":null,"static":false,"owner":"Ext.Base","template":null,"required":null,"protected":true,"name":"self","id":"property-self"}],"css_var":[],"css_mixin":[],"cfg":[],"method":[{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Base","template":false,"required":null,"protected":true,"name":"callOverridden","id":"method-callOverridden"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Base","template":false,"required":null,"protected":true,"name":"callParent","id":"method-callParent"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Base","template":false,"required":null,"protected":true,"name":"initConfig","id":"method-initConfig"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.draw.Draw","template":false,"required":null,"protected":false,"name":"snapEnds","id":"method-snapEnds"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.draw.Draw","template":false,"required":null,"protected":false,"name":"snapEndsByDate","id":"method-snapEndsByDate"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.draw.Draw","template":false,"required":null,"protected":false,"name":"snapEndsByDateAndStep","id":"method-snapEndsByDateAndStep"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Base","template":false,"required":null,"protected":true,"name":"statics","id":"method-statics"}],"event":[]},"private":true,"component":false,"name":"Ext.draw.Draw","alternateClassNames":[],"id":"class-Ext.draw.Draw","mixedInto":[],"xtypes":{},"files":[{"href":"Draw.html#Ext-draw-Draw","filename":"Draw.js"}]}); \ No newline at end of file