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,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.ByDelegateNested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasShape
HasShape.BoxNested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.text.TextSegment
TextSegment.RenderableSegmentNested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.text.TextSegment.RenderableSegment
TextSegment.RenderableSegment.UseTextLengthForCalculation -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final booleanprivate SVGShapeprivate GlyphRenderMethodprivate Sideprivate Spacingprivate Lengthstatic final StringFields inherited from class com.github.weisj.jsvg.nodes.text.TextContainer
fontSpec, lengthAdjust, textLength -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild(@NotNull AttributeNode attributeNode) protected voidcleanUpLocalCursor(@NotNull GlyphCursor current, @NotNull GlyphCursor local) private floatcomputeStartOffset(@NotNull RenderContext context) private @NotNull PathGlyphCursorcreateCursor(@NotNull RenderContext context) protected GlyphCursorcreateLocalCursor(@NotNull RenderContext context, @NotNull GlyphCursor current) private @NotNull PathIteratorcreatePathIterator(@NotNull RenderContext context) protected @NotNull ShapeglyphShape(@NotNull RenderContext context) booleanisValid(@NotNull RenderContext currentContext) booleanisVisible(@NotNull RenderContext context) private voidpaintDebugPath(@NotNull RenderContext context, @NotNull Graphics2D g) voidrender(@NotNull RenderContext context, @NotNull Output output) @NotNull StringtagName()Methods inherited from class com.github.weisj.jsvg.nodes.text.TextContainer
acceptChild, addContent, appendTextShape, children, computeTextMetrics, contextDelegate, doAdd, forEachSegment, hasFixedLength, prepareSegmentForRendering, renderSegment, renderSegmentWithoutLayout, segments, untransformedElementBounds, untransformedElementShape, vectorEffectsMethods inherited from class com.github.weisj.jsvg.nodes.container.BaseContainerNode
addChild, isAcceptableTypeMethods inherited from class com.github.weisj.jsvg.nodes.AbstractSVGNode
id, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.Container
childrenOfTypeMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasContext.ByDelegate
fontRenderContext, fontSpec, paintContextMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasShape
elementBounds, elementShapeMethods 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:
buildin interfaceSVGNode- Overrides:
buildin classTextContainer
-
isVisible
- Specified by:
isVisiblein interfaceRenderable- Overrides:
isVisiblein classTextContainer
-
isValid
-
glyphShape
- Specified by:
glyphShapein classTextContainer
-
render
-
computeStartOffset
-
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:
createLocalCursorin classTextContainer
-
cleanUpLocalCursor
protected void cleanUpLocalCursor(@NotNull @NotNull GlyphCursor current, @NotNull @NotNull GlyphCursor local) - Specified by:
cleanUpLocalCursorin classTextContainer
-