public class XRangeFigure extends DrawBasicFigure
Draw instance.DrawBasicFigure| Modifier and Type | Field and Description |
|---|---|
protected boolean |
constrain
Whether XRangeFigures are free to transform.
|
listeners, transformFreely| Constructor and Description |
|---|
XRangeFigure(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.
|
XRangeFigure(double x,
double y,
double width,
double height,
float lineWidth)
Create a new rectangle with the given origin, size, and
outline width.
|
XRangeFigure(double x,
double y,
double width,
double height,
Paint fill)
Create a new rectangle with the given origin, size, and
fill paint.
|
XRangeFigure(double x,
double y,
double width,
double height,
Paint fill,
float lineWidth)
Create a new rectangle with the given origin, size, fill, and
outline width.
|
XRangeFigure(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, outline
outline width and composite.
|
XRangeFigure(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 |
|---|---|
boolean |
getConstrain()
Find out if the XRangeFigures are contrained.
|
void |
setConstrain(boolean constrain)
Whether figures are XRangeFigure with a free or constrained
geometry or not.
|
void |
transform(AffineTransform at)
Transform the figure.
|
void |
translate(double x,
double y)
Translate the rectangle the given distance, but only in X,
unless we're unconstrained.
|
addListener, fireChanged, fireCreated, fireRemoved, isTransformFreely, removeListener, setTransformFreely, setVisiblegetBounds, getComposite, getDashArray, getFillPaint, getLineWidth, getShape, getStrokePaint, hit, paint, setComposite, setDashArray, setFillPaint, setLineWidth, setShape, setStroke, setStrokePaintcontains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComposite, getFillPaint, getLineWidth, getStrokePaint, setComposite, setFillPaint, setLineWidth, setShape, setStrokePaintcontains, getBounds, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, hit, intersects, setInteractor, setParent, setToolTipTextisVisible, paint, paintgetTransformContext, repaint, repaintgetUserObject, setUserObjectpublic XRangeFigure(Rectangle2D rect)
public XRangeFigure(double x,
double y,
double width,
double height)
public XRangeFigure(double x,
double y,
double width,
double height,
Paint fill)
public XRangeFigure(double x,
double y,
double width,
double height,
float lineWidth)
public XRangeFigure(double x,
double y,
double width,
double height,
Paint fill,
float lineWidth)
public XRangeFigure(double x,
double y,
double width,
double height,
Paint fill,
Paint outline,
float lineWidth,
AlphaComposite composite)
public void setConstrain(boolean constrain)
public boolean getConstrain()
public void translate(double x,
double y)
translate in interface Figuretranslate in class DrawBasicFigurepublic void transform(AffineTransform at)
transform in interface Figuretransform in class DrawBasicFigureCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.