org.jdrawing.graphics
Class AbstractFillRect

java.lang.Object
  extended byorg.jdrawing.graphics.GraphicsOperation
      extended byorg.jdrawing.graphics.RectangleOperation
          extended byorg.jdrawing.graphics.AbstractFillRect
All Implemented Interfaces:
DrawingElement
Direct Known Subclasses:
ClearRect, Fill3DRect, FillRect

public abstract class AbstractFillRect
extends RectangleOperation

Base class for drawing operations that fill the rectangle.


Constructor Summary
AbstractFillRect(int x, int y, int width, int height)
          Returns AbstractFillRect with given rectangle.
AbstractFillRect(int x, int y, int width, int height, Style style)
          Returns AbstractFillRect with given rectangle.
 
Method Summary
 java.awt.Shape getShapeOfOperation()
          Returns shape of the area updated by this operation.
 
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
contains, getBounds, getBounds2D, getPosition, getStyle, intersects, paint, paintOperation, setPosition, setStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFillRect

public AbstractFillRect(int x,
                        int y,
                        int width,
                        int height)
Returns AbstractFillRect with given rectangle.

Parameters:
x - left edge of the rectangle
y - top edge of the rectangle
width - width of the rectangle
height - height of the rectangle

AbstractFillRect

public AbstractFillRect(int x,
                        int y,
                        int width,
                        int height,
                        Style style)
Returns AbstractFillRect with given rectangle.

Parameters:
x - left edge of the rectangle
y - top edge of the rectangle
width - width of the rectangle
height - height of the rectangle
Method Detail

getShapeOfOperation

public java.awt.Shape getShapeOfOperation()
Returns shape of the area updated by this operation.

Specified by:
getShapeOfOperation in class GraphicsOperation
Returns:
the shape of updated area