public class DrawRectangleFigure extends DrawBasicFigure
Draw
implementations.Draw
listeners, transformFreely
Constructor and Description |
---|
DrawRectangleFigure(double x,
double y,
double width,
double height)
Create a new rectangle with the given origin and size, a
unit-width continuous stroke and no paint pattern.
|
DrawRectangleFigure(double x,
double y,
double width,
double height,
float lineWidth)
Create a new rectangle with the given origin, size, and
outline width.
|
DrawRectangleFigure(double x,
double y,
double width,
double height,
Paint fill)
Create a new rectangle with the given origin, size, and
fill paint.
|
DrawRectangleFigure(double x,
double y,
double width,
double height,
Paint fill,
Paint outline,
float lineWidth,
AlphaComposite composite)
Create a new rectangle with the given origin, size, fill, and
outline width.
|
DrawRectangleFigure(Rectangle2D rect)
Create a new rectangle with the given rectangle shape, a
unit-width continuous stroke and no paint pattern.
|
Modifier and Type | Method and Description |
---|---|
void |
translate(double x,
double y)
Translate the rectangle the given distance
|
addListener, fireChanged, fireCreated, fireRemoved, isTransformFreely, removeListener, setTransformFreely, setVisible, transform
getBounds, getComposite, getDashArray, getFillPaint, getLineWidth, getShape, getStrokePaint, hit, paint, setComposite, setDashArray, setFillPaint, setLineWidth, setShape, setStroke, setStrokePaint
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComposite, getFillPaint, getLineWidth, getStrokePaint, setComposite, setFillPaint, setLineWidth, setShape, setStrokePaint
contains, getBounds, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, hit, intersects, setInteractor, setParent, setToolTipText
isVisible, paint, paint
getTransformContext, repaint, repaint
getUserObject, setUserObject
public DrawRectangleFigure(Rectangle2D rect)
public DrawRectangleFigure(double x, double y, double width, double height)
public DrawRectangleFigure(double x, double y, double width, double height, Paint fill)
public DrawRectangleFigure(double x, double y, double width, double height, float lineWidth)
public DrawRectangleFigure(double x, double y, double width, double height, Paint fill, Paint outline, float lineWidth, AlphaComposite composite)
public void translate(double x, double y)
translate
in interface Figure
translate
in class DrawBasicFigure
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.