public abstract class Pattern
extends org.freedesktop.bindings.Proxy
Modifier and Type | Method and Description |
---|---|
void |
addColorStopRGB(double offset,
double red,
double green,
double blue)
Add a colour stop to a Pattern gradient.
|
void |
addColorStopRGBA(double offset,
double red,
double green,
double blue,
double alpha)
Add a colour stop to a Pattern gradient.
|
Surface |
getSurface()
Get the Surface backing this Pattern.
|
void |
setExtend(Extend extend)
Specify the strategy to be used when drawing the pattern outside of the
area implicit in the how the Pattern itself is described.
|
void |
setFilter(Filter filter)
Sets the filter that resizing operations should use with this pattern.
|
public void addColorStopRGB(double offset, double red, double green, double blue)
addColorStopRGBA(offset, red, green, blue, 1.0);See
addColorStopRGBA()
for documentation of the offset
parameter. The colour parameters are the same as for
setSource()
.public void addColorStopRGBA(double offset, double red, double green, double blue, double alpha)
The offset
parameter provides for the ordering of stops.
When a Pattern applies its colour stops, it works through them in the
order specified. If two stops are specified with identical
offset
values, they will be sorted according to the order
in which the stops are added, is used for making sharp color
transitions instead of a blend.
Colour stops handle colour arguments the same way as
setSource()
does.
public Surface getSurface()
public void setExtend(Extend extend)
If you're looking at this, it's probably because you're wondering why
your Pattern isn't extending. Call this with REPEAT
.
public void setFilter(Filter filter)