Class AWTFontManager

java.lang.Object
org.openscience.cdk.renderer.font.AbstractFontManager
org.openscience.cdk.renderer.font.AWTFontManager
All Implemented Interfaces:
IFontManager

public class AWTFontManager extends AbstractFontManager
AWT-specific font manager.
Source code:
main
Belongs to CDK module:
renderbasic
  • Constructor Details

    • AWTFontManager

      public AWTFontManager()
      Make a manager for fonts in AWT, with a minimum font size of 9.
  • Method Details

    • makeFonts

      protected void makeFonts()
      Make widget-specific fonts.
      Specified by:
      makeFonts in class AbstractFontManager
    • setFontForZoom

      public 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)
    • getFont

      public Font getFont()
      Get the current font.
      Returns:
      the font at this zoom level