|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.qswing.graphics.Paint
yu.ac.bg.etf.javaqx.qswing.graphics.GradientPaint
Gradient Paint.
NOTE: This class is not compatible with java.awt.GradientPaint class!
Constructor Summary | |
GradientPaint(int x1,
int y1,
Color c1,
int x2,
int y2,
Color c2)
Constructs new GradientPaint object. |
|
GradientPaint(int x1,
int y1,
Color c1,
int x2,
int y2,
Color c2,
boolean cyclic)
Constructs new GradientPaint object. |
|
GradientPaint(Point p1,
Color c1,
Point p2,
Color c2)
Constructs new GradientPaint object. |
|
GradientPaint(Point p1,
Color c1,
Point p2,
Color c2,
boolean cyclic)
Constructs new GradientPaint object. |
Method Summary | |
Color |
getColor1()
Returns the first anchor color. |
Color |
getColor2()
Returns the second anchor color. |
Point |
getPoint1()
Returns the first anchor point. |
Point |
getPoint2()
Returns the second anchor point. |
int |
getX1()
Returns the x coordinate of the first anchor point. |
int |
getX2()
Returns the x coordinate of the second anchor point. |
int |
getY1()
Returns the y coordinate of the first anchor point. |
int |
getY2()
Returns the y coordinate of the second anchor point. |
boolean |
isCyclic()
Returns true if the GradientPaint is cyclic; otherwise false. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GradientPaint(int x1, int y1, Color c1, int x2, int y2, Color c2, boolean cyclic)
x1
- the x coordinate of the first anchor pointy1
- the y coordinate of the first anchor pointc1
- the color of the first anchor pointx2
- the x coordinate of the second anchor pointy2
- the y coordinate of the second anchor pointc2
- the color of the second anchor pointcyclic
- if true the gradient is cyclicpublic GradientPaint(Point p1, Color c1, Point p2, Color c2, boolean cyclic)
p1
- the first anchor pointc1
- the color of the first anchor pointp2
- the second anchor pointc2
- the color of the second anchor pointcyclic
- if true the gradient is cyclicpublic GradientPaint(int x1, int y1, Color c1, int x2, int y2, Color c2)
x1
- the x coordinate of the first anchor pointy1
- the y coordinate of the first anchor pointc1
- the color of the first anchor pointx2
- the x coordinate of the second anchor pointy2
- the y coordinate of the second anchor pointc2
- the color of the second anchor pointpublic GradientPaint(Point p1, Color c1, Point p2, Color c2)
p1
- the first anchor pointc1
- the color of the first anchor pointp2
- the second anchor pointc2
- the color of the second anchor pointMethod Detail |
public int getX1()
public int getY1()
public Point getPoint1()
public int getX2()
public int getY2()
public Point getPoint2()
public Color getColor1()
public Color getColor2()
public boolean isCyclic()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |