public abstract class IlvMultipleGradientPaint extends Object implements Paint, Serializable, IlvAdaptablePaint, IlvMultipleGradientPaintConstants
IlvLinearGradientPaint
,
IlvRadialGradientPaint
,
Serialized FormKEY_USER_BOUNDS
BITMASK, OPAQUE, TRANSLUCENT
LINEAR_RGB, SPREAD_PAD, SPREAD_REFLECT, SPREAD_REPEAT, SRGB
Constructor and Description |
---|
IlvMultipleGradientPaint(IlvMultipleGradientPaint source)
Creates a multiple gradient paint by copying an existing one.
|
Modifier and Type | Method and Description |
---|---|
Color[] |
getColors()
Returns a copy of the array of colors used by this gradient.
|
short |
getColorSpace()
Returns the interpolation color space of this gradient.
|
short |
getSpreadMethod()
Returns the spread method of the gradient.
|
float[] |
getStops()
Returns a copy of the array of floats used by this gradient
to calculate color distribution.
|
AffineTransform |
getTransform()
Returns a copy of the additional transform to apply to the gradient.
|
int |
getTransparency()
Returns the transparency mode for this gradient.
|
protected void |
initTransparency()
Checks whether the gradient uses a transparent color.
|
boolean |
isAdapting()
Returns
true if the gradient is adapting itself on
the shape it is drawn. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createContext
public IlvMultipleGradientPaint(IlvMultipleGradientPaint source)
source
- The multiple gradient paint to be copied.protected final void initTransparency()
public final Color[] getColors()
public final float[] getStops()
public final int getTransparency()
getTransparency
in interface Transparency
public final boolean isAdapting()
true
if the gradient is adapting itself on
the shape it is drawn.isAdapting
in interface IlvAdaptablePaint
public final short getSpreadMethod()
public final short getColorSpace()
public final AffineTransform getTransform()
null
if no transform is added.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.