Methods
public static addMembers(members?: any)
[Method] Add methods properties to the prototype of this class
Parameters
-
members?: any optional
Object
public static addStatics(members?: any): IBase
[Method] Add override static properties of this class
Parameters
-
members?: any optional
Object
Returns
IBase
Ext.Base this
public static callParent(args?: any)
[Method]
Parameters
-
args?: any optional
Object
public static create(red?: any, green?: number, blue?: number, alpha?: number): IColor
[Method] Convenience method for creating a color
Parameters
-
red?: any optional
Ext.draw.Color/String/Number[]/Number Red component (0..255), CSS color string or array of all components.
-
green?: number optional
Number Green component (0..255)
-
blue?: number optional
Number Blue component (0..255)
-
alpha?: number optional
Number Alpha component (0..1)
Returns
IColor
Ext.draw.Color
public static createAlias(alias?: any, origin?: any)
[Method] Create aliases for existing prototype methods
Parameters
-
alias?: any optional
String/Object The new method name, or an object to set multiple aliases. See flexSetter
-
origin?: any optional
String/Object The original method name
public static fly(red?: any, green?: number, blue?: number, alpha?: number): IColor
[Method] Returns a flyweight instance of Ext draw Color
Parameters
-
red?: any optional
Number/String Red component (0..255) or CSS color string.
-
green?: number optional
Number Green component (0..255)
-
blue?: number optional
Number Blue component (0..255)
-
alpha?: number optional
Number Alpha component (0..1)
Returns
IColor
Ext.draw.Color
public static fromHSL(h?: number, s?: number, l?: number): IColor
[Method] Create a new 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
IColor
Ext.draw.Color
public static fromString(string?: string): IColor
[Method] Parse the string and create a new color
Parameters
-
string?: string optional
String Color in string.
Returns
IColor
Ext.draw.Color
public static getName(): string
[Method] Get the current class name in string format
Returns
string
String className
public static override(members?: any): IBase
[Method] Override members of this class
Parameters
Returns
IBase
Ext.Base this class