com.kitfox.svg
Class Font

java.lang.Object
  extended by com.kitfox.svg.SVGElement
      extended by com.kitfox.svg.Font
All Implemented Interfaces:
java.io.Serializable

public class Font
extends SVGElement

Implements an embedded font. SVG specification: http://www.w3.org/TR/SVG/fonts.html

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

Field Summary
 
Fields inherited from class com.kitfox.svg.SVGElement
children, cssClass, diagram, id, ignorePresAttrib, inlineStyles, parent, presAttribs, serialVersionUID, SVG_NS, trackManager, xmlBase
 
Constructor Summary
Font()
          Creates a new instance of Font
 
Method Summary
protected  void build()
          Called by internal processes to rebuild the geometry of this node from it's presentation attributes, style attributes and animated tracks.
 FontFace getFontFace()
           
 MissingGlyph getGlyph(java.lang.String unicode)
           
 int getHorizAdvX()
           
 int getHorizOriginX()
           
 int getHorizOriginY()
           
 int getVertAdvY()
           
 int getVertOriginX()
           
 int getVertOriginY()
           
 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 loaderEndElement(SVGLoaderHelper helper)
          Called to indicate that this tag and the tags it contains have been completely processed, and that it should finish any load processes.
 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, getInlineAttributes, getParent, getParentContext, getPath, getPres, getPresAbsolute, getPresentationAttributes, getStyle, getStyle, getStyleAbsolute, getXMLBase, hasAttribute, indexOfChild, loaderAddText, 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
 

Constructor Detail

Font

public Font()
Creates a new instance of Font

Method Detail

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

loaderEndElement

public void loaderEndElement(SVGLoaderHelper helper)
                      throws SVGParseException
Description copied from class: SVGElement
Called to indicate that this tag and the tags it contains have been completely processed, and that it should finish any load processes.

Overrides:
loaderEndElement in class SVGElement
Throws:
SVGParseException

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

getFontFace

public FontFace getFontFace()

getGlyph

public MissingGlyph getGlyph(java.lang.String unicode)

getHorizOriginX

public int getHorizOriginX()

getHorizOriginY

public int getHorizOriginY()

getHorizAdvX

public int getHorizAdvX()

getVertOriginX

public int getVertOriginX()

getVertOriginY

public int getVertOriginY()

getVertAdvY

public int getVertAdvY()

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.

Specified by:
updateTime in class SVGElement
Returns:
- true if this node has changed state as a result of the time update
Throws:
SVGException