java.awt
public abstract class MultipleGradientPaint extends Object implements Paint
LinearGradientPaint
and RadialGradientPaint
.Modifier and Type | Class and Description |
---|---|
static class |
MultipleGradientPaint.ColorSpaceType
The color space in which to perform the gradient interpolation.
|
static class |
MultipleGradientPaint.CycleMethod
The method to use when painting outside the gradient bounds.
|
BITMASK, OPAQUE, TRANSLUCENT
Modifier and Type | Method and Description |
---|---|
Color[] |
getColors()
Returns a copy of the array of colors used by this gradient.
|
MultipleGradientPaint.ColorSpaceType |
getColorSpace()
Returns the enumerated type which specifies color space for
interpolation.
|
MultipleGradientPaint.CycleMethod |
getCycleMethod()
Returns the enumerated type which specifies cycling behavior.
|
float[] |
getFractions()
Returns a copy of the array of floats used by this gradient
to calculate color distribution.
|
AffineTransform |
getTransform()
Returns a copy of the transform applied to the gradient.
|
int |
getTransparency()
Returns the transparency mode for this Paint object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createContext
public final float[] getFractions()
public final Color[] getColors()
public final MultipleGradientPaint.CycleMethod getCycleMethod()
public final MultipleGradientPaint.ColorSpaceType getColorSpace()
public final AffineTransform getTransform()
public final int getTransparency()
getTransparency
in interface Transparency
Transparency
Submit a bug or feature Copyright © 1993, 2017, Oracle and/or its affiliates. All rights reserved.
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.