Class FontProvider
- java.lang.Object
-
- com.nomagic.magicdraw.uml.symbols.FontProvider
-
@OpenApiAll public class FontProvider extends java.lang.ObjectProvides the custom font that is used to draw the presentation element text.
-
-
Constructor Summary
Constructors Constructor Description FontProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.FontgetFont(PresentationElement presentationElement)Font used to draw given presentation element text.java.lang.BooleanisUnderline(PresentationElement presentationElement)Checks if use underline when drawing given presentation element text.
-
-
-
Method Detail
-
getFont
public java.awt.Font getFont(PresentationElement presentationElement)
Font used to draw given presentation element text.- Parameters:
presentationElement-- Returns:
- font, or null to use predefined font.
-
isUnderline
public java.lang.Boolean isUnderline(PresentationElement presentationElement)
Checks if use underline when drawing given presentation element text.- Parameters:
presentationElement-- Returns:
Boolean.TRUEif use underline,Boolean.FALSE- do not use underline, or null to use predefined underline value.
-
-