|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.widgets.drawing.ColorStop
public class ColorStop
An object containing properties that is used in Gradient types
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.JsObject |
|---|
jsObj |
| Constructor Summary | |
|---|---|
ColorStop()
|
|
ColorStop(JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
static ColorStop[] |
convertToColorStopArray(JavaScriptObject nativeArray)
|
String |
getColor()
eg #ff0000 or red or rgb(255,0,0) |
float |
getOffset()
The relative offset for the color. |
float |
getOpacity()
0 is transparent, 1 is fully opaque |
static ColorStop |
getOrCreateRef(JavaScriptObject jsObj)
|
void |
setColor(String color)
eg #ff0000 or red or rgb(255,0,0) |
void |
setJavaScriptObject(JavaScriptObject jsObj)
|
void |
setOffset(float offset)
The relative offset for the color. |
void |
setOpacity(float opacity)
0 is transparent, 1 is fully opaque |
| Methods inherited from class com.smartgwt.client.core.RefDataClass |
|---|
getRef, getRef |
| Methods inherited from class com.smartgwt.client.core.JsObject |
|---|
isCreated, setJsObj |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColorStop()
public ColorStop(JavaScriptObject jsObj)
| Method Detail |
|---|
public static ColorStop getOrCreateRef(JavaScriptObject jsObj)
public void setJavaScriptObject(JavaScriptObject jsObj)
public void setColor(String color)
color - . See CSSColor. Default value is nullpublic String getColor()
CSSColorpublic void setOffset(float offset)
offset - offset Default value is 0.0public float getOffset()
public void setOpacity(float opacity)
opacity - opacity Default value is 1.0public float getOpacity()
public static ColorStop[] convertToColorStopArray(JavaScriptObject nativeArray)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||