com.smartgwt.client.widgets.drawing
Class SimpleGradient

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
              extended by com.smartgwt.client.widgets.drawing.SimpleGradient

public class SimpleGradient
extends Gradient

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(com.google.gwt.core.client.JavaScriptObject jsObj)
           
 
Method Summary
 float getDirection()
          Direction vector in degrees
 java.lang.String getEndColor()
          The color at the end of the gradient.
static SimpleGradient getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
           
 java.lang.String getStartColor()
          The color at the start of the gradient.
 void setDirection(float direction)
          Direction vector in degrees
 void setEndColor(java.lang.String endColor)
          The color at the end of the gradient.
 void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
           
 void setStartColor(java.lang.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.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

SimpleGradient

public SimpleGradient()

SimpleGradient

public SimpleGradient(com.google.gwt.core.client.JavaScriptObject jsObj)
Method Detail

getOrCreateRef

public static SimpleGradient getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)

setJavaScriptObject

public void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
Overrides:
setJavaScriptObject in class Gradient

setDirection

public void setDirection(float direction)
Direction vector in degrees

Parameters:
direction - direction Default value is 0.0

getDirection

public float getDirection()
Direction vector in degrees

Returns:
float

setEndColor

public void setEndColor(java.lang.String endColor)
The color at the end of the gradient.

Overrides:
setEndColor in class Gradient
Parameters:
endColor - . See String. Default value is null

getEndColor

public java.lang.String getEndColor()
The color at the end of the gradient.

Overrides:
getEndColor in class Gradient
Returns:
. See String

setStartColor

public void setStartColor(java.lang.String startColor)
The color at the start of the gradient.

Overrides:
setStartColor in class Gradient
Parameters:
startColor - . See String. Default value is null

getStartColor

public java.lang.String getStartColor()
The color at the start of the gradient.

Overrides:
getStartColor in class Gradient
Returns:
. See String