java.lang.Object
com.github.weisj.jsvg.nodes.AbstractSVGNode
com.github.weisj.jsvg.nodes.container.BaseContainerNode<TextSegment>
com.github.weisj.jsvg.nodes.text.TextContainer
com.github.weisj.jsvg.nodes.text.TextPath
- All Implemented Interfaces:
Container<TextSegment>
,HasContext
,HasContext.ByDelegate
,HasFillRule
,HasFontContext
,HasFontRenderContext
,HasPaintContext
,HasShape
,HasVectorEffects
,Renderable
,SVGNode
,TextSegment
,TextSegment.RenderableSegment
@ElementCategories({Graphic,TextContent,TextContentChild})
@PermittedContent(categories=Descriptive,
anyOf={Anchor.class,TextSpan.class,Animate.class,AnimateTransform.class,Set.class},
charData=true)
public final class TextPath
extends TextContainer
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasContext
HasContext.ByDelegate
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasShape
HasShape.Box
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.text.TextSegment
TextSegment.RenderableSegment
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.text.TextSegment.RenderableSegment
TextSegment.RenderableSegment.UseTextLengthForCalculation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final boolean
private SVGShape
private GlyphRenderMethod
private Side
private Spacing
private Length
static final String
Fields inherited from class com.github.weisj.jsvg.nodes.text.TextContainer
fontSpec, lengthAdjust, textLength
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
build
(@NotNull AttributeNode attributeNode) protected void
cleanUpLocalCursor
(@NotNull GlyphCursor current, @NotNull GlyphCursor local) private @NotNull PathGlyphCursor
createCursor
(@NotNull RenderContext context) protected GlyphCursor
createLocalCursor
(@NotNull RenderContext context, @NotNull GlyphCursor current) private @NotNull PathIterator
createPathIterator
(@NotNull RenderContext context) boolean
isVisible
(@NotNull RenderContext context) private void
paintDebugPath
(@NotNull RenderContext context, @NotNull Graphics2D g) void
render
(@NotNull RenderContext context, @NotNull Output output) @NotNull String
tagName()
@NotNull Shape
untransformedElementShape
(@NotNull RenderContext context) Methods inherited from class com.github.weisj.jsvg.nodes.text.TextContainer
acceptChild, addContent, appendTextShape, children, computeTextMetrics, contextDelegate, doAdd, hasFixedLength, prepareSegmentForRendering, renderSegment, renderSegmentWithoutLayout, untransformedElementBounds, vectorEffects
Methods inherited from class com.github.weisj.jsvg.nodes.container.BaseContainerNode
addChild, isAcceptableType
Methods inherited from class com.github.weisj.jsvg.nodes.AbstractSVGNode
id, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Container
childrenOfType
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasContext.ByDelegate
fillRule, fontRenderContext, fontSpec, paintContext
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasShape
elementBounds, elementShape
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Renderable
parseIsVisible, requiresInstantiation, shouldEstablishChildContext
-
Field Details
-
TAG
- See Also:
-
DEBUG
private static final boolean DEBUG- See Also:
-
pathShape
-
spacing
-
renderMethod
-
side
-
startOffset
-
-
Constructor Details
-
TextPath
public TextPath()
-
-
Method Details
-
tagName
-
build
- Specified by:
build
in interfaceSVGNode
- Overrides:
build
in classTextContainer
-
isVisible
- Specified by:
isVisible
in interfaceRenderable
- Overrides:
isVisible
in classTextContainer
-
untransformedElementShape
-
render
-
createCursor
-
paintDebugPath
private void paintDebugPath(@NotNull @NotNull RenderContext context, @NotNull @NotNull Graphics2D g) -
createPathIterator
-
createLocalCursor
protected GlyphCursor createLocalCursor(@NotNull @NotNull RenderContext context, @NotNull @NotNull GlyphCursor current) - Specified by:
createLocalCursor
in classTextContainer
-
cleanUpLocalCursor
protected void cleanUpLocalCursor(@NotNull @NotNull GlyphCursor current, @NotNull @NotNull GlyphCursor local) - Specified by:
cleanUpLocalCursor
in classTextContainer
-