org.jdrawing.graphics
Class DrawRect

java.lang.Object
  extended byorg.jdrawing.graphics.GraphicsElement
      extended byorg.jdrawing.graphics.GraphicsOperation
          extended byorg.jdrawing.graphics.RectangleOperation
              extended byorg.jdrawing.graphics.AbstractDrawRect
                  extended byorg.jdrawing.graphics.DrawRect
All Implemented Interfaces:
DrawingElement

public class DrawRect
extends AbstractDrawRect

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


Field Summary
 
Fields inherited from class org.jdrawing.graphics.GraphicsElement
BACKGROUND, COLOR, COMPOSITE, FONT, PAINT, parent, position, STROKE, TRANSFORM
 
Constructor Summary
DrawRect(int x, int y, int width, int height)
          Returns DrawRect with given rectangle.
 
Method Summary
 void paintOperation(java.awt.Graphics2D graphics)
          Performs grawing operation.
 
Methods inherited from class org.jdrawing.graphics.AbstractDrawRect
contains, getBounds, getBounds2D, 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
paint, update
 
Methods inherited from class org.jdrawing.graphics.GraphicsElement
addStyle, getParent, getStyle, getStyles, getTransform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawRect

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

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

paintOperation

public void paintOperation(java.awt.Graphics2D graphics)
Performs grawing operation. This implementation invokes graphics.drawRect ().

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