|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.awt.GradientPaint
|
+--agile2d.AGLGradientPaint
GradientPaint that avoids creating Color objects if possible.
| Field Summary |
| Fields inherited from interface java.awt.Transparency |
BITMASK, OPAQUE, TRANSLUCENT |
| Constructor Summary | |
AGLGradientPaint(float x1,
float y1,
Color color1,
float x2,
float y2,
Color color2)
Constructor for a simple acyclid AGLGradientPaint object. |
|
AGLGradientPaint(float x1,
float y1,
Color color1,
float x2,
float y2,
Color color2,
boolean cyclic)
Constructs either a cyclic or acyclic AGLGradientPaint
object depending on the boolean parameter. |
|
AGLGradientPaint(float x1,
float y1,
int c1,
float x2,
float y2,
int c2,
boolean cyclic)
Constructs either a cyclic or acyclic AGLGradientPaint
object depending on the boolean parameter. |
|
AGLGradientPaint(Point2D pt1,
Color color1,
Point2D pt2,
Color color2)
Constructs a simple acyclic AGLGradientPaint object. |
|
AGLGradientPaint(Point2D pt1,
Color color1,
Point2D pt2,
Color color2,
boolean cyclic)
Constructs either a cyclic or acyclic AGLGradientPaint
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 AGLGradientPaint(float x1,
float y1,
Color color1,
float x2,
float y2,
Color color2)
AGLGradientPaint object.
color1 - Color at the first specified
Pointcolor2 - Color at the second specified
Point
NullPointerException - if either one of colors is null
public AGLGradientPaint(Point2D pt1,
Color color1,
Point2D pt2,
Color color2)
AGLGradientPaint 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 AGLGradientPaint(float x1,
float y1,
Color color1,
float x2,
float y2,
Color color2,
boolean cyclic)
AGLGradientPaint
object depending on the boolean parameter.
color1 - Color at the first specified
Pointcolor2 - Color at the second specified
Pointcyclic - true if the gradient pattern should cycle
repeatedly between the two colors; false otherwise
public AGLGradientPaint(Point2D pt1,
Color color1,
Point2D pt2,
Color color2,
boolean cyclic)
AGLGradientPaint
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 AGLGradientPaint(float x1,
float y1,
int c1,
float x2,
float y2,
int c2,
boolean cyclic)
AGLGradientPaint
object depending on the boolean parameter.
c1 - int value containing the argb color at
the first specified Pointc2 - 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 | ||||||||||