|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.graphics2d.svg.StandardFontMapper
public class StandardFontMapper
A default implementation of the FontMapper interface. This
implementation will map the Java logical fonts to equivalent SVG generic
fonts. You can add your own mappings if you need to.
| Constructor Summary | |
|---|---|
StandardFontMapper()
Creates a new instance with mappings for the Java logical fonts. |
|
| Method Summary | |
|---|---|
String |
get(String family)
Returns the mapped (alternate) font family name. |
String |
mapFont(String family)
Maps the specified font family name to an alternative, or else returns the same family name. |
void |
put(String family,
String alternate)
Adds a font family mapping (if the specified alternate is null it has the effect of clearing any existing mapping). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardFontMapper()
| Method Detail |
|---|
public String get(String family)
family - the font family (null not permitted).
null).
public void put(String family,
String alternate)
null it has the effect of clearing any existing mapping).
family - the font family name (null not permitted).alternate - the alternate (null permitted).public String mapFont(String family)
mapFont in interface FontMapperfamily - the font family name (null not permitted).
null).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||