public class DrawPolylineFigure extends DrawPathFigure
DrawBasicFigure
Modifier and Type | Field and Description |
---|---|
protected Polyline2D.Double |
polyline
The Polyline that we're using.
|
listeners, transformFreely
Constructor and Description |
---|
DrawPolylineFigure(double x,
double y,
Paint fill)
Create a new polyline with the given origin and colour.
|
DrawPolylineFigure(double x,
double y,
Paint fill,
float lineWidth,
AlphaComposite composite)
Create a new polyline with the given origin, colour and linewidth.
|
DrawPolylineFigure(Polyline2D poly)
Create a new polyline using the given polyline shape.
|
DrawPolylineFigure(Polyline2D poly,
Paint fill,
float lineWidth,
AlphaComposite composite)
Create a new polyline using the given polyline shape, colour
and linewidth.
|
Modifier and Type | Method and Description |
---|---|
Polyline2D.Double |
createPolyline(double x,
double y)
Create a polyline and position it at the origin.
|
addListener, fireChanged, fireCreated, fireRemoved, getFillPaint, isTransformFreely, removeListener, setFillPaint, setTransformFreely, setVisible, transform, translate
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
protected Polyline2D.Double polyline
public DrawPolylineFigure(Polyline2D poly)
public DrawPolylineFigure(Polyline2D poly, Paint fill, float lineWidth, AlphaComposite composite)
public DrawPolylineFigure(double x, double y, Paint fill)
public DrawPolylineFigure(double x, double y, Paint fill, float lineWidth, AlphaComposite composite)
public Polyline2D.Double createPolyline(double x, double y)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.