Constructor and Description |
---|
LinearGradient()
Creates a new instance.
|
LinearGradient(double x1,
double y1,
double x2,
double y2,
double[] stopOffsets,
java.awt.Color[] stopColors,
double[] stopOpacities,
boolean isRelativeToFigureBounds,
java.awt.geom.AffineTransform tx) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(LinearGradient that) |
boolean |
equals(java.lang.Object o) |
java.awt.Paint |
getPaint(Figure f,
double opacity) |
java.awt.Color[] |
getStopColors() |
double[] |
getStopOffsets() |
double[] |
getStopOpacities() |
java.awt.geom.AffineTransform |
getTransform() |
double |
getX1() |
double |
getX2() |
double |
getY1() |
double |
getY2() |
int |
hashCode() |
boolean |
isRelativeToFigureBounds() |
void |
makeRelativeToFigureBounds(Figure f) |
void |
setGradientVector(double x1,
double y1,
double x2,
double y2) |
void |
setRelativeToFigureBounds(boolean b) |
void |
setStops(double[] offsets,
java.awt.Color[] colors,
double[] stopOpacities) |
void |
setTransform(java.awt.geom.AffineTransform tx) |
java.lang.String |
toString() |
void |
transform(java.awt.geom.AffineTransform tx) |
public LinearGradient()
public LinearGradient(double x1, double y1, double x2, double y2, double[] stopOffsets, java.awt.Color[] stopColors, double[] stopOpacities, boolean isRelativeToFigureBounds, java.awt.geom.AffineTransform tx)
public void setGradientVector(double x1, double y1, double x2, double y2)
public void setStops(double[] offsets, java.awt.Color[] colors, double[] stopOpacities)
public void setRelativeToFigureBounds(boolean b)
public boolean isRelativeToFigureBounds()
isRelativeToFigureBounds
in interface Gradient
public double getX1()
public double getY1()
public double getX2()
public double getY2()
public double[] getStopOffsets()
public java.awt.Color[] getStopColors()
public double[] getStopOpacities()
public java.awt.geom.AffineTransform getTransform()
public java.awt.Paint getPaint(Figure f, double opacity)
public java.lang.String toString()
toString
in class java.lang.Object
public void setTransform(java.awt.geom.AffineTransform tx)
public void transform(java.awt.geom.AffineTransform tx)
public java.lang.Object clone()
public void makeRelativeToFigureBounds(Figure f)
makeRelativeToFigureBounds
in interface Gradient
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(LinearGradient that)