|
|||||||||
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.RoundRectangle
Round Rectangle Shape.
Nested Class Summary | |
protected static class |
RoundRectangle.RoundRectanglePathIterator
Round Rectangle Path Iterator. |
Constructor Summary | |
RoundRectangle()
Constructs new RoundRectangle object. |
|
RoundRectangle(int x,
int y,
int width,
int height,
int arcwidth,
int archeight)
Constructs new RoundRectangle 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)
|
int |
getArcHeight()
Returns the arc height. |
int |
getArcWidth()
Returns the arc width. |
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 RoundRectangle()
public RoundRectangle(int x, int y, int width, int height, int arcwidth, int archeight)
x
- the x coordinate of the rectangley
- the y coordinate of the rectanglewidth
- the width of the rectangleheight
- the height of the rectanglearcwidth
- the arc widtharcheight
- the arc heightMethod Detail |
public int getArcWidth()
public int getArcHeight()
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 |