Constructor and Description |
---|
RadialGradient()
Creates a new instance.
|
RadialGradient(double cx,
double cy,
double fx,
double fy,
double r,
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(java.lang.Object o) |
boolean |
equals(RadialGradient that) |
double |
getCX() |
double |
getCY() |
double |
getFX() |
double |
getFY() |
java.awt.Paint |
getPaint(Figure f,
double opacity) |
double |
getR() |
java.awt.Color[] |
getStopColors() |
double[] |
getStopOffsets() |
double[] |
getStopOpacities() |
java.awt.geom.AffineTransform |
getTransform() |
int |
hashCode() |
boolean |
isRelativeToFigureBounds() |
void |
makeRelativeToFigureBounds(Figure f) |
void |
setGradientCircle(double cx,
double cy,
double r) |
void |
setRelativeToFigureBounds(boolean b) |
void |
setStops(double[] offsets,
java.awt.Color[] colors,
double[] stopOpacities) |
void |
setTransform(java.awt.geom.AffineTransform tx) |
void |
transform(java.awt.geom.AffineTransform tx) |
public RadialGradient()
public RadialGradient(double cx, double cy, double fx, double fy, double r, double[] stopOffsets, java.awt.Color[] stopColors, double[] stopOpacities, boolean isRelativeToFigureBounds, java.awt.geom.AffineTransform tx)
public void setGradientCircle(double cx, double cy, double r)
public void setStops(double[] offsets, java.awt.Color[] colors, double[] stopOpacities)
public void setRelativeToFigureBounds(boolean b)
public void makeRelativeToFigureBounds(Figure f)
makeRelativeToFigureBounds
in interface Gradient
public java.awt.Paint getPaint(Figure f, double opacity)
public double getCX()
public double getCY()
public double getFX()
public double getFY()
public double getR()
public double[] getStopOffsets()
public java.awt.Color[] getStopColors()
public double[] getStopOpacities()
public boolean isRelativeToFigureBounds()
isRelativeToFigureBounds
in interface Gradient
public void setTransform(java.awt.geom.AffineTransform tx)
public java.awt.geom.AffineTransform getTransform()
public void transform(java.awt.geom.AffineTransform tx)
public java.lang.Object clone()
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(RadialGradient that)