java.lang.Object
org.rrd4j.graph.RrdGraphConstants.FontConstructor
Enclosing interface:
RrdGraphConstants

public static class RrdGraphConstants.FontConstructorextends Object
Font constructor, to use embedded fonts. Not really useful outside internal use for RRD4J.
  • Field Details

    • fileProps

      private static final Properties fileProps
      Contents of the font properties file
  • Constructor Details

    • FontConstructor

      private FontConstructor()
      Utility class, not intended for instantiation.
  • Method Details

    • refreshConf

      static void refreshConf()
      Used for tests
    • getFont

      public static Font getFont(int type, int size)
      Return the default RRD4J's default font for the given strength
      Parameters:
      type - Font.BOLD for a bold fond, any other value return plain style.
      size - the size for the new Font
      Returns:
      a new Font instance