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");
| 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 ObjectProperty | fillRule
Defines the filling rule constant for determining the interior of the path. |
| private Path2D | |
| private Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final StringProperty | |
| private Path2D | |
| private Object | |
| private Path2D | |
| private NGNode | |
| private void | |
| public final ObjectProperty | |
| public final String | |
| public final FillRule | |
| public final void | |
| public final void | |
| public String | Returns: a string representation of thisSVGPath object.Overrides javafx. Returns a string representation of this |
| content | back to summary |
|---|---|
| private StringProperty content Defines the SVG Path encoded string as specified at: http://www.w3.org/TR/SVG/paths.html.
| |
| fillRule | back 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:
| |
| path2d | back to summary |
|---|---|
| private Path2D path2d | |
| svgPathObject | back to summary |
|---|---|
| private Object svgPathObject | |
| SVGPath | back to summary |
|---|---|
| public SVGPath() Creates an empty instance of SVGPath. | |
| contentProperty | back to summary |
|---|---|
| public final StringProperty contentProperty() | |
| createSVGPath2D | back to summary |
|---|---|
| private Path2D createSVGPath2D() | |
| createSVGPathObject | back to summary |
|---|---|
| private Object createSVGPathObject() | |
| doConfigShape | back to summary |
|---|---|
| private Path2D doConfigShape() | |
| doCreatePeer | back to summary |
|---|---|
| private NGNode doCreatePeer() | |
| doUpdatePeer | back to summary |
|---|---|
| private void doUpdatePeer() | |
| fillRuleProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| getContent | back to summary |
|---|---|
| public final String getContent() | |
| getFillRule | back to summary |
|---|---|
| public final FillRule getFillRule() | |
| setContent | back to summary |
|---|---|
| public final void setContent(String value) | |
| setFillRule | back to summary |
|---|---|
| public final void setFillRule(FillRule value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides javafx. Returns a string representation of this | |