org.jdrawing.graphics
Class ClearRect
java.lang.Object
org.jdrawing.graphics.GraphicsOperation
org.jdrawing.graphics.RectangleOperation
org.jdrawing.graphics.AbstractFillRect
org.jdrawing.graphics.ClearRect
- All Implemented Interfaces:
- DrawingElement
- public class ClearRect
- extends AbstractFillRect
Graphics element which corresponds to Graphics.clearRect(int, int, int, int)
|
Constructor Summary |
ClearRect(int x,
int y,
int width,
int height)
Returns ClearRect with given rectangle and default style. |
ClearRect(int x,
int y,
int width,
int height,
Style style)
Returns ClearRect with given rectangle and style. |
|
Method Summary |
void |
paintOperation(java.awt.Graphics2D graphics)
Performs drawing operation. |
| Methods inherited from class org.jdrawing.graphics.RectangleOperation |
equals, getHeight, getWidth, getX, getY, hashCode, setHeight, setRectangle, setWidth, setX, setY |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ClearRect
public ClearRect(int x,
int y,
int width,
int height)
- Returns ClearRect with given rectangle and default style.
- Parameters:
x - left edge of the rectangley - top edge of the rectanglewidth - width of the rectangleheight - height of the rectangle
ClearRect
public ClearRect(int x,
int y,
int width,
int height,
Style style)
- Returns ClearRect with given rectangle and style.
- Parameters:
x - left edge of the rectangley - top edge of the rectanglewidth - width of the rectangleheight - height of the rectangle
paintOperation
public void paintOperation(java.awt.Graphics2D graphics)
- Performs drawing operation. This implementation invokes
graphics.clearRect ().
- Specified by:
paintOperation in class GraphicsOperation
- Parameters:
graphics - graphics context to use for painting