public class SVGTextBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SVGTextBuilder.OffsetX |
Modifier and Type | Method and Description |
---|---|
static javafx.scene.shape.Shape |
buildText(XMLNode xmlNode,
javafx.geometry.Bounds bounds,
Viewbox viewbox,
Viewport viewport)
Build a "text" element.
|
static javafx.scene.Node |
buildTextAsNode(XMLNode xmlNode,
javafx.geometry.Bounds bounds,
Viewbox viewbox,
Viewport viewport,
double minTextSize)
Build a "text" element.
|
static java.util.List<javafx.scene.Node> |
buildTspan(javafx.scene.Group group,
javafx.scene.Node previous,
javafx.scene.text.Font font,
XMLNode parentNode,
XMLTextNode textNode,
javafx.geometry.Bounds bounds,
Viewbox viewbox,
Viewport viewport,
double minTextSize,
SVGTextBuilder.OffsetX offset)
Build a "tspan" element.
|
static java.util.List<javafx.scene.Node> |
buildTspan(SpanGroup spanGroup,
javafx.scene.Group group,
javafx.scene.Node previous,
XMLNode xmlNode,
javafx.geometry.Bounds bounds,
Viewbox viewbox,
Viewport viewport,
double minTextSize,
SVGTextBuilder.OffsetX offset)
Build a "tspan" element.
|
static SpanGroup |
buildTSpanGroup(javafx.scene.text.Text theText,
XMLNode xmlNode,
javafx.geometry.Bounds bounds,
Viewbox viewbox,
Viewport viewport,
double minTextSize)
Build a "text" element with tspan children.
|
static SpanGroup |
buildTSpanGroup(XMLNode xmlNode,
javafx.geometry.Bounds bounds,
Viewbox viewbox,
Viewport viewport,
double minTextSize)
Build a "text" element with tspan children.
|
public static SpanGroup buildTSpanGroup(XMLNode xmlNode, javafx.geometry.Bounds bounds, Viewbox viewbox, Viewport viewport, double minTextSize)
xmlNode
- the nodebounds
- an optional bounds for an object to specify the coordinates of the object relative to itviewbox
- the viewbox of the element (may be null)viewport
- the viewportminTextSize
- the minimum text sizepublic static SpanGroup buildTSpanGroup(javafx.scene.text.Text theText, XMLNode xmlNode, javafx.geometry.Bounds bounds, Viewbox viewbox, Viewport viewport, double minTextSize)
theText
- the initial textxmlNode
- the nodebounds
- an optional bounds for an object to specify the coordinates of the object relative to itviewbox
- the viewbox of the element (may be null)viewport
- the viewportminTextSize
- the minimum text sizepublic static javafx.scene.shape.Shape buildText(XMLNode xmlNode, javafx.geometry.Bounds bounds, Viewbox viewbox, Viewport viewport)
xmlNode
- the nodebounds
- an optional bounds for an object to specify the coordinates of the object relative to itviewbox
- the viewbox of the element (may be null)viewport
- the viewportpublic static javafx.scene.Node buildTextAsNode(XMLNode xmlNode, javafx.geometry.Bounds bounds, Viewbox viewbox, Viewport viewport, double minTextSize)
xmlNode
- the nodebounds
- an optional bounds for an object to specify the coordinates of the object relative to itviewbox
- the viewbox of the element (may be null)viewport
- the viewportminTextSize
- the minimum font size to create complete textspublic static java.util.List<javafx.scene.Node> buildTspan(javafx.scene.Group group, javafx.scene.Node previous, javafx.scene.text.Font font, XMLNode parentNode, XMLTextNode textNode, javafx.geometry.Bounds bounds, Viewbox viewbox, Viewport viewport, double minTextSize, SVGTextBuilder.OffsetX offset)
group
- the parent groupprevious
- the previous nodefont
- the parent node fontparentNode
- the parent text nodetextNode
- the parent nodebounds
- an optional bounds for an object to specify the coordinates of the object relative to itviewbox
- the viewbox of the element (may be null)viewport
- the viewportminTextSize
- the minimum font size to create complete textsoffset
- the offsetpublic static java.util.List<javafx.scene.Node> buildTspan(SpanGroup spanGroup, javafx.scene.Group group, javafx.scene.Node previous, XMLNode xmlNode, javafx.geometry.Bounds bounds, Viewbox viewbox, Viewport viewport, double minTextSize, SVGTextBuilder.OffsetX offset)
spanGroup
- the span groupgroup
- the parent groupprevious
- the previous nodexmlNode
- the nodebounds
- an optional bounds for an object to specify the coordinates of the object relative to itviewbox
- the viewbox of the element (may be null)viewport
- the viewportminTextSize
- the minimum font size to create complete textsoffset
- the offsetCopyright © 2021, 2022, 2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence