public class RoundedRectangle extends BasicFigure
Constructor and Description |
---|
RoundedRectangle(double x,
double y,
double width,
double height,
java.awt.Paint fill,
float lineWidth,
double arcWidth,
double arcHeight)
Create a new rectangle with the given origin, size, fill,
outline width, arc width, and arc height.
|
Modifier and Type | Method and Description |
---|---|
void |
translate(double x,
double y)
Translate the rectangle the given distance
|
getBounds, getComposite, getDashArray, getFillPaint, getLineWidth, getOrigin, getShape, getStrokePaint, hit, isCentered, paint, setCentered, setComposite, setDashArray, setFillPaint, setLineWidth, setPrototypeShape, setShape, setStroke, setStrokePaint, transform
contains, getInteractor, getLayer, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, getInteractor, getLayer, getParent, getToolTipText, intersects, setInteractor, setParent, setToolTipText
isVisible, paint, setVisible
getTransformContext, repaint, repaint
getUserObject, setUserObject
public RoundedRectangle(double x, double y, double width, double height, java.awt.Paint fill, float lineWidth, double arcWidth, double arcHeight)
public void translate(double x, double y)
translate
in interface Figure
translate
in class AbstractFigure
x
- The x value to be moved.y
- The y value to be moved.