org.jdrawing.graphics
Class FillRoundRect

java.lang.Object
  extended byorg.jdrawing.graphics.GraphicsOperation
      extended byorg.jdrawing.graphics.RectangleOperation
          extended byorg.jdrawing.graphics.RoundRectOperation
              extended byorg.jdrawing.graphics.FillRoundRect
All Implemented Interfaces:
DrawingElement

public class FillRoundRect
extends RoundRectOperation

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


Constructor Summary
FillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
          Returns FillRoundRect with given rounded rectangle.
FillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight, Style style)
          Returns FillRoundRect with given rounded rectangle and style.
 
Method Summary
 java.awt.Shape getShapeOfOperation()
          Returns shape of the area updated by this operation.
 void paintOperation(java.awt.Graphics2D graphics)
          Performs drawing operation.
 
Methods inherited from class org.jdrawing.graphics.RoundRectOperation
getArcHeight, getArcWidth, setArcHeight, setArcWidth, setRoundRect
 
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

FillRoundRect

public FillRoundRect(int x,
                     int y,
                     int width,
                     int height,
                     int arcWidth,
                     int arcHeight)
Returns FillRoundRect with given rounded rectangle.

Parameters:
x - left edge of the rectangle
y - top edge of the rectangle
width - width of the rectangle
height - height of the rectangle
arcWidth - the horizontal diameter of the arc at the four corners
arcHeight - the vertical diameter of the arc at the four corners

FillRoundRect

public FillRoundRect(int x,
                     int y,
                     int width,
                     int height,
                     int arcWidth,
                     int arcHeight,
                     Style style)
Returns FillRoundRect with given rounded rectangle and style.

Parameters:
x - left edge of the rectangle
y - top edge of the rectangle
width - width of the rectangle
height - height of the rectangle
arcWidth - the horizontal diameter of the arc at the four corners
arcHeight - the vertical diameter of the arc at the four corners
style - style for this rectangle
Method Detail

paintOperation

public void paintOperation(java.awt.Graphics2D graphics)
Performs drawing operation. This implementation performs drawRoundRect operation.

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

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