|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.GradientPaint
jpl.mipl.jade.jadis.agile2d.AgileGradientPaint
public class AgileGradientPaint
A GradientPaint that contains RGB int methods for setting colors, to avoid allocating Color objects if possible.
| Field Summary |
|---|
| Fields inherited from interface java.awt.Transparency |
|---|
BITMASK, OPAQUE, TRANSLUCENT |
| Constructor Summary | |
|---|---|
AgileGradientPaint(float x1,
float y1,
Color color1,
float x2,
float y2,
Color color2)
Constructor for a simple acyclid AgileGradientPaint object. |
|
AgileGradientPaint(float x1,
float y1,
Color color1,
float x2,
float y2,
Color color2,
boolean cyclic)
Constructs either a cyclic or acyclic AgileGradientPaint
object depending on the boolean parameter. |
|
AgileGradientPaint(float x1,
float y1,
int c1,
float x2,
float y2,
int c2,
boolean cyclic)
Constructs either a cyclic or acyclic AgileGradientPaint
object depending on the boolean parameter. |
|
AgileGradientPaint(Point2D pt1,
Color color1,
Point2D pt2,
Color color2)
Constructs a simple acyclic AgileGradientPaint object. |
|
AgileGradientPaint(Point2D pt1,
Color color1,
Point2D pt2,
Color color2,
boolean cyclic)
Constructs either a cyclic or acyclic AgileGradientPaint
object depending on the boolean parameter. |
|
| Method Summary | |
|---|---|
int |
getC1()
Returns the int argb value of color anchored by
the point P1. |
int |
getC2()
Returns the int argb value of color anchored by
the point P2. |
Color |
getColor1()
|
Color |
getColor2()
|
| Methods inherited from class java.awt.GradientPaint |
|---|
createContext, getPoint1, getPoint2, getTransparency, isCyclic |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AgileGradientPaint(float x1,
float y1,
Color color1,
float x2,
float y2,
Color color2)
AgileGradientPaint object.
x1 - y1 coordinates of the first specified
Point in user spacecolor1 - Color at the first specified
Pointx2 - y2 coordinates of the second specified
Point in user spacecolor2 - Color at the second specified
Point
NullPointerException - if either one of colors is null
public AgileGradientPaint(Point2D pt1,
Color color1,
Point2D pt2,
Color color2)
AgileGradientPaint object.
pt1 - the first specified Point in user spacecolor1 - Color at the first specified
Pointpt2 - the second specified Point in user spacecolor2 - Color at the second specified
Point
NullPointerException - if either one of colors or points
is null
public AgileGradientPaint(float x1,
float y1,
Color color1,
float x2,
float y2,
Color color2,
boolean cyclic)
AgileGradientPaint
object depending on the boolean parameter.
x1 - y1 coordinates of the first specified
Point in user spacecolor1 - Color at the first specified
Pointx2 - y2 coordinates of the second specified
Point in user spacecolor2 - Color at the second specified
Pointcyclic - true if the gradient pattern should cycle
repeatedly between the two colors; false otherwise
public AgileGradientPaint(Point2D pt1,
Color color1,
Point2D pt2,
Color color2,
boolean cyclic)
AgileGradientPaint
object depending on the boolean parameter.
pt1 - the first specified Point
in user spacecolor1 - Color at the first specified
Pointpt2 - the second specified Point
in user spacecolor2 - Color at the second specified
Pointcyclic - true if the gradient pattern should cycle
repeatedly between the two colors; false otherwise
NullPointerException - if either one of colors or points
is null
public AgileGradientPaint(float x1,
float y1,
int c1,
float x2,
float y2,
int c2,
boolean cyclic)
AgileGradientPaint
object depending on the boolean parameter.
x1 - y1 coordinates of the first specified
Point in user spacec1 - int value containing the argb color at
the first specified Pointx2 - y2 coordinates of the second specified
Point in user spacec2 - int value containing the argb color at
the second specified Pointcyclic - true if the gradient pattern should cycle
repeatedly between the two colors; false otherwise| Method Detail |
|---|
public Color getColor1()
getColor1 in class GradientPaintGradientPaint.getColor1()public Color getColor2()
getColor2 in class GradientPaintpublic int getC1()
int argb value of color anchored by
the point P1.
int value that is the argb value of
color anchored by P1.public int getC2()
int argb value of color anchored by
the point P2.
int value that is the argb value of
color anchored by P2.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||