Interface IPoint

Hierarchy

Index

Properties

Methods

Properties

optional public alias?: Array<string>

[Config Option] (String[])

optional public alternateClassName?: any

[Config Option] (String/String[])

optional public config?: any

[Config Option] (Object)

optional public extend?: string

[Config Option] (String)

optional public inheritableStatics?: any

[Config Option] (Object)

optional public mixins?: any

[Config Option] (Object)

optional public platformConfig?: any

[Config Option] (Object)

optional public self?: IClass

[Property] (Ext.Class)

optional public singleton?: boolean

[Config Option] (Boolean)

optional public statics?: any

[Config Option] (Object)

optional public uses?: Array<string>

[Config Option] (String[])

Methods

optional public callOverridden(args?: any): any

[Method] Call the original method that was previously overridden with override This method is deprecated as callParent does

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments)

Returns

any

Object Returns the result of calling the overridden method

optional public callParent(args?: any): any

[Method] Call the parent method of the current method

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments)

Returns

any

Object Returns the result of calling the parent method

optional public callSuper(args?: any): any

[Method] This method is used by an override to call the superclass method but bypass any overridden method

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments)

Returns

any

Object Returns the result of calling the superclass method

optional public clone(): IPoint

[Method] Copy a new instance of this point

Returns

IPoint

Ext.util.Point The new point.

optional public copy(): IPoint

[Method] Clones this Point

Returns

IPoint

Ext.util.Point The new point.

optional public copyFrom(point?: any): IPoint

[Method] Copy the x and y values of another point object to this point itself

Parameters

  • point?: any optional

    Ext.util.Point/Object .

Returns

IPoint

Ext.util.Point This point.

optional public destroy()

[Method]

optional public equals(point?: any): boolean

[Method] Compare this point and another point

Parameters

  • point?: any optional

    Ext.util.Point/Object The point to compare with, either an instance of Ext.util.Point or an object with x and y properties.

Returns

boolean

Boolean Returns whether they are equivalent.

optional public getInitialConfig(name?: string): any

[Method] Returns the initial configuration passed to constructor

Parameters

  • name?: string optional

    String When supplied, value for particular configuration option is returned, otherwise the full config object is returned.

Returns

any

Object/Mixed

optional public initConfig(instanceConfig?: any): any

[Method] Initialize configuration for this class

Parameters

  • instanceConfig?: any optional

    Object

Returns

any

Object mixins The mixin prototypes as key - value pairs

optional public isCloseTo(point?: any, threshold?: any): boolean

[Method] Whether the given point is not away from this point within the given threshold amount

Parameters

  • point?: any optional

    Ext.util.Point/Object The point to check with, either an instance of Ext.util.Point or an object with x and y properties.

  • threshold?: any optional

    Object/Number Can be either an object with x and y properties or a number.

Returns

boolean

Boolean

optional public isWithin(): boolean

[Method] Returns true if this point is close to another one

Returns

boolean

Boolean

optional public roundedEquals(point?: any): boolean

[Method] Compare this point with another point when the x and y values of both points are rounded

Parameters

  • point?: any optional

    Ext.util.Point/Object The point to compare with, either an instance of Ext.util.Point or an object with x and y properties.

Returns

boolean

Boolean

optional public toString(): string

[Method] Returns a human eye friendly string that represents this point useful for debugging

Returns

string

String For example Point[12,8].

optional public translate(x?: number, y?: number): boolean

[Method] Translate this point by the given amounts

Parameters

  • x?: number optional

    Number Amount to translate in the x-axis.

  • y?: number optional

    Number Amount to translate in the y-axis.

Returns

boolean

Boolean