public static class Shape.RoundRectangle extends java.lang.Object implements Shape
Shape.Oval, Shape.Polygon, Shape.Rectangle, Shape.RoundRectangle, Shape.ShapeVisitor<A,R>| Constructor and Description |
|---|
RoundRectangle(int arcWidth,
int arcHeight) |
| Modifier and Type | Method and Description |
|---|---|
<A,R> R |
accept(Shape.ShapeVisitor<A,R> visitor,
A arg)
Accept the given shape visitor and invoke the visitor's visitX method corresponding to the dynamic type of the
Shape.
|
int |
getArcHeight()
Returns the height of the arc which should be rounded on the corners.
|
int |
getArcWidth()
Returns the width of the arc which should be rounded on the corners.
|
public <A,R> R accept(Shape.ShapeVisitor<A,R> visitor, A arg)
Shapeaccept in interface ShapeA - The type of argument needed by the shape visitor.R - The return type given by the shape visitor.visitor - The shape visitor to accept.arg - The argument to be passed to the shape visitor.public int getArcHeight()
public int getArcWidth()