com.kitfox.svg
Class Text

java.lang.Object
  extended by com.kitfox.svg.SVGElement
      extended by com.kitfox.svg.TransformableElement
          extended by com.kitfox.svg.RenderableElement
              extended by com.kitfox.svg.ShapeElement
                  extended by com.kitfox.svg.Text
All Implemented Interfaces:
java.io.Serializable

public class Text
extends ShapeElement

Author:
Mark McKay, Mark McKay
See Also:
Serialized Form

Field Summary
static int TXAN_END
           
static int TXAN_MIDDLE
           
static int TXAN_START
           
static int TXST_ITALIC
           
static int TXST_NORMAL
           
static int TXST_OBLIQUE
           
static int TXWE_100
           
static int TXWE_200
           
static int TXWE_300
           
static int TXWE_400
           
static int TXWE_500
           
static int TXWE_600
           
static int TXWE_700
           
static int TXWE_800
           
static int TXWE_900
           
static int TXWE_BOLD
           
static int TXWE_BOLDER
           
static int TXWE_LIGHTER
           
static int TXWE_NORMAL
           
 
Fields inherited from class com.kitfox.svg.ShapeElement
strokeWidthScalar
 
Fields inherited from class com.kitfox.svg.RenderableElement
VECTOR_EFFECT_NON_SCALING_STROKE, VECTOR_EFFECT_NONE
 
Fields inherited from class com.kitfox.svg.SVGElement
children, cssClass, diagram, id, ignorePresAttrib, inlineStyles, parent, presAttribs, serialVersionUID, 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)
           
 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.ShapeElement
includeStrokeInBounds, renderShape
 
Methods inherited from class com.kitfox.svg.RenderableElement
beginLayer, finishLayer
 
Methods inherited from class com.kitfox.svg.TransformableElement
boundsToParent, shapeToParent
 
Methods inherited from class com.kitfox.svg.SVGElement
addAttribute, buildPath, getChild, getChildren, getId, getInlineAttributes, getParent, getParentContext, getPath, getPres, getPresAbsolute, getPresentationAttributes, getStyle, getStyle, getStyleAbsolute, getXMLBase, hasAttribute, indexOfChild, loaderEndElement, loaderStartElement, nextFloat, parsePathList, parseSingleTransform, parseTransform, popParentContext, pushParentContext, removeChild, setAttribute, swapChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

TXST_NORMAL

public static final int TXST_NORMAL
See Also:
Constant Field Values

TXST_ITALIC

public static final int TXST_ITALIC
See Also:
Constant Field Values

TXST_OBLIQUE

public static final int TXST_OBLIQUE
See Also:
Constant Field Values

TXWE_NORMAL

public static final int TXWE_NORMAL
See Also:
Constant Field Values

TXWE_BOLD

public static final int TXWE_BOLD
See Also:
Constant Field Values

TXWE_BOLDER

public static final int TXWE_BOLDER
See Also:
Constant Field Values

TXWE_LIGHTER

public static final int TXWE_LIGHTER
See Also:
Constant Field Values

TXWE_100

public static final int TXWE_100
See Also:
Constant Field Values

TXWE_200

public static final int TXWE_200
See Also:
Constant Field Values

TXWE_300

public static final int TXWE_300
See Also:
Constant Field Values

TXWE_400

public static final int TXWE_400
See Also:
Constant Field Values

TXWE_500

public static final int TXWE_500
See Also:
Constant Field Values

TXWE_600

public static final int TXWE_600
See Also:
Constant Field Values

TXWE_700

public static final int TXWE_700
See Also:
Constant Field Values

TXWE_800

public static final int TXWE_800
See Also:
Constant Field Values

TXWE_900

public static final int TXWE_900
See Also:
Constant Field Values
Constructor Detail

Text

public Text()
Creates a new instance of Stop

Method Detail

appendText

public void appendText(java.lang.String text)

appendTspan

public void appendTspan(Tspan tspan)
                 throws SVGElementException
Throws:
SVGElementException

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:
loaderAddChild in 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:
loaderAddText in class SVGElement

build

public 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:
build in class RenderableElement
Throws:
SVGException

buildFont

protected void buildFont()
                  throws SVGException
Throws:
SVGException

render

public void render(java.awt.Graphics2D g)
            throws SVGException
Specified by:
render in class ShapeElement
Throws:
SVGException

getShape

public java.awt.Shape getShape()
Specified by:
getShape in class ShapeElement

getBoundingBox

public java.awt.geom.Rectangle2D getBoundingBox()
                                         throws SVGException
Specified by:
getBoundingBox in 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:
updateTime in class TransformableElement
Returns:
- true if this node has changed state as a result of the time update
Throws:
SVGException