|
TinyLine v2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tinyline.svg.SVGNode
com.tinyline.svg.SVGTextElem
The SVGTextElem class implements the 'text' element.
The 'text' element defines a graphics element consisting of text. The character data within the 'text' element, along with relevant attributes and properties and character-to-glyph mapping tables within the font itself, define the glyphs to be rendered.
| Field Summary | |
TinyString |
str
The character data within the 'text' element |
int |
x
The x-axis coordinate of the current text position for rendering the glyphs that correspond to the first character within this element or any of its descendants. |
int |
y
The y-axis coordinate of the current text position for rendering the glyphs that correspond to the first character within this element or any of its descendants. |
| Fields inherited from class com.tinyline.svg.SVGNode |
animatedVals, bounds, children, color, display, fill, fillOpacity, fillRule, fontFamily, fontSize, fontStyle, fontWeight, helem, id, opacity, outlined, ownerDocument, parent, stopColor, stopOpacity, stroke, strokeDashArray, strokeDashOffset, strokeLineCap, strokeLineJoin, strokeMiterLimit, strokeOpacity, strokeWidth, textAnchor, transform, visibility, xmlSpace |
| Constructor Summary | |
SVGTextElem(SVGTextElem src)
Constructs a copy of the given SVGTextElem node. |
|
| Method Summary | |
SVGNode |
copyNode()
Constructs a copy of the given node. |
int |
createOutline()
Creates the outline for this node. |
java.lang.Object |
getAttribute(int hattr)
Returns the value object for the given attribute, or null object otherwise. |
TinyRect |
getBounds()
Returns the user bounding box for this SVGNode. |
TinyRect |
getDevBounds(SVGRaster renderer)
Returns the device bounding box for this SVGNode. |
TinyString |
getText()
Returns the text of this SVGNode as a char array. |
void |
paint(SVGRaster renderer)
Draws this node. |
int |
setAttribute(int hattr,
java.lang.Object value)
Assigns or modifies the value of the specified attribute. |
int |
setText(char[] value,
int offset,
int count)
Sets the new text of this SVGNode as a char array. |
| Methods inherited from class com.tinyline.svg.SVGNode |
addChild, contains, getCapStyle, getCurrentColor, getDashArray, getDashOffset, getDisplay, getFillColor, getFillOpacity, getFillRule, getFontFamily, getFontSize, getGlobalTransform, getJoinStyle, getLineThickness, getMiterLimit, getNodeById, getOpacity, getStopColor, getStopOpacity, getStrokeColor, getStrokeOpacity, getTextAnchor, getVisibility, intersects, isDisplay, isVisible, matchUserAgent, nodeHitAt, removeChild, resolveColor, seekAElem |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int x
public int y
public TinyString str
| Constructor Detail |
public SVGTextElem(SVGTextElem src)
| Method Detail |
public SVGNode copyNode()
copyNode in class SVGNodepublic TinyString getText()
public int setText(char[] value,
int offset,
int count)
value - array that is the source of characters.offset - the initial offset.count - the length.
public int setAttribute(int hattr,
java.lang.Object value)
throws java.lang.Exception
setAttribute in class SVGNodehattr - The attribute handle.value - The value of the attribute.
java.lang.Exception - if the value type doesn not match to the attribute handle.public java.lang.Object getAttribute(int hattr)
null object otherwise.
getAttribute in class SVGNodehattr - The attribute handle.
public void paint(SVGRaster renderer)
paint in class SVGNoderenderer - Handle to the SVGRaster object
that does the drawing.public TinyRect getBounds()
getBounds in class SVGNodepublic TinyRect getDevBounds(SVGRaster renderer)
getDevBounds in class SVGNoderenderer - The SVGRaster object.public int createOutline()
createOutline in class SVGNode
|
TinyLine v2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||