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, transformcontains, getInteractor, getLayer, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, getInteractor, getLayer, getParent, getToolTipText, intersects, setInteractor, setParent, setToolTipTextisVisible, paint, setVisiblegetTransformContext, repaint, repaintgetUserObject, setUserObjectpublic 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 Figuretranslate in class AbstractFigurex - The x value to be moved.y - The y value to be moved.