org.jdrawing.graphics
Class Draw3DRect
java.lang.Object
org.jdrawing.graphics.GraphicsElement
org.jdrawing.graphics.GraphicsOperation
org.jdrawing.graphics.RectangleOperation
org.jdrawing.graphics.AbstractDrawRect
org.jdrawing.graphics.Draw3DRect
- All Implemented Interfaces:
- DrawingElement
- public class Draw3DRect
- extends AbstractDrawRect
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. |
Method Summary |
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 grawing 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Draw3DRect
public Draw3DRect(int x,
int y,
int width,
int height,
boolean raised)
- Returns Draw3DRect with given rectangle.
- Parameters:
x
- left edge of the rectangley
- top edge of the rectangewidth
- width of the rectangleheight
- height of the rectangeraised
- a boolean that determines whether the rectangle appears
to be raised above the surface or sunk into the surface
setRaised
public void setRaised(boolean raised)
- Sets if the rectangle appears to be raised above the surface or sunk
into the surface
- Parameters:
raised
- a boolean that determines whether the rectangle appears
to be raised above the surface or sunk into the surface
isRaised
public boolean isRaised()
- Returns if the rectangle appears to be raised above the surface or sunk
into the surface
- Returns:
- a boolean that determines whether the rectangle appears
to be raised above the surface or sunk into the surface
paintOperation
public void paintOperation(java.awt.Graphics2D graphics)
- Performs grawing operation. This implementation invokes
graphics.draw3DRect ()
.
- Specified by:
paintOperation
in class GraphicsOperation
- Parameters:
graphics
- graphics context to use for painting