public class DrawLineFigure extends DrawPathFigure
Draw implementation.listeners, transformFreely| Constructor and Description |
|---|
DrawLineFigure(double x1,
double y1,
double x2,
double y2)
Create a new instance with the given end points, a
unit-width continuous stroke and no paint pattern.
|
DrawLineFigure(double x1,
double y1,
double x2,
double y2,
Paint fill,
float lineWidth,
AlphaComposite composite)
Create a new instance with the given end points, fill, and
outline width.
|
DrawLineFigure(Line2D line)
Create a new instance with unit-width continuous stroke and no
paint pattern.
|
| Modifier and Type | Method and Description |
|---|---|
void |
translate(double x,
double y)
Translate the line by the given distance
|
addListener, fireChanged, fireCreated, fireRemoved, getFillPaint, isTransformFreely, removeListener, setFillPaint, setTransformFreely, setVisible, transformgetBounds, getComposite, getDashArray, getLineWidth, getShape, getStroke, getStrokePaint, hit, paint, setComposite, setDashArray, 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, getLineWidth, getStrokePaint, setComposite, setLineWidth, setShape, setStrokePaintcontains, getBounds, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, hit, intersects, setInteractor, setParent, setToolTipTextisVisible, paint, paintgetTransformContext, repaint, repaintgetUserObject, setUserObjectpublic DrawLineFigure(Line2D line)
public DrawLineFigure(double x1,
double y1,
double x2,
double y2)
public DrawLineFigure(double x1,
double y1,
double x2,
double y2,
Paint fill,
float lineWidth,
AlphaComposite composite)
public void translate(double x,
double y)
translate in interface Figuretranslate in class DrawPathFigureCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.