Class LinearGradient
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.widgets.drawing.Gradient
com.smartgwt.client.widgets.drawing.LinearGradient
- All Implemented Interfaces:
- HasHandlers
- 
Field SummaryFields inherited from class com.smartgwt.client.core.DataClassfactoryCreated, factoryProperties
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic LinearGradientgetOrCreateRef(JavaScriptObject jsObj) getX1()X coordinate of the start point.getX2()X coordinate of the end point.getY1()Y coordinate of the start point.getY2()Y coordinate of the end point.X coordinate of the start point.X coordinate of the end point.Y coordinate of the start point.Y coordinate of the end point.Methods inherited from class com.smartgwt.client.widgets.drawing.GradientgetColorStops, getEndColor, getId, getStartColor, setColorStops, setEndColor, setId, setStartColorMethods inherited from class com.smartgwt.client.core.DataClassapplyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
- 
Constructor Details- 
LinearGradientpublic LinearGradient()
- 
LinearGradient
 
- 
- 
Method Details- 
getOrCreateRef
- 
setX1X coordinate of the start point. This can be a number or a percentage of the width of the bounding box of the DrawItem to which it is applied.- Parameters:
- x1- New x1 value. Default value is null
- Returns:
- LinearGradientinstance, for chaining setter calls
 
- 
getX1X coordinate of the start point. This can be a number or a percentage of the width of the bounding box of the DrawItem to which it is applied.- Returns:
- Current x1 value. Default value is null
 
- 
setX2X coordinate of the end point. This can be a number or a percentage of the width of the bounding box of the DrawItem to which it is applied.- Parameters:
- x2- New x2 value. Default value is null
- Returns:
- LinearGradientinstance, for chaining setter calls
 
- 
getX2X coordinate of the end point. This can be a number or a percentage of the width of the bounding box of the DrawItem to which it is applied.- Returns:
- Current x2 value. Default value is null
 
- 
setY1Y coordinate of the start point. This can be a number or a percentage of the height of the bounding box of the DrawItem to which it is applied.- Parameters:
- y1- New y1 value. Default value is null
- Returns:
- LinearGradientinstance, for chaining setter calls
 
- 
getY1Y coordinate of the start point. This can be a number or a percentage of the height of the bounding box of the DrawItem to which it is applied.- Returns:
- Current y1 value. Default value is null
 
- 
setY2Y coordinate of the end point. This can be a number or a percentage of the height of the bounding box of the DrawItem to which it is applied.- Parameters:
- y2- New y2 value. Default value is null
- Returns:
- LinearGradientinstance, for chaining setter calls
 
- 
getY2Y coordinate of the end point. This can be a number or a percentage of the height of the bounding box of the DrawItem to which it is applied.- Returns:
- Current y2 value. Default value is null
 
 
-