public class ColorStop extends RefDataClass
id
factoryCreated, factoryProperties
Constructor and Description |
---|
ColorStop() |
ColorStop(com.google.gwt.core.client.JavaScriptObject jsObj) |
ColorStop(java.lang.String color,
float offset) |
Modifier and Type | Method and Description |
---|---|
java.lang.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(com.google.gwt.core.client.JavaScriptObject jsObj) |
ColorStop |
setColor(java.lang.String color)
eg #ff0000 or red or rgb(255,0,0)
|
ColorStop |
setOffset(float offset)
The relative offset for the color.
|
ColorStop |
setOpacity(float opacity)
0 is transparent, 1 is fully opaque
|
getRef, getRef, internalSetID
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, 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
public ColorStop()
public ColorStop(com.google.gwt.core.client.JavaScriptObject jsObj)
public ColorStop(java.lang.String color, float offset)
public static ColorStop getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public ColorStop setColor(java.lang.String color)
public java.lang.String getColor()
CSSColor
public ColorStop setOffset(float offset)
offset
- New offset value. Default value is 0.0ColorStop
instance, for chaining setter callspublic float getOffset()
public ColorStop setOpacity(float opacity)
opacity
- New opacity value. Default value is 1.0ColorStop
instance, for chaining setter callspublic float getOpacity()