|
||||||||||
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 org.jdrawing.graphics.AbstractDrawRect org.jdrawing.graphics.Draw3DRect
Graphics element which corresponds to Graphics.draw3DRect(int, int, int, int, boolean)
Constructor Summary | |
Draw3DRect(int x,
int y,
int width,
int height,
boolean raised)
Returns Draw3DRect with given rectangle. |
|
Draw3DRect(int x,
int y,
int width,
int height,
boolean raised,
Style style)
Returns Draw3DRect with given rectangle. |
Method Summary | |
boolean |
equals(java.lang.Object object)
Checks whether two draw 3D rect operations are equal. |
int |
hashCode()
Returns the hashcode for this draw 3D rect operation. |
boolean |
isRaised()
Returns if the rectangle appears to be raised above the surface or sunk into the surface |
void |
paintOperation(java.awt.Graphics2D graphics)
Performs drawing operation. |
void |
setRaised(boolean raised)
Sets if the rectangle appears to be raised above the surface or sunk into the surface |
Methods inherited from class org.jdrawing.graphics.AbstractDrawRect |
contains, getBounds, getBounds2D, getShapeOfOperation, intersects |
Methods inherited from class org.jdrawing.graphics.RectangleOperation |
getHeight, getWidth, getX, getY, setHeight, setRectangle, setWidth, setX, setY |
Methods inherited from class org.jdrawing.graphics.GraphicsOperation |
getPosition, getStyle, paint, setPosition, setStyle |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Draw3DRect(int x, int y, int width, int height, boolean raised)
x
- left edge of the rectangley
- top edge of the rectanglewidth
- width of the rectangleheight
- height of the rectangleraised
- a boolean that determines whether the rectangle appears
to be raised above the surface or sunk into the surfacepublic Draw3DRect(int x, int y, int width, int height, boolean raised, Style style)
x
- left edge of the rectangley
- top edge of the rectanglewidth
- width of the rectangleheight
- height of the rectangleraised
- a boolean that determines whether the rectangle appears
to be raised above the surface or sunk into the surfaceMethod Detail |
public void setRaised(boolean raised)
raised
- a boolean that determines whether the rectangle appears
to be raised above the surface or sunk into the surfacepublic boolean isRaised()
public void paintOperation(java.awt.Graphics2D graphics)
graphics.draw3DRect ()
.
paintOperation
in class GraphicsOperation
graphics
- graphics context to use for paintingpublic boolean equals(java.lang.Object object)
true
if and only if the
argument is not null
and is a
Draw3DRect
object that has the
same attributes as this Draw3DRect
.
equals
in class RectangleOperation
object
- the Object
to compare with
this Draw3DRect
true
if the objects are equal;
false
otherwise.public int hashCode()
hashCode
in class RectangleOperation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |