Package com.kitfox.svg
Class FontFace
- java.lang.Object
-
- com.kitfox.svg.SVGElement
-
- com.kitfox.svg.FontFace
-
- All Implemented Interfaces:
java.io.Serializable
public class FontFace extends SVGElement
Implements an embedded font. SVG specification: http://www.w3.org/TR/SVG/fonts.html- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intaccentHeightprivate intascentprivate intdescent(package private) java.lang.StringfontFamilyprivate intoverlinePositionprivate intoverlineThicknessprivate intstrikethroughPositionprivate intstrikethroughThicknessstatic java.lang.StringTAG_NAMEprivate intunderlinePositionprivate intunderlineThicknessprivate intunitsPerEmEm size of coordinate system font is defined in-
Fields inherited from class com.kitfox.svg.SVGElement
children, contexts, cssClass, diagram, dirty, id, ignorePresAttrib, inlineStyles, parent, presAttribs, serialVersionUID, SVG_NS, trackManager, xmlBase
-
-
Constructor Summary
Constructors Constructor Description FontFace()Creates a new instance of Font
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuild()Called by internal processes to rebuild the geometry of this node from it's presentation attributes, style attributes and animated tracks.intgetAccentHeight()intgetAscent()intgetDescent()java.lang.StringgetFontFamily()intgetOverlinePosition()intgetOverlineThickness()intgetStrikethroughPosition()intgetStrikethroughThickness()java.lang.StringgetTagName()intgetUnderlinePosition()intgetUnderlineThickness()intgetUnitsPerEm()voidsetAccentHeight(int accentHeight)voidsetAscent(int ascent)voidsetDescent(int descent)voidsetOverlinePosition(int overlinePosition)voidsetOverlineThickness(int overlineThickness)voidsetStrikethroughPosition(int strikethroughPosition)voidsetStrikethroughThickness(int strikethroughThickness)voidsetUnderlinePosition(int underlinePosition)voidsetUnderlineThickness(int underlineThickness)voidsetUnitsPerEm(int unitsPerEm)booleanupdateTime(double curTime)Updates all attributes in this diagram associated with a time event.-
Methods inherited from class com.kitfox.svg.SVGElement
addAttribute, buildPath, getChild, getChild, getChildren, getId, getInlineAttributes, getNumChildren, getParent, getParentContext, getPath, getPres, getPresAbsolute, getPresentationAttributes, getRoot, getStyle, getStyle, getStyle, getStyleAbsolute, getXMLBase, hasAttribute, indexOfChild, lerp, loaderAddChild, loaderAddText, loaderEndElement, loaderStartElement, nextFloat, parsePathList, parseSingleTransform, parseTransform, popParentContext, pushParentContext, removeAttribute, removeChild, setAttribute, setDiagram, setParent, swapChildren
-
-
-
-
Field Detail
-
TAG_NAME
public static final java.lang.String TAG_NAME
- See Also:
- Constant Field Values
-
fontFamily
java.lang.String fontFamily
-
unitsPerEm
private int unitsPerEm
Em size of coordinate system font is defined in
-
ascent
private int ascent
-
descent
private int descent
-
accentHeight
private int accentHeight
-
underlinePosition
private int underlinePosition
-
underlineThickness
private int underlineThickness
-
strikethroughPosition
private int strikethroughPosition
-
strikethroughThickness
private int strikethroughThickness
-
overlinePosition
private int overlinePosition
-
overlineThickness
private int overlineThickness
-
-
Method Detail
-
getTagName
public java.lang.String getTagName()
- Specified by:
getTagNamein classSVGElement
-
build
protected void build() throws SVGExceptionDescription copied from class:SVGElementCalled by internal processes to rebuild the geometry of this node from it's presentation attributes, style attributes and animated tracks.- Overrides:
buildin classSVGElement- Throws:
SVGException
-
getFontFamily
public java.lang.String getFontFamily()
-
getUnitsPerEm
public int getUnitsPerEm()
-
getAscent
public int getAscent()
-
getDescent
public int getDescent()
-
getAccentHeight
public int getAccentHeight()
-
getUnderlinePosition
public int getUnderlinePosition()
-
getUnderlineThickness
public int getUnderlineThickness()
-
getStrikethroughPosition
public int getStrikethroughPosition()
-
getStrikethroughThickness
public int getStrikethroughThickness()
-
getOverlinePosition
public int getOverlinePosition()
-
getOverlineThickness
public int getOverlineThickness()
-
updateTime
public boolean updateTime(double curTime)
Updates all attributes in this diagram associated with a time event. Ie, all attributes with track information.- Specified by:
updateTimein classSVGElement- Returns:
- - true if this node has changed state as a result of the time update
-
setUnitsPerEm
public void setUnitsPerEm(int unitsPerEm)
- Parameters:
unitsPerEm- the unitsPerEm to set
-
setAscent
public void setAscent(int ascent)
- Parameters:
ascent- the ascent to set
-
setDescent
public void setDescent(int descent)
- Parameters:
descent- the descent to set
-
setAccentHeight
public void setAccentHeight(int accentHeight)
- Parameters:
accentHeight- the accentHeight to set
-
setUnderlinePosition
public void setUnderlinePosition(int underlinePosition)
- Parameters:
underlinePosition- the underlinePosition to set
-
setUnderlineThickness
public void setUnderlineThickness(int underlineThickness)
- Parameters:
underlineThickness- the underlineThickness to set
-
setStrikethroughPosition
public void setStrikethroughPosition(int strikethroughPosition)
- Parameters:
strikethroughPosition- the strikethroughPosition to set
-
setStrikethroughThickness
public void setStrikethroughThickness(int strikethroughThickness)
- Parameters:
strikethroughThickness- the strikethroughThickness to set
-
setOverlinePosition
public void setOverlinePosition(int overlinePosition)
- Parameters:
overlinePosition- the overlinePosition to set
-
setOverlineThickness
public void setOverlineThickness(int overlineThickness)
- Parameters:
overlineThickness- the overlineThickness to set
-
-