APIdia Launch Partner
Top Description Fields Constructors Methods
javafx.scene.shape

public non-sealed Class SVGPath

extends Shape
Class Inheritance
Imports
com.sun.javafx.util.Logging, com.sun.javafx.geom.Path2D, com.sun.javafx.scene.DirtyBits, .NodeHelper, com.sun.javafx.scene.shape.SVGPathHelper, .ShapeHelper, com.sun.javafx.sg.prism.NGNode, .NGSVGPath, com.sun.javafx.tk.Toolkit, javafx.beans.property.ObjectProperty, .ObjectPropertyBase, .StringProperty, .StringPropertyBase, javafx.scene.Node, javafx.scene.paint.Paint

The 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");
Since
JavaFX 2.0

Field Summary

Modifier and TypeField and Description
private StringProperty
content

Defines the SVG Path encoded string as specified at: http://www.w3.org/TR/SVG/paths.html.

private ObjectProperty<FillRule>
fillRule

Defines the filling rule constant for determining the interior of the path.

private Path2D
private Object
Inherited from javafx.scene.shape.Shape:
old_fillold_stroke

Constructor Summary

AccessConstructor and Description
public
SVGPath()

Creates an empty instance of SVGPath.

Method Summary

Modifier and TypeMethod and Description
public final StringProperty
private Path2D
private Object
private Path2D
private NGNode
private void
public final ObjectProperty<FillRule>
public final String
public final FillRule
public final void
public final void
public String

Returns:

a string representation of this SVGPath object.
toString
()

Overrides javafx.scene.Node.toString.

Returns a string representation of this SVGPath object.

Inherited from javafx.scene.shape.Shape:
computeBoundscomputeShapeBoundscomputeShapeContainsconvertLineJoinfillPropertygetClassCssMetaDatagetCssMetaDatagetFillgetModegetStrokegetStrokeDashArraygetStrokeDashOffsetgetStrokeLineCapgetStrokeLineJoingetStrokeMiterLimitgetStrokeTypegetStrokeWidthintersectisSmoothsetFillsetShapeChangeListenersetSmoothsetStrokesetStrokeDashOffsetsetStrokeLineCapsetStrokeLineJoinsetStrokeMiterLimitsetStrokeTypesetStrokeWidthsmoothPropertystrokeDashOffsetPropertystrokeLineCapPropertystrokeLineJoinPropertystrokeMiterLimitPropertystrokePropertystrokeTypePropertystrokeWidthPropertysubtractunion

Field Detail

contentback to summary
private StringProperty content

Defines the SVG Path encoded string as specified at: http://www.w3.org/TR/SVG/paths.html.

Default Value
empty string
fillRuleback to summary
private ObjectProperty<FillRule> fillRule

Defines the filling rule constant for determining the interior of the path. The value must be one of the following constants: FillRile.EVEN_ODD or FillRule.NON_ZERO. The default value is FillRule.NON_ZERO.

Default Value
FillRule.NON_ZERO
path2dback to summary
private Path2D path2d
svgPathObjectback to summary
private Object svgPathObject

Constructor Detail

SVGPathback to summary
public SVGPath()

Creates an empty instance of SVGPath.

Method Detail

contentPropertyback to summary
public final StringProperty contentProperty()
createSVGPath2Dback to summary
private Path2D createSVGPath2D()
createSVGPathObjectback to summary
private Object createSVGPathObject()
doConfigShapeback to summary
private Path2D doConfigShape()
doCreatePeerback to summary
private NGNode doCreatePeer()
doUpdatePeerback to summary
private void doUpdatePeer()

Hides javafx.scene.shape.Shape.doUpdatePeer.

fillRulePropertyback to summary
public final ObjectProperty<FillRule> fillRuleProperty()
getContentback to summary
public final String getContent()
getFillRuleback to summary
public final FillRule getFillRule()
setContentback to summary
public final void setContent(String value)
setFillRuleback to summary
public final void setFillRule(FillRule value)
toStringback to summary
public String toString()

Overrides javafx.scene.Node.toString.

Returns a string representation of this SVGPath object.

Returns:String

a string representation of this SVGPath object.

Annotations
@Override