com.smartgwt.client.widgets.drawing
Class Gradient

java.lang.Object
  extended by com.smartgwt.client.core.JsObject
      extended by com.smartgwt.client.core.DataClass
          extended by com.smartgwt.client.widgets.drawing.Gradient
Direct Known Subclasses:
LinearGradient, RadialGradient, SimpleGradient

public class Gradient
extends DataClass

An abstract class which holds an Array of ColorStop or start/stop colors.


Field Summary
 
Fields inherited from class com.smartgwt.client.core.JsObject
jsObj
 
Constructor Summary
Gradient()
           
Gradient(JavaScriptObject jsObj)
           
 
Method Summary
 ColorStop[] getColorStops()
           
 String getEndColor()
          if both startColor and endColor are set then colorStops is ignored
static Gradient getOrCreateRef(JavaScriptObject jsObj)
           
 String getStartColor()
          if both startColor and endColor are set then colorStops is ignored
 void setColorStops(ColorStop... colorStops)
           
 void setEndColor(String endColor)
          if both startColor and endColor are set then colorStops is ignored
 void setStartColor(String startColor)
          if both startColor and endColor are set then colorStops is ignored
 
Methods inherited from class com.smartgwt.client.core.DataClass
doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute
 
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

Gradient

public Gradient()

Gradient

public Gradient(JavaScriptObject jsObj)
Method Detail

getOrCreateRef

public static Gradient getOrCreateRef(JavaScriptObject jsObj)

setColorStops

public void setColorStops(ColorStop... colorStops)
Parameters:
colorStops - colorStops Default value is null

getColorStops

public ColorStop[] getColorStops()
Returns:
ColorStop

setEndColor

public void setEndColor(String endColor)
if both startColor and endColor are set then colorStops is ignored

Parameters:
endColor - endColor Default value is null

getEndColor

public String getEndColor()
if both startColor and endColor are set then colorStops is ignored

Returns:
String

setStartColor

public void setStartColor(String startColor)
if both startColor and endColor are set then colorStops is ignored

Parameters:
startColor - startColor Default value is null

getStartColor

public String getStartColor()
if both startColor and endColor are set then colorStops is ignored

Returns:
String