A B C D E F G H I L M P R S T U X Y

A

addSegment(GradientSegment) - Method in class grad.BasicGradientPainter
Append another GradientSegment to the sequence used by the painter.

B

BasicGradientPainter - class grad.BasicGradientPainter.
BasicGradientPainter is an abstract base class that handles the management of GradientSegment management for other GradientPainter classes.
BasicGradientPainter() - Constructor for class grad.BasicGradientPainter
Create a new BasicGradientPainter with 0 segments.
BasicGradientPainter(BasicGradientPainter) - Constructor for class grad.BasicGradientPainter
Create a new BasicGradientPainter, initialized with a copy of the gradient segments of the supplied painter.
bg - Variable in class grad.GradientPainter
 
borderColor - Variable in class grad.GradientCanvas
 
BOTTOM_TO_TOP - Static variable in class grad.LinearGradientPainter
Linear gradient paint from bottom to top

C

c1c - Variable in class grad.GradientSegment
 
c1p - Variable in class grad.GradientSegment
 
c2c - Variable in class grad.GradientSegment
 
c2p - Variable in class grad.GradientSegment
 
cacheAngle - Variable in class grad.GradientPainter
 
cacheBasePoint - Variable in class grad.GradientPainter
 
cacheBaseRect - Variable in class grad.GradientPainter
 
cacheDefRGB - Variable in class grad.GradientPainter
 
cacheExtent - Variable in class grad.GradientPainter
 
cacheHackClipShape - Variable in class grad.GradientPainter
 
cacheImage - Variable in class grad.GradientPainter
 
cacheMode - Variable in class grad.GradientPainter
 
clone() - Method in class grad.GradientSegment
Create a new GradientSegment that is the same as this one.
computeColorFor(double, double) - Method in class grad.GradientPainter
Compute the color for a given point and return it.
computeGradientImage(Toolkit, Rectangle, Point, int, int, int, int) - Method in class grad.GradientPainter
Get an image with the requested gradient in it.
computeGradientPixels(int, int, int[], Point, int, int, int, int) - Method in class grad.GradientPainter
Fill the pixel array for a given gradient.
CONICAL_GRADIENT - Static variable in class grad.GradientPainter
A conical gradient pointing, by default, to the center right.
countSegments() - Method in class grad.BasicGradientPainter
Return the count of how many segments this painter is currently holding.

D

defAngle - Variable in class grad.GradientPainter
 
DEFAULT_MODE - Static variable in class grad.BasicGradientPainter
The default painting mode -- 0.
defaultMode - Variable in class grad.GradientCanvas
 
defCenter - Variable in class grad.GradientPainter
 
defExtent - Variable in class grad.GradientPainter
 

E

end - Variable in class grad.GradientSegment
 
exf - Variable in class grad.GradientPainter
 

F

flip() - Method in class grad.GradientSegment
Flip the colors of this segment.
flipSegment(int) - Method in class grad.BasicGradientPainter
Flip the specified segment, exchange its start and end color values.

G

getBackground() - Method in class grad.GradientPainter
Retrieve the default background color.
getColor(float) - Method in class grad.GradientSegment
Get a Color corresponding to the value on the range 0.0 to 1.0.
getColor(float, float[]) - Method in class grad.GradientSegment
Get a Color corresponding to the value on the range 0.0 to 1.0 and write the RGB components into the given float array.
getColor1() - Method in class grad.GradientSegment
Retrieve the start color
getColor2() - Method in class grad.GradientSegment
Retrieve the end color
getColorInt(double) - Method in class grad.GradientSegment
Get a Color as an int with format 0x00RRGGBB.
getDefaultAngle() - Method in class grad.GradientPainter
Retreive the default angle.
getDefaultCenter() - Method in class grad.GradientPainter
Retreive the default center point.
getDefaultExtent() - Method in class grad.GradientPainter
Retreive the default angle.
getGradient() - Method in class grad.GradientCanvas
Retreive the gradient being used as our background
getRangeEnd() - Method in class grad.GradientSegment
Retrieve the end of the range
getRangeStart() - Method in class grad.GradientSegment
Retrieve the start of the range
getRGBColorComponents(Color, float[]) - Method in class grad.GradientSegment
 
