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 enum 
    Style of the font to use to draw text.
  • Method Summary

    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
    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

      void setFontStyle(IFontManager.FontStyle fontStyle)
      Set the font style.
      Parameters:
      fontStyle - an IFontManager.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