public class Tspan extends ShapeElement
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Tspan.Cursor |
protected static class |
Tspan.TextSegment |
| Modifier and Type | Field and Description |
|---|---|
protected FontUtil.FontInfo |
fontInfo |
protected Path2D |
fullPath |
protected ArrayList<Tspan.TextSegment> |
segments |
static String |
TAG_NAME |
protected Rectangle2D |
textBounds |
strokeWidthScalarVECTOR_EFFECT_NON_SCALING_STROKE, VECTOR_EFFECT_NONEchildren, cssClass, diagram, id, inlineStyles, parent, presAttribs, serialVersionUID, SVG_NS, trackManager, xmlBase| Constructor and Description |
|---|
Tspan()
Creates a new instance of Tspan
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendText(String text) |
void |
appendTspan(Tspan tspan) |
protected void |
buildAttributes(StyleAttribute sty) |
protected void |
buildShapeInformation() |
protected void |
buildTextShape(Tspan.Cursor cursor) |
void |
clearContent()
Removes all strings and Tspan elements that are children of this element.
|
protected Tspan.Cursor |
createInitialCursor() |
protected void |
doRender(Graphics2D g) |
Rectangle2D |
getBoundingBox() |
List<Serializable> |
getContent() |
Shape |
getShape() |
String |
getTagName() |
String |
getText() |
void |
loaderAddChild(SVGLoaderHelper helper,
SVGElement child)
Called after the start element but before the end element to indicate
each child tag that has been processed
|
void |
loaderAddText(SVGLoaderHelper helper,
String text)
Called during load process to add text scanned within a tag
|
boolean |
updateTime(double curTime)
Updates all attributes in this diagram associated with a time event.
|
doPick, doPick, includeStrokeInBounds, renderShapebeginLayer, build, finishLayer, renderboundsToParent, getXForm, shapeToParentaddAttribute, buildPath, getChild, getChild, getChildren, getId, getInlineAttributes, getNumChildren, getParent, getParentContext, getPath, getPres, getPresAbsolute, getPresentationAttributes, getRoot, getStyle, getStyle, getStyle, getStyleAbsolute, getXMLBase, hasAttribute, indexOfChild, lerp, loaderEndElement, loaderStartElement, parsePathList, parseSingleTransform, parseTransform, popParentContext, pushParentContext, removeAttribute, removeChild, setAttribute, setDiagram, swapChildrenpublic static final String TAG_NAME
protected final ArrayList<Tspan.TextSegment> segments
protected Rectangle2D textBounds
protected Path2D fullPath
protected FontUtil.FontInfo fontInfo
public String getTagName()
getTagName in class SVGElementpublic void loaderAddChild(SVGLoaderHelper helper, SVGElement child) throws SVGElementException
loaderAddChild in class SVGElementSVGElementExceptionpublic void loaderAddText(SVGLoaderHelper helper, String text)
loaderAddText in class SVGElementpublic List<Serializable> getContent()
public void clearContent()
public void appendText(String text)
public void appendTspan(Tspan tspan) throws SVGElementException
SVGElementExceptionprotected void buildAttributes(StyleAttribute sty) throws SVGException
SVGExceptionprotected void buildShapeInformation()
throws SVGException
SVGExceptionprotected void buildTextShape(Tspan.Cursor cursor) throws SVGException
SVGExceptionprotected Tspan.Cursor createInitialCursor()
protected void doRender(Graphics2D g) throws SVGException
doRender in class ShapeElementSVGExceptionpublic Shape getShape()
getShape in class ShapeElementpublic Rectangle2D getBoundingBox()
getBoundingBox in class RenderableElementpublic boolean updateTime(double curTime)
throws SVGException
updateTime in class TransformableElementSVGExceptionpublic String getText()
Copyright © 2022. All rights reserved.