public class SVGPath extends Shape
SVGPath
class represents a simple shape that is constructed by
parsing SVG path data from a String.
import javafx.scene.shape.*; SVGPath svg = new SVGPath(); svg.setContent("M40,60 C42,48 44,30 25,32");
Type | Property and Description |
---|---|
StringProperty |
content
Defines the SVG Path encoded string as specified at:
http://www.w3.org/TR/SVG/paths.html.
|
<any> |
fillRule
Defines the filling rule constant for determining the interior of the path.
|
fillProperty, smoothProperty, strokeDashOffsetProperty, strokeLineCapProperty, strokeLineJoinProperty, strokeMiterLimitProperty, strokeProperty, strokeTypeProperty, strokeWidthProperty
Modifier and Type | Field and Description |
---|---|
private StringProperty |
content
Defines the SVG Path encoded string as specified at:
http://www.w3.org/TR/SVG/paths.html.
|
private <any> |
fillRule
Defines the filling rule constant for determining the interior of the path.
|
private Path2D |
path2d |
private java.lang.Object |
svgPathObject |
old_fill, old_stroke
Constructor and Description |
---|
SVGPath()
Creates an empty instance of SVGPath.
|
Modifier and Type | Method and Description |
---|---|
StringProperty |
contentProperty()
Defines the SVG Path encoded string as specified at:
http://www.w3.org/TR/SVG/paths.html.
|
private Path2D |
createSVGPath2D() |
private java.lang.Object |
createSVGPathObject() |
private Path2D |
doConfigShape() |
private NGNode |
doCreatePeer() |
private void |
doUpdatePeer() |
<any> |
fillRuleProperty()
Defines the filling rule constant for determining the interior of the path.
|
java.lang.String |
getContent()
Gets the value of the property content.
|
FillRule |
getFillRule()
Gets the value of the property fillRule.
|
void |
setContent(java.lang.String value)
Sets the value of the property content.
|
void |
setFillRule(FillRule value)
Sets the value of the property fillRule.
|
java.lang.String |
toString()
Returns a string representation of this
SVGPath 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
public final <any> fillRuleProperty
FillRile.EVEN_ODD
or FillRule.NON_ZERO
.
The default value is FillRule.NON_ZERO
.getFillRule()
,
setFillRule(FillRule)
public final StringProperty contentProperty
getContent()
,
setContent(String)
private <any> fillRule
FillRile.EVEN_ODD
or FillRule.NON_ZERO
.
The default value is FillRule.NON_ZERO
.private Path2D path2d
private StringProperty content
private java.lang.Object svgPathObject
public final void setFillRule(FillRule value)
public final FillRule getFillRule()
public final <any> fillRuleProperty()
FillRile.EVEN_ODD
or FillRule.NON_ZERO
.
The default value is FillRule.NON_ZERO
.getFillRule()
,
setFillRule(FillRule)
public final void setContent(java.lang.String value)
public final java.lang.String getContent()
public final StringProperty contentProperty()
getContent()
,
setContent(String)
private NGNode doCreatePeer()
private Path2D doConfigShape()
private void doUpdatePeer()
public java.lang.String toString()
SVGPath
object.SVGPath
object.private Path2D createSVGPath2D()
private java.lang.Object createSVGPathObject()