Package com.github.weisj.jsvg.nodes.text
Class TextPath
- 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
Fields Modifier and Type Field Description private static boolean
DEBUG
private SVGShape
pathShape
private GlyphRenderMethod
renderMethod
private Side
side
private Spacing
spacing
private Length
startOffset
static java.lang.String
TAG
-
Fields inherited from class com.github.weisj.jsvg.nodes.text.TextContainer
fontSpec, lengthAdjust, textLength
-
-
Constructor Summary
Constructors Constructor Description TextPath()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 java.awt.geom.PathIterator
createPathIterator(@NotNull RenderContext context)
boolean
isVisible(@NotNull RenderContext context)
private void
paintDebugPath(@NotNull RenderContext context, @NotNull java.awt.Graphics2D g)
void
render(@NotNull RenderContext context, @NotNull Output output)
@NotNull java.lang.String
tagName()
@NotNull java.awt.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 Detail
-
TAG
public static final java.lang.String TAG
- See Also:
- Constant Field Values
-
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
-
pathShape
private SVGShape pathShape
-
spacing
@NotImplemented private Spacing spacing
-
renderMethod
@NotImplemented private GlyphRenderMethod renderMethod
-
side
private Side side
-
startOffset
private Length startOffset
-
-
Method Detail
-
tagName
@NotNull public @NotNull java.lang.String tagName()
-
build
public void build(@NotNull @NotNull AttributeNode attributeNode)
- Specified by:
build
in interfaceSVGNode
- Overrides:
build
in classTextContainer
-
isVisible
public boolean isVisible(@NotNull @NotNull RenderContext context)
- Specified by:
isVisible
in interfaceRenderable
- Overrides:
isVisible
in classTextContainer
-
untransformedElementShape
@NotNull public @NotNull java.awt.Shape untransformedElementShape(@NotNull @NotNull RenderContext context)
-
render
public void render(@NotNull @NotNull RenderContext context, @NotNull @NotNull Output output)
-
createCursor
@NotNull private @NotNull PathGlyphCursor createCursor(@NotNull @NotNull RenderContext context)
-
paintDebugPath
private void paintDebugPath(@NotNull @NotNull RenderContext context, @NotNull @NotNull java.awt.Graphics2D g)
-
createPathIterator
@NotNull private @NotNull java.awt.geom.PathIterator createPathIterator(@NotNull @NotNull RenderContext context)
-
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
-
-