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
- Source code:
- main
- Belongs to CDK module:
- render
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Style of the font to use to draw text. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setFontForZoom
(double zoom) For a particular zoom level, set the appropriate font size to use.void
setFontName
(String fontName) Set the font name ('Arial', 'Times New Roman') and so on.void
setFontStyle
(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.FontStyle
type
-
setFontName
Set the font name ('Arial', 'Times New Roman') and so on.- Parameters:
fontName
- name of the font to use
-