|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.chart.client.draw.Color
com.sencha.gxt.chart.client.draw.Gradient
public class Gradient
A color representing a linear gradient.
| Field Summary |
|---|
| Fields inherited from class com.sencha.gxt.chart.client.draw.Color |
|---|
NONE |
| Constructor Summary | |
|---|---|
Gradient(String id,
double angle)
Creates a gradient using the given id and angle. |
|
| Method Summary | |
|---|---|
void |
addStop(int offset,
Color color)
Adds a stop to the gradient using the given offset and color. |
void |
addStop(Stop stop)
Adds the given stop to the gradient. |
void |
clearStops()
Removes all stops from the gradient. |
double |
getAngle()
Returns the angle of the gradient. |
String |
getId()
Returns the id of the gradient. |
List<Stop> |
getStops()
Returns the stops of the gradient. |
void |
setAngle(double angle)
Sets the angle of the gradient. |
void |
setId(String id)
Sets the id of the gradient. |
| Methods inherited from class com.sencha.gxt.chart.client.draw.Color |
|---|
getColor, setColor, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Gradient(String id,
double angle)
id - the gradient idangle - the angle of the gradient| Method Detail |
|---|
public void addStop(int offset,
Color color)
offset - the offset of the stopcolor - the color of the stoppublic void addStop(Stop stop)
stop - the stop to be addedpublic void clearStops()
public double getAngle()
public String getId()
public List<Stop> getStops()
public void setAngle(double angle)
angle - the new angle of the gradientpublic void setId(String id)
id - the new id of the gradient
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||