Package com.kitfox.svg
Class MissingGlyph
- java.lang.Object
-
- com.kitfox.svg.SVGElement
-
- com.kitfox.svg.TransformableElement
-
- com.kitfox.svg.RenderableElement
-
- com.kitfox.svg.ShapeElement
-
- com.kitfox.svg.MissingGlyph
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
Glyph
public class MissingGlyph extends ShapeElement
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 float
horizAdvX
private java.awt.Shape
path
static java.lang.String
TAG_NAME
private float
vertAdvY
private float
vertOriginX
private float
vertOriginY
-
Fields inherited from class com.kitfox.svg.ShapeElement
strokeWidthScalar
-
Fields inherited from class com.kitfox.svg.RenderableElement
cachedClip, cachedXform, VECTOR_EFFECT_NON_SCALING_STROKE, VECTOR_EFFECT_NONE, vectorEffect
-
Fields inherited from class com.kitfox.svg.TransformableElement
xform
-
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 MissingGlyph()
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.java.awt.geom.Rectangle2D
getBoundingBox()
float
getHorizAdvX()
java.awt.Shape
getPath()
java.awt.Shape
getShape()
java.lang.String
getTagName()
float
getVertAdvY()
float
getVertOriginX()
float
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 processedvoid
render(java.awt.Graphics2D g)
void
setHorizAdvX(float horizAdvX)
void
setPath(java.awt.Shape path)
void
setVertAdvY(float vertAdvY)
void
setVertOriginX(float vertOriginX)
void
setVertOriginY(float vertOriginY)
boolean
updateTime(double curTime)
Updates all attributes in this diagram associated with a time event.-
Methods inherited from class com.kitfox.svg.ShapeElement
includeStrokeInBounds, pick, pick, renderShape
-
Methods inherited from class com.kitfox.svg.RenderableElement
beginLayer, finishLayer
-
Methods inherited from class com.kitfox.svg.TransformableElement
boundsToParent, getXForm, shapeToParent
-
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, 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
-
path
private java.awt.Shape path
-
horizAdvX
private float horizAdvX
-
vertOriginX
private float vertOriginX
-
vertOriginY
private float vertOriginY
-
vertAdvY
private float vertAdvY
-
-
Method Detail
-
getTagName
public java.lang.String getTagName()
- Specified by:
getTagName
in classSVGElement
-
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 classSVGElement
- Throws:
SVGElementException
-
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 classRenderableElement
- Throws:
SVGException
-
getPath
public java.awt.Shape getPath()
-
render
public void render(java.awt.Graphics2D g) throws SVGException
- Specified by:
render
in classShapeElement
- Throws:
SVGException
-
getHorizAdvX
public float getHorizAdvX()
-
getVertOriginX
public float getVertOriginX()
-
getVertOriginY
public float getVertOriginY()
-
getVertAdvY
public float getVertAdvY()
-
getShape
public java.awt.Shape getShape()
- Specified by:
getShape
in classShapeElement
-
getBoundingBox
public java.awt.geom.Rectangle2D getBoundingBox() throws SVGException
- Specified by:
getBoundingBox
in classRenderableElement
- 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 classTransformableElement
- Returns:
- - true if this node has changed state as a result of the time update
- Throws:
SVGException
-
setPath
public void setPath(java.awt.Shape path)
- Parameters:
path
- the path to set
-
setHorizAdvX
public void setHorizAdvX(float horizAdvX)
- Parameters:
horizAdvX
- the horizAdvX to set
-
setVertOriginX
public void setVertOriginX(float vertOriginX)
- Parameters:
vertOriginX
- the vertOriginX to set
-
setVertOriginY
public void setVertOriginY(float vertOriginY)
- Parameters:
vertOriginY
- the vertOriginY to set
-
setVertAdvY
public void setVertAdvY(float vertAdvY)
- Parameters:
vertAdvY
- the vertAdvY to set
-
-