|
|||||||||
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.RectangularShape
yu.ac.bg.etf.javaqx.qswing.graphics.Ellipse
Ellipse Shape.
Nested Class Summary | |
protected static class |
Ellipse.EllipsePathIterator
Ellipse Path Iterator. |
Constructor Summary | |
Ellipse()
Constructs new Ellipse object. |
|
Ellipse(int x,
int y,
int width,
int height)
Constructs new Ellipse 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 |
getHeight()
Returns the height of the framing rectangle. |
PathIterator |
getPathIterator()
Returns path iterator that traverses the geometry of the Shape. |
int |
getWidth()
Returns the width of the framing rectangle. |
int |
getX()
Returns the x coordinate of the framing rectangle. |
int |
getY()
Returns the y coordinate of the framing rectangle. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Ellipse()
public Ellipse(int x, int y, int width, int height)
x
- the x coordinate of the ellipsey
- the y coordinate of the ellipsewidth
- the width of the ellipseheight
- the height of the ellipseMethod Detail |
public boolean contains(int x, int y)
x
- the x coordinatey
- the y coordinate
public Rectangle getBounds()
getBounds
in interface Shape
getBounds
in class RectangularShape
public PathIterator getPathIterator()
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
public int getX()
getX
in class RectangularShape
public int getY()
getY
in class RectangularShape
public int getWidth()
getWidth
in class RectangularShape
public int getHeight()
getHeight
in class RectangularShape
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |