Class FontProvider

java.lang.Object
com.nomagic.magicdraw.uml.symbols.FontProvider

@OpenApiAll public class FontProvider extends Object
Provides the custom font that is used to draw the presentation element text.
See Also:
  • Constructor Details

    • FontProvider

      public FontProvider()
  • Method Details

    • getFont

      public Font getFont(PresentationElement presentationElement)
      Font used to draw given presentation element text.
      Parameters:
      presentationElement -
      Returns:
      font, or null to use predefined font.
    • isUnderline

      public Boolean isUnderline(PresentationElement presentationElement)
      Checks if use underline when drawing given presentation element text.
      Parameters:
      presentationElement -
      Returns:
      Boolean.TRUE if use underline, Boolean.FALSE - do not use underline, or null to use predefined underline value.