|
|||||||||
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.QuadCurve
Quad Curve Shape.
Nested Class Summary | |
protected static class |
QuadCurve.QuadPathIterator
Quad Path Iterator. |
Constructor Summary | |
QuadCurve()
Constructs new QuadCurve object. |
|
QuadCurve(int x1,
int y1,
int ctrlx,
int ctrly,
int x2,
int y2)
Constructs new QuadCurve object. |
|
QuadCurve(Point p1,
Point ctrl,
Point p2)
Constructs new CubicCurve object. |
Method Summary | |
boolean |
contains(int x,
int y)
Returns true if the specified coordinates lie in the shape. |
boolean |
equals(java.lang.Object obj)
|
Rectangle |
getBounds()
Returns a rectangle that completely encloses the shape. |
int |
getCtrlX()
Returns the x coordinate of the curve's control point. |
int |
getCtrlY()
Returns the y coordinate of the curve's control point. |
PathIterator |
getPathIterator()
Returns path iterator that traverses the geometry of the Shape. |
int |
getX1()
Returns the x coordinate of the curve's start point. |
int |
getX2()
Returns the x coordinate of the curve's end point. |
int |
getY1()
Returns the y coordinate of the curve's start point. |
int |
getY2()
Returns the y coordinate of the curve's end point. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public QuadCurve()
public QuadCurve(int x1, int y1, int ctrlx, int ctrly, int x2, int y2)
x1
- the x coordinate of the curve's start pointy1
- the y coordinate of the curve's start pointctrlx
- the x coordinate of the curve's control pointctrly
- the y coordinate of the curve's control pointx2
- the x coordinate of the curve's end pointy2
- the y coordinate of the curve's end pointpublic QuadCurve(Point p1, Point ctrl, Point p2)
p1
- the curve's start pointctrl
- the curve's control pointp2
- the curve's end pointMethod Detail |
public int getX1()
public int getY1()
public int getCtrlX()
public int getCtrlY()
public int getX2()
public int getY2()
public boolean contains(int x, int y)
contains
in interface Shape
x
- the x coordinatey
- the y coordinate
public Rectangle getBounds()
getBounds
in interface Shape
public PathIterator getPathIterator()
getPathIterator
in interface Shape
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |