|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jdrawing.graphics.GraphicsOperation org.jdrawing.graphics.RectangleOperation org.jdrawing.graphics.RoundRectOperation
Base class for operations, which get reounded rectangle as argument.
Constructor Summary | |
RoundRectOperation(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
Returns RoundRectOperation with given rounded rectangle. |
|
RoundRectOperation(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight,
Style style)
Returns RoundRectOperation with given rounded rectangle and style. |
Method Summary | |
int |
getArcHeight()
Gets the vertical diameter of the arc at the four corners. |
int |
getArcWidth()
Gets the horizontal diameter of the arc at the four corners. |
void |
setArcHeight(int arcHeight)
Sets the vertical diameter of the arc at the four corners. |
void |
setArcWidth(int arcWidth)
Sets the horizontal diameter of the arc at the four corners. |
void |
setRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
Sets the attributes of the rounded rectangle. |
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, getShapeOfOperation, 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 |
public RoundRectOperation(int x, int y, int width, int height, int arcWidth, int arcHeight)
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
cornerspublic RoundRectOperation(int x, int y, int width, int height, int arcWidth, int arcHeight, Style style)
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 rectangleMethod Detail |
public void setArcWidth(int arcWidth)
arcWidth
- the horizontal diameter of the arc at the four
cornerspublic int getArcWidth()
public void setArcHeight(int arcHeight)
arcHeight
- the vertical diameter of the arc at the four
cornerspublic int getArcHeight()
public void setRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |