public class Polyline extends Shape
import javafx.scene.shape.*; Polyline polyline = new Polyline(); polyline.getPoints().addAll(new Double[]{ 0.0, 0.0, 20.0, 10.0, 10.0, 20.0 });
fillProperty, smoothProperty, strokeDashOffsetProperty, strokeLineCapProperty, strokeLineJoinProperty, strokeMiterLimitProperty, strokeProperty, strokeTypeProperty, strokeWidthProperty
Modifier and Type | Field and Description |
---|---|
private <any> |
points
Defines the coordinates of the polyline segments.
|
private Path2D |
shape |
old_fill, old_stroke
Constructor and Description |
---|
Polyline()
Creates an empty instance of Polyline.
|
Polyline(double... points)
Creates a new instance of Polyline.
|
Modifier and Type | Method and Description |
---|---|
private BaseBounds |
doComputeGeomBounds(BaseBounds bounds,
BaseTransform tx) |
private Path2D |
doConfigShape() |
private NGNode |
doCreatePeer() |
private Paint |
doCssGetFillInitialValue()
*
Stylesheet Handling *
*
|
private Paint |
doCssGetStrokeInitialValue() |
private void |
doUpdatePeer() |
<any> |
getPoints()
Gets the coordinates of the
PolyLine segments. |
java.lang.String |
toString()
Returns a string representation of this
Polyline object. |
computeBounds, computeShapeBounds, computeShapeContains, convertLineJoin, fillProperty, getClassCssMetaData, getCssMetaData, getFill, getMode, getStroke, getStrokeDashArray, getStrokeDashOffset, getStrokeLineCap, getStrokeLineJoin, getStrokeMiterLimit, getStrokeType, getStrokeWidth, intersect, isSmooth, setFill, setMode, setShapeChangeListener, setSmooth, setStroke, setStrokeDashOffset, setStrokeLineCap, setStrokeLineJoin, setStrokeMiterLimit, setStrokeType, setStrokeWidth, smoothProperty, strokeDashOffsetProperty, strokeLineCapProperty, strokeLineJoinProperty, strokeMiterLimitProperty, strokeProperty, strokeTypeProperty, strokeWidthProperty, subtract, union
private final Path2D shape
private final <any> points
public Polyline()
public Polyline(double... points)
points
- the coordinates of the polyline segmentspublic final <any> getPoints()
PolyLine
segments.PolyLine
private NGNode doCreatePeer()
private BaseBounds doComputeGeomBounds(BaseBounds bounds, BaseTransform tx)
private Path2D doConfigShape()
private void doUpdatePeer()
private Paint doCssGetFillInitialValue()
private Paint doCssGetStrokeInitialValue()
public java.lang.String toString()
Polyline
object.Polyline
object.