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, transform
getBounds, getComposite, getDashArray, getLineWidth, getShape, getStroke, getStrokePaint, hit, paint, setComposite, setDashArray, 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, getLineWidth, getStrokePaint, setComposite, 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 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 Figure
translate
in class DrawPathFigure
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.