Interface IFontManager
- All Known Implementing Classes:
AbstractFontManager,AWTFontManager
public interface IFontManager
An interface for managing the drawing of fonts at different zoom levels.
- Author:
- maclean
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumStyle of the font to use to draw text. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetFontForZoom(double zoom) For a particular zoom level, set the appropriate font size to use.voidsetFontName(String fontName) Set the font name ('Arial', 'Times New Roman') and so on.voidsetFontStyle(IFontManager.FontStyle fontStyle) Set the font style.
-
Method Details
-
setFontForZoom
void setFontForZoom(double zoom) For a particular zoom level, set the appropriate font size to use.- Parameters:
zoom- a real number in the range (0.0, INF)
-
setFontStyle
Set the font style.- Parameters:
fontStyle- anIFontManager.FontStyletype
-
setFontName
Set the font name ('Arial', 'Times New Roman') and so on.- Parameters:
fontName- name of the font to use
-