|
|||||||||
| 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.widgets.drawing.Gradient
com.smartgwt.client.widgets.drawing.SimpleGradient
public class SimpleGradient
An derived class which is used for simple gradient definitions that only requires 2 colors and a direction
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.JsObject |
|---|
jsObj |
| Constructor Summary | |
|---|---|
SimpleGradient()
|
|
SimpleGradient(JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
float |
getDirection()
Direction vector in degrees |
String |
getEndColor()
The color at the end of the gradient. |
static SimpleGradient |
getOrCreateRef(JavaScriptObject jsObj)
|
String |
getStartColor()
The color at the start of the gradient. |
void |
setDirection(float direction)
Direction vector in degrees |
void |
setEndColor(String endColor)
The color at the end of the gradient. |
void |
setStartColor(String startColor)
The color at the start of the gradient. |
| Methods inherited from class com.smartgwt.client.widgets.drawing.Gradient |
|---|
getColorStops, setColorStops |
| 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 SimpleGradient()
public SimpleGradient(JavaScriptObject jsObj)
| Method Detail |
|---|
public static SimpleGradient getOrCreateRef(JavaScriptObject jsObj)
public void setDirection(float direction)
direction - direction Default value is 0.0public float getDirection()
public void setEndColor(String endColor)
setEndColor in class GradientendColor - endColor Default value is nullpublic String getEndColor()
getEndColor in class Gradientpublic void setStartColor(String startColor)
setStartColor in class GradientstartColor - startColor Default value is nullpublic String getStartColor()
getStartColor in class Gradient
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||