Interface IColor

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 lightnessFactor?: number

[Config Option] (Number)

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 createDarker(factor?: number): IColor

[Method] Return a new color that is darker than this color

Parameters

  • factor?: number optional

    Number Darker factor (0..1).

Returns

IColor

Ext.draw.Color

optional public createLighter(factor?: number): IColor

[Method] Return a new color that is lighter than this color

Parameters

  • factor?: number optional

    Number Lighter factor (0..1).

Returns

IColor

Ext.draw.Color

optional public destroy()

[Method]

optional public getGrayscale(): number

[Method] Returns the gray value 0 to 255 of the color

Returns

number

Number

optional public getHSL(target?: Array<any>): Array<any>

[Method] Get the equivalent HSL components of the color

Parameters

  • target?: Array<any> optional

    Array Optional array to receive the values.

Returns

Array<any>

Array

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 setFromString(str?: string): any

[Method] Parse the string and set current color

Parameters

  • str?: string optional

    String Color in string.

Returns

any

Object this

optional public setHSL(h?: number, s?: number, l?: number): any

[Method] Set current color based on the specified HSL values

Parameters

  • h?: number optional

    Number Hue component (0..359)

  • s?: number optional

    Number Saturation component (0..1)

  • l?: number optional

    Number Lightness component (0..1)

Returns

any

Object this

optional public toHex(color?: any): string

[Method] Convert a color to hexadecimal format

Parameters

  • color?: any optional

    String/Array The color value (i.e 'rgb(255, 255, 255)', 'color: #ffffff'). Can also be an Array, in this case the function handles the first member.

Returns

string

String The color in hexadecimal format.

optional public toString(): string

[Method] Return the color in the hex format i e

Returns

string

String