Package com.github.weisj.jsvg.nodes.text
Class LinearTextContainer
- 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.LinearTextContainer
-
- All Implemented Interfaces:
Container<TextSegment>
,HasContext
,HasContext.ByDelegate
,HasFillRule
,HasFontContext
,HasFontRenderContext
,HasPaintContext
,HasShape
,HasVectorEffects
,Renderable
,SVGNode
,TextSegment
,TextSegment.RenderableSegment
abstract class LinearTextContainer 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 protected Length[]
dx
protected Length[]
dy
protected float[]
rotate
protected Length[]
x
protected Length[]
y
-
Fields inherited from class com.github.weisj.jsvg.nodes.text.TextContainer
fontSpec, lengthAdjust, textLength
-
-
Constructor Summary
Constructors Constructor Description LinearTextContainer()
-
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 GlyphCursor
createCursor()
protected GlyphCursor
createLocalCursor(@NotNull RenderContext context, @NotNull GlyphCursor current)
void
render(@NotNull RenderContext context, @NotNull Output output)
@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, isVisible, 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
-
-
-
-
Method Detail
-
build
@MustBeInvokedByOverriders public void build(@NotNull @NotNull AttributeNode attributeNode)
- Specified by:
build
in interfaceSVGNode
- Overrides:
build
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 GlyphCursor createCursor()
-
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
-
-