org.jdrawing.graphics
Class FillRect

java.lang.Object
  extended byorg.jdrawing.graphics.GraphicsOperation
      extended byorg.jdrawing.graphics.RectangleOperation
          extended byorg.jdrawing.graphics.AbstractFillRect
              extended byorg.jdrawing.graphics.FillRect
All Implemented Interfaces:
DrawingElement

public class FillRect
extends AbstractFillRect

Graphics element which corresponds to Graphics.fillRect(int, int, int, int)


Constructor Summary
FillRect(int x, int y, int width, int height)
          Returns FillRect with given rectangle.
FillRect(int x, int y, int width, int height, Style style)
          Returns FillRect with given rectangle.
 
Method Summary
 void paintOperation(java.awt.Graphics2D graphics)
          Performs drawing operation.
 
Methods inherited from class org.jdrawing.graphics.AbstractFillRect
getShapeOfOperation
 
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, setPosition, setStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FillRect

public FillRect(int x,
                int y,
                int width,
                int height)
Returns FillRect 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

FillRect

public FillRect(int x,
                int y,
                int width,
                int height,
                Style style)
Returns FillRect 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

paintOperation

public void paintOperation(java.awt.Graphics2D graphics)
Performs drawing operation. This implementation invokes graphics.fillRect ().

Specified by:
paintOperation in class GraphicsOperation
Parameters:
graphics - graphics context to use for painting