|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jdrawing.graphics.GraphicsOperation org.jdrawing.graphics.RectangleOperation
Base class for operations, which get Rectangle as argument.
Constructor Summary | |
RectangleOperation(int x,
int y,
int width,
int height)
Returns RectangleOperation with given rectangle. |
|
RectangleOperation(int x,
int y,
int width,
int height,
Style style)
Returns RectangleOperation with given rectangle and style. |
Method Summary | |
boolean |
equals(java.lang.Object object)
Checks whether two rectangle operations are equal. |
int |
getHeight()
Returns the height of the rectangle |
int |
getWidth()
Returns the width of the rectangle |
int |
getX()
Returns the X coordinate of the left edge of the rectangle |
int |
getY()
Returns the Y coordinate of the top edge of the rectangle |
int |
hashCode()
Returns the hashcode for this rectangle operation. |
void |
setHeight(int height)
Sets the height of the rectangle |
void |
setRectangle(int x,
int y,
int width,
int height)
Sets bounds of the rectangle. |
void |
setWidth(int width)
Sets the width of the rectangle |
void |
setX(int x)
Sets the X coordinate of the left edge of the rectangle. |
void |
setY(int y)
Sets the Y coordinate of the top edge of the rectangle. |
Methods inherited from class org.jdrawing.graphics.GraphicsOperation |
contains, getBounds, getBounds2D, getPosition, getShapeOfOperation, getStyle, intersects, paint, paintOperation, setPosition, setStyle |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RectangleOperation(int x, int y, int width, int height)
x
- left edge of the rectangley
- top edge of the rectanglewidth
- width of the rectangleheight
- height of the rectanglepublic RectangleOperation(int x, int y, int width, int height, Style style)
x
- left edge of the rectangley
- top edge of the rectanglewidth
- width of the rectangleheight
- height of the rectanglestyle
- style for this rectangleMethod Detail |
public void setX(int x)
x
- left edge of the rectanglepublic int getX()
public void setY(int y)
y
- top edge of the rectanglepublic int getY()
public void setWidth(int width)
width
- width of the rectanglepublic int getWidth()
public void setHeight(int height)
height
- height of the rectanglepublic int getHeight()
public void setRectangle(int x, int y, int width, int height)
x
- left edge of the rectangley
- top edge of the rectanglewidth
- width of the rectangleheight
- height of the rectanglepublic boolean equals(java.lang.Object object)
true
if and only if the
argument is not null
and is a
RectangleOperation
object that has the
same attributes as this RectangleOperation
.
equals
in class GraphicsOperation
object
- the Object
to compare with
this RectangleOperation
true
if the objects are equal;
false
otherwise.public int hashCode()
hashCode
in class GraphicsOperation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |