java.lang.Object | |||
↳ | com.google.gwt.core.client.JavaScriptObject | ||
↳ | com.google.gwt.canvas.dom.client.FillStrokeStyle | ||
↳ | com.google.gwt.canvas.dom.client.CssColor |
CSS Color object.
Experimental API: This API is still under development and is subject to change.
To handle dev mode we must wrap JSO strings in an array. Therefore, when in dev mode, CssColor is actually an array with one element that is the JSO. In Production Mode, this is not needed.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.canvas.dom.client.FillStrokeStyle
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the RGB color value.
| |||||||||||
Creates a CssColor object.
| |||||||||||
Returns the value of the CssColor, as a String.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.canvas.dom.client.FillStrokeStyle
| |||||||||||
From class
com.google.gwt.core.client.JavaScriptObject
| |||||||||||
From class
java.lang.Object
|
Sets the RGB color value.
r | red, integer between 0 and 255 |
---|---|
g | green, integer between 0 and 255 |
b | blue, integer between 0 and 255 |
CssColor
object
Creates a CssColor object. Examples: blue, #ff0000, #f00, rgb(255,0,0)
cssColor | the CSS color |
---|
CssColor
object
Returns the value of the CssColor, as a String.