FontEventListener
public class FontEventAdapter extends java.lang.Object implements FontEventListener
Constructor | Description |
---|---|
FontEventAdapter(EventBroadcaster broadcaster) |
Creates a new FontEventAdapter.
|
Modifier and Type | Method | Description |
---|---|---|
void |
fontDirectoryNotFound(java.lang.Object source,
java.lang.String dir) |
An error occurred trying to find the font directory specified in the config file.
|
void |
fontLoadingErrorAtAutoDetection(java.lang.Object source,
java.lang.String fontURL,
java.lang.Exception e) |
An error occurred while loading a font for auto-detection.
|
void |
fontSubstituted(java.lang.Object source,
FontTriplet requested,
FontTriplet effective) |
Notifies about a font being substituted as the requested one isn't available.
|
void |
glyphNotAvailable(java.lang.Object source,
char ch,
java.lang.String fontName) |
A glyph has been requested that is not available in the font.
|
void |
svgTextStrokedAsShapes(java.lang.Object source,
java.lang.String fontFamily) |
The SVG text will be stroked as shapes.
|
public FontEventAdapter(EventBroadcaster broadcaster)
broadcaster
- the event broadcaster to send the generated events topublic void fontSubstituted(java.lang.Object source, FontTriplet requested, FontTriplet effective)
fontSubstituted
in interface FontEventListener
source
- the event sourcerequested
- the requested font tripleteffective
- the effective font tripletpublic void fontLoadingErrorAtAutoDetection(java.lang.Object source, java.lang.String fontURL, java.lang.Exception e)
fontLoadingErrorAtAutoDetection
in interface FontEventListener
source
- the event sourcefontURL
- the font URLe
- the original exceptionpublic void glyphNotAvailable(java.lang.Object source, char ch, java.lang.String fontName)
glyphNotAvailable
in interface FontEventListener
source
- the event sourcech
- the character for which the glyph isn't availablefontName
- the name of the fontpublic void fontDirectoryNotFound(java.lang.Object source, java.lang.String dir)
fontDirectoryNotFound
in interface FontEventListener
source
- the event sourcedir
- the directory in the config filepublic void svgTextStrokedAsShapes(java.lang.Object source, java.lang.String fontFamily)
svgTextStrokedAsShapes
in interface FontEventListener
source
- the event sourcefontFamily
- the family name of the font that is being strokedCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.