getSegment(int) - Method in class grad.BasicGradientPainter
Get the GradientSegment no.
getUseHSB() - Method in class grad.GradientSegment
Retrieve the HSB/RGB flag.
glim - Variable in class grad.GradientPainter
 
grad - package grad
 
gradient - Variable in class grad.GradientCanvas
 
GradientCanvas - class grad.GradientCanvas.
A subclass of Canvas that automatically maintains a gradient-painted background using a BasicGradientPainter object.
GradientCanvas(BasicGradientPainter) - Constructor for class grad.GradientCanvas
Create a GradientCanvas that renders using the given BasicGradientPainter in its default mode.
GradientPainter - class grad.GradientPainter.
GradientPainter is a class that accepts parameters defining a gradient, and can also paint the gradient into a Shape (actually, into the Shape's bounding box), and can also fill the gradient into an Image or just an array of pixel values.
GradientPainter() - Constructor for class grad.GradientPainter
Create a new GradientPainter with 0 segments.
GradientPainter(BasicGradientPainter) - Constructor for class grad.GradientPainter
Create a GradientPainter with the same segments as the supplied BasicGradientPainter.
GradientPainter(Color, Color) - Constructor for class grad.GradientPainter
Create a simple GradientPainter with 1 simple RGB segment.
gradientsChanged() - Method in class grad.BasicGradientPainter
Take any necessary action if the gradients have changed.
gradientsChanged() - Method in class grad.GradientPainter
Invalidate the cached image, if any, because the GradientSegments have been changed somehow.
GradientSegment - class grad.GradientSegment.
A portion of a gradient, from a Color c1 to a Color c2, in either RGB space or HSB space.
GradientSegment(Color, Color) - Constructor for class grad.GradientSegment
Create a simple GradientSegment in RGB space, from color c1 to c2 on range 0.0 to 1.0.
GradientSegment(Color, Color, double, double, boolean) - Constructor for class grad.GradientSegment
Create a GradientSegment from a Color c1 to a Color 2, over the specified range s to e.
GradientSegment(Color, Color, float, float, boolean) - Constructor for class grad.GradientSegment
Create a GradientSegment from Color c1 to c2, over the specified range s to e.

H

hackClipShape - Variable in class grad.GradientPainter
 

I

imageUpdate(Image, int, int, int, int, int) - Method in class grad.GradientPainter
Do-nothing version of imageUpdate to allow this object to be used as a lazy imageObserver

L

LEFT_TO_RIGHT - Static variable in class grad.LinearGradientPainter
Linear gradient paint from left to right.
LINEAR_GRADIENT - Static variable in class grad.GradientPainter
Linear gradient, by default painted from along the x axis left to right.
LinearGradientPainter - class grad.LinearGradientPainter.
GradientPainter is a class that accepts parameters defining a gradient, and can also paint the gradient into a Shape (actually, into the Shape's bounding box).
LinearGradientPainter() - Constructor for class grad.LinearGradientPainter
Create a new GradientPainter with 0 segments.
LinearGradientPainter(BasicGradientPainter) - Constructor for class grad.LinearGradientPainter
Create a new LinearGradientPainter with a copy of the segments of some other gradient painter
LinearGradientPainter(Color, Color) - Constructor for class grad.LinearGradientPainter
Create a simple GradientPainter with 1 simple RGB segment.

M

marginWidth - Variable in class grad.GradientCanvas
 
master - Variable in class grad.BasicGradientPainter
 

P

paint(Graphics) - Method in class grad.GradientCanvas
Overridden version of paint() that paints the gradient into the background.
paint(Graphics, int, int, int, int, int) - Method in class grad.LinearGradientPainter
Paint a gradient into a given rectangular area using a given Graphics.
paint(Graphics, Shape, int) - Method in class grad.BasicGradientPainter
Paint a gradient into a given Shape using a given Graphics, using the given mode.
paint(Graphics, Shape, int) - Method in class grad.GradientPainter
Paint a gradient into a given Shape using a given Graphics.
paint(Graphics, Shape, int) - Method in class grad.LinearGradientPainter
Paint a gradient into a given Shape using a given Graphics.
paint(Graphics, Shape, Point, int, int, int) - Method in class grad.GradientPainter
Paint a gradient into a given Shape area using a given Graphics.
paintSimpleLinear(Graphics, int, int, int, int, int, boolean) - Method in class grad.LinearGradientPainter
 
prepareColors() - Method in class grad.GradientSegment
 

R

RADIAL_GRADIENT - Static variable in class grad.GradientPainter
A radial gradient with the center at the center of the Shape bounding box.
removeSegment(int) - Method in class grad.BasicGradientPainter
Remove the GradientSegment no.
RIGHT_TO_LEFT - Static variable in class grad.LinearGradientPainter
Linear gradient paint from left to right.

S

segments - Variable in class grad.BasicGradientPainter
 
setBackground(Color) - Method in class grad.GradientPainter
Set the default background color; this is the color that will be used where no segment applies.
setColor1(Color) - Method in class grad.GradientSegment
Set the start color
setColor2(Color) - Method in class grad.GradientSegment
Set the end color
setDefaultAngle(int) - Method in class grad.GradientPainter
Set default values for the angle, normally 0.
setDefaultCenter(Point) - Method in class grad.GradientPainter
Set default center point for the gradient drawing.
setDefaultExtent(int) - Method in class grad.GradientPainter
Set default values for the extent, which is normally auto-computed from the size of the paint region.
setGradient(BasicGradientPainter) - Method in class grad.GradientCanvas
Set the gradient to be used as our background.
setMargins(int, Color) - Method in class grad.GradientCanvas
Set up fancy-looking margins.
setMode(int) - Method in class grad.GradientCanvas
Set the default gradient paint mode to be used, >= 0.
setRange(float, float) - Method in class grad.GradientSegment
Set the start and end values
setSegment(int, GradientSegment) - Method in class grad.BasicGradientPainter
Replace the GradientSegment no.
setUseHSB(boolean) - Method in class grad.GradientSegment
Set the HSB/RGB flag
slaveTo(BasicGradientPainter) - Method in class grad.BasicGradientPainter
Share our gradient segment list with another gradient painter.
split() - Method in class grad.GradientSegment
Split a segment into two segments at its midpoint, the segments will be contiguous, so the overall gradient would not be affected by replacing the original segment with this pair.
splitSegment(int) - Method in class grad.BasicGradientPainter
Split the specified GradientSegment no.
SQUARE_GRADIENT - Static variable in class grad.GradientPainter
A square gradient with the center at the center of the Shape bounding box.
start - Variable in class grad.GradientSegment
 
swapAt(int) - Method in class grad.BasicGradientPainter
Swap segments i and i-1, preserving the offset of the other segments.

T

th - Variable in class grad.GradientPainter
 
tmode - Variable in class grad.GradientPainter
 
toCodeFragment(String) - Method in class grad.BasicGradientPainter
A representation of this GradientPainter as a code fragment creating a GradientPainter named toPainter.
toCodeFragment(String) - Method in class grad.GradientSegment
Render this GradientSegment as a code fragment that is a call to the 5-arg constructor.
TOP_TO_BOTTOM - Static variable in class grad.LinearGradientPainter
Linear gradient paint from top to bottom
toShortString() - Method in class grad.GradientSegment
Render this GradientSegment as a short, informative string.
toString() - Method in class grad.BasicGradientPainter
A simple representation of this GradientPainter as a string.
toString() - Method in class grad.GradientSegment
Render this GradientSegment as a String.
tw - Variable in class grad.GradientPainter
 
tx - Variable in class grad.GradientPainter
 
ty - Variable in class grad.GradientPainter
 

U

update(Observable, Object) - Method in class grad.BasicGradientPainter
Observe our master if we have one.
update(Observable, Object) - Method in class grad.GradientCanvas
Each instance of GradientCanvas acts as an Observer of its own gradient, so that it can repaint when the gradient changes.
useHSB - Variable in class grad.GradientSegment
 

X

xrx - Variable in class grad.GradientPainter
 
xry - Variable in class grad.GradientPainter
 

Y

yrx - Variable in class grad.GradientPainter
 
yry - Variable in class grad.GradientPainter
 

A B C D E F G H I L M P R S T U X Y