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 int
accentHeight
private int
ascent
private int
descent
(package private) java.lang.String
fontFamily
private int
overlinePosition
private int
overlineThickness
private int
strikethroughPosition
private int
strikethroughThickness
static java.lang.String
TAG_NAME
private int
underlinePosition
private int
underlineThickness
private int
unitsPerEm
Em 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 void
build()
Called by internal processes to rebuild the geometry of this node from it's presentation attributes, style attributes and animated tracks.int
getAccentHeight()
int
getAscent()
int
getDescent()
java.lang.String
getFontFamily()
int
getOverlinePosition()
int
getOverlineThickness()
int
getStrikethroughPosition()
int
getStrikethroughThickness()
java.lang.String
getTagName()
int
getUnderlinePosition()
int
getUnderlineThickness()
int
getUnitsPerEm()
void
setAccentHeight(int accentHeight)
void
setAscent(int ascent)
void
setDescent(int descent)
void
setOverlinePosition(int overlinePosition)
void
setOverlineThickness(int overlineThickness)
void
setStrikethroughPosition(int strikethroughPosition)
void
setStrikethroughThickness(int strikethroughThickness)
void
setUnderlinePosition(int underlinePosition)
void
setUnderlineThickness(int underlineThickness)
void
setUnitsPerEm(int unitsPerEm)
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, 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:
getTagName
in classSVGElement
-
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 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:
updateTime
in 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
-
-