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 Classes Modifier and Type Interface Description static class
IFontManager.FontStyle
Style of the font to use to draw text.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 Detail
-
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
void setFontStyle(IFontManager.FontStyle fontStyle)
Set the font style.- Parameters:
fontStyle
- anIFontManager.FontStyle
type
-
setFontName
void setFontName(String fontName)
Set the font name ('Arial', 'Times New Roman') and so on.- Parameters:
fontName
- name of the font to use
-
-