|
|||||||||
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.CubicCurve
Cubic Curve Shape.
Nested Class Summary | |
protected static class |
CubicCurve.CubicPathIterator
Cubic Path Iterator. |
Constructor Summary | |
CubicCurve()
Constructs new CubicCurve object. |
|
CubicCurve(int x1,
int y1,
int ctrlx1,
int ctrly1,
int ctrlx2,
int ctrly2,
int x2,
int y2)
Constructs new CubicCurve object. |
|
CubicCurve(Point p1,
Point ctrl1,
Point ctrl2,
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 |
getCtrlX1()
Returns the x coordinate of the curve's first control point. |
int |
getCtrlX2()
Returns the x coordinate of the curve's second control point. |
int |
getCtrlY1()
Returns the y coordinate of the curve's first control point. |
int |
getCtrlY2()
Returns the y coordinate of the curve's second 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 CubicCurve()
public CubicCurve(int x1, int y1, int ctrlx1, int ctrly1, int ctrlx2, int ctrly2, int x2, int y2)
x1
- the x coordinate of the curve's start pointy1
- the y coordinate of the curve's start pointctrlx1
- the x coordinate of the curve's first control pointctrly1
- the y coordinate of the curve's first control pointctrlx2
- the x coordinate of the curve's second control pointctrly2
- the y coordinate of the curve's second control pointx2
- the x coordinate of the curve's end pointy2
- the y coordinate of the curve's end pointpublic CubicCurve(Point p1, Point ctrl1, Point ctrl2, Point p2)
p1
- the curve's start pointctrl1
- the curve's first control pointctrl2
- the curve's second control pointp2
- the curve's end pointMethod Detail |
public int getX1()
public int getY1()
public int getCtrlX1()
public int getCtrlY1()
public int getCtrlX2()
public int getCtrlY2()
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 |