com.kitfox.svg
Class Text
java.lang.Object
   com.kitfox.svg.SVGElement
com.kitfox.svg.SVGElement
       com.kitfox.svg.TransformableElement
com.kitfox.svg.TransformableElement
           com.kitfox.svg.RenderableElement
com.kitfox.svg.RenderableElement
               com.kitfox.svg.ShapeElement
com.kitfox.svg.ShapeElement
                   com.kitfox.svg.Text
com.kitfox.svg.Text
- public class Text 
- extends ShapeElement
- Author:
- Mark McKay, Mark McKay
 
 
| Fields inherited from class com.kitfox.svg.SVGElement | 
| children, cssClass, diagram, id, ignorePresAttrib, inlineStyles, parent, presAttribs, SVG_NS, trackManager, xmlBase | 
 
| Constructor Summary | 
| Text()Creates a new instance of Stop
 | 
 
| Method Summary | 
|  void | appendText(java.lang.String text)
 | 
|  void | appendTspan(Tspan tspan)
 | 
| protected  void | build()Called by internal processes to rebuild the geometry of this node
 from it's presentation attributes, style attributes and animated tracks.
 | 
| protected  void | buildFont()
 | 
|  java.awt.geom.Rectangle2D | getBoundingBox()
 | 
|  java.util.List | getContent()
 | 
|  java.awt.Shape | getShape()
 | 
|  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,
              java.lang.String text)Called during load process to add text scanned within a tag
 | 
|  void | rebuild()Discard cached information
 | 
|  void | render(java.awt.Graphics2D g)
 | 
|  boolean | updateTime(double curTime)Updates all attributes in this diagram associated with a time event.
 | 
 
 
 
 
| Methods inherited from class com.kitfox.svg.SVGElement | 
| addAttribute, buildPath, getChild, getChildren, getId, getParent, getPath, getPres, getPresAbsolute, getStyle, getStyle, getStyleAbsolute, getXMLBase, hasAttribute, loaderEndElement, loaderStartElement, nextFloat, parsePathList, parseSingleTransform, parseTransform, removeChild, setAttribute | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
TXAN_START
public static final int TXAN_START
- See Also:
- Constant Field Values
TXAN_MIDDLE
public static final int TXAN_MIDDLE
- See Also:
- Constant Field Values
TXAN_END
public static final int TXAN_END
- See Also:
- Constant Field Values
Text
public Text()
- Creates a new instance of Stop
 
appendText
public void appendText(java.lang.String text)
- 
 
appendTspan
public void appendTspan(Tspan tspan)
- 
 
rebuild
public void rebuild()
             throws SVGException
- Discard cached information
 
- 
- Throws:
- SVGException
 
getContent
public java.util.List getContent()
- 
 
loaderAddChild
public void loaderAddChild(SVGLoaderHelper helper,
                           SVGElement child)
                    throws SVGElementException
- Called after the start element but before the end element to indicate
 each child tag that has been processed
 
- 
- Overrides:
- loaderAddChildin class- SVGElement
 
- 
- Throws:
- SVGElementException
 
loaderAddText
public void loaderAddText(SVGLoaderHelper helper,
                          java.lang.String text)
- Called during load process to add text scanned within a tag
 
- 
- Overrides:
- loaderAddTextin class- SVGElement
 
- 
 
build
protected void build()
              throws SVGException
- Description copied from class: SVGElement
- Called by internal processes to rebuild the geometry of this node
 from it's presentation attributes, style attributes and animated tracks.
 
- 
- Overrides:
- buildin class- TransformableElement
 
- 
- Throws:
- SVGException
 
buildFont
protected void buildFont()
                  throws SVGException
- 
- Throws:
- SVGException
 
render
public void render(java.awt.Graphics2D g)
            throws SVGException
- 
- Specified by:
- renderin class- ShapeElement
 
- 
- Throws:
- SVGException
 
getShape
public java.awt.Shape getShape()
- 
- Specified by:
- getShapein class- ShapeElement
 
- 
 
getBoundingBox
public java.awt.geom.Rectangle2D getBoundingBox()
                                         throws SVGException
- 
- Specified by:
- getBoundingBoxin class- RenderableElement
 
- 
- Throws:
- SVGException
 
updateTime
public boolean updateTime(double curTime)
                   throws SVGException
- Updates all attributes in this diagram associated with a time event.
 Ie, all attributes with track information.
 
- 
- Overrides:
- updateTimein class- TransformableElement
 
- 
- Returns:
- - true if this node has changed state as a result of the time
 update
- Throws:
- SVGException