public final class LinearGradient extends Gradient
Paint.Type
Modifier and Type | Field and Description |
---|---|
private float |
x1 |
private float |
x2 |
private float |
y1 |
private float |
y2 |
Constructor and Description |
---|
LinearGradient(float x1,
float y1,
float x2,
float y2,
BaseTransform gradientTransform,
boolean proportional,
int spreadMethod,
java.util.List<Stop> stops) |
Modifier and Type | Method and Description |
---|---|
float |
getX1() |
float |
getX2() |
float |
getY1() |
float |
getY2() |
getGradientOffset, getGradientTransformNoClone, getNumStops, getSpreadMethod, getStops, isOpaque, setGradientOffset
getType, isMutable, isProportional
public LinearGradient(float x1, float y1, float x2, float y2, BaseTransform gradientTransform, boolean proportional, int spreadMethod, java.util.List<Stop> stops)