Known Direct Subclasses
LinearGradientPaint |
The LinearGradientPaint class provides a way to fill
a Shape with a linear color gradient pattern. |
RadialGradientPaint |
The RadialGradientPaint class provides a way to fill a shape with
a circular radial color gradient pattern. |
|
Class Overview
This is the superclass for Paints which use a multiple color
gradient to fill in their raster. It provides storage for variables and
enumerated values common to
LinearGradientPaint
and RadialGradientPaint
.
Summary
[Expand]
Inherited Constants |
From interface
java.awt.Transparency
int |
BITMASK |
Represents image data that is guaranteed to be either completely
opaque, with an alpha value of 1.0, or completely transparent,
with an alpha value of 0.0. |
int |
OPAQUE |
Represents image data that is guaranteed to be completely opaque,
meaning that all pixels have an alpha value of 1.0. |
int |
TRANSLUCENT |
Represents image data that contains or might contain arbitrary
alpha values between and including 0.0 and 1.0. |
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
java.awt.Paint
|
From interface
java.awt.Transparency
|
Public Methods
Returns the enumerated type which specifies color space for
interpolation.
Returns
- the enumerated type which specifies color space for
interpolation
public
final
Color[]
getColors
()
Returns a copy of the array of colors used by this gradient.
The first color maps to the first value in the fractions array,
and the last color maps to the last value in the fractions array.
Returns
- a copy of the array of colors used by this gradient
Returns the enumerated type which specifies cycling behavior.
Returns
- the enumerated type which specifies cycling behavior
public
final
float[]
getFractions
()
Returns a copy of the array of floats used by this gradient
to calculate color distribution.
The returned array always has 0 as its first value and 1 as its
last value, with increasing values in between.
Returns
- a copy of the array of floats used by this gradient to
calculate color distribution
Returns a copy of the transform applied to the gradient.
Returns
- a copy of the transform applied to the gradient
public
final
int
getTransparency
()
Returns the transparency mode for this Paint object.
Returns
- an integer value representing the transparency mode for
this Paint object