ALPHA_FULLY_OPAQUE, ALPHA_FULLY_TRANSPARENT, ALPHA_SHIFT| Constructor and Description |
|---|
LinearGradient(java.awt.Color[] colors,
float[] fractions,
java.awt.geom.AffineTransform matrix)
Creates a painter over the given linear gradient.
|
LinearGradient(java.awt.Color[] colors,
float[] fractions,
float[] matrix)
Creates a painter over the given linear gradient.
|
LinearGradient(java.awt.Color[] colors,
float[] fractions,
float[] matrix,
float xStart,
float yStart,
float xEnd,
float yEnd)
Creates a painter over the given linear gradient.
|
LinearGradient(java.awt.Color[] colors,
float[] fractions,
float xStart,
float yStart,
float xEnd,
float yEnd)
Creates a painter over the given linear gradient.
|
| Modifier and Type | Method and Description |
|---|---|
LinearGradient |
apply(PaintVisitor transformer)
Creates a new painter applying the given visitor.
|
java.awt.Paint |
getPaint()
Creates an AWT
Paint object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyOpacity, applyOpacitypublic LinearGradient(java.awt.Color[] colors,
float[] fractions,
float[] matrix)
colors - array of colorsfractions - array of fractionsmatrix - gradient vector transformationjava.lang.IllegalArgumentException - whether the number of colors is different than the number of fractions.public LinearGradient(java.awt.Color[] colors,
float[] fractions,
float xStart,
float yStart,
float xEnd,
float yEnd)
colors - array of colorsfractions - array of fractionsxStart - the x-coordinate for the start of the gradient vectoryStart - the y-coordinate for the start of the gradient vectorxEnd - the x-coordinate for the end of the gradient vectoryEnd - the y-coordinate for the end of the gradient vectorjava.lang.IllegalArgumentException - whether the number of colors is different than the number of fractions.public LinearGradient(java.awt.Color[] colors,
float[] fractions,
float[] matrix,
float xStart,
float yStart,
float xEnd,
float yEnd)
colors - array of colorsfractions - array of fractionsmatrix - gradient vector transformationxStart - the x-coordinate for the start of the gradient vectoryStart - the y-coordinate for the start of the gradient vectorxEnd - the x-coordinate for the end of the gradient vectoryEnd - the y-coordinate for the end of the gradient vectorjava.lang.IllegalArgumentException - whether the number of colors is different than the number of fractions.public LinearGradient(java.awt.Color[] colors,
float[] fractions,
java.awt.geom.AffineTransform matrix)
colors - array of colorsfractions - array of fractionsmatrix - gradient vector transformationjava.lang.IllegalArgumentException - whether the number of colors is different than the number of fractions.public LinearGradient apply(PaintVisitor transformer)
VGPaint