public class ColorStop extends RefDataClass
id
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) |
void |
setColor(java.lang.String color)
eg #ff0000 or red or rgb(255,0,0)
|
void |
setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj) |
void |
setOffset(float offset)
The relative offset for the color.
|
void |
setOpacity(float opacity)
0 is transparent, 1 is fully opaque
|
getRef, getRef, internalSetID
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, setAttributeAsJavaObject
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 void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setColor(java.lang.String color)
color
- . See CSSColor
. Default value is nullpublic java.lang.String getColor()
CSSColor
public void setOffset(float offset)
offset
- offset Default value is 0.0public float getOffset()
public void setOpacity(float opacity)
opacity
- opacity Default value is 1.0public float getOpacity()