org.jdrawing.graphics
Class DrawRoundRect
java.lang.Object
org.jdrawing.graphics.GraphicsOperation
org.jdrawing.graphics.RectangleOperation
org.jdrawing.graphics.RoundRectOperation
org.jdrawing.graphics.DrawRoundRect
- All Implemented Interfaces:
- DrawingElement
- public class DrawRoundRect
- extends RoundRectOperation
Graphics element which corresponds to Graphics.drawRoundRect(int, int, int, int, int, int)
Constructor Summary |
DrawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
Returns DrawRoundRect with given rounded rectangle. |
DrawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight,
Style style)
Returns DrawRoundRect 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DrawRoundRect
public DrawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
- Returns DrawRoundRect with given rounded rectangle.
- Parameters:
x
- left edge of the rectangley
- top edge of the rectanglewidth
- width of the rectangleheight
- height of the rectanglearcWidth
- the horizontal diameter of the arc at the four
cornersarcHeight
- the vertical diameter of the arc at the four
corners
DrawRoundRect
public DrawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight,
Style style)
- Returns DrawRoundRect with given rounded rectangle and style.
- Parameters:
x
- left edge of the rectangley
- top edge of the rectanglewidth
- width of the rectangleheight
- height of the rectanglearcWidth
- the horizontal diameter of the arc at the four
cornersarcHeight
- the vertical diameter of the arc at the four
cornersstyle
- style for this rectangle
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