Class FontRefExtension


  • public class FontRefExtension
    extends Object
    Operation implementations for EClass FontRef
    • Constructor Detail

      • FontRefExtension

        public FontRefExtension()
    • Method Detail

      • faceName

        public static String faceName​(org.eclipse.emf.ecore.EObject font)
        Gets actual face name for FontRef
        Parameters:
        font - actual FontRef, can't be null
        Returns:
        face name for FontRef, can be null if face name wasn't set
      • height

        public static int height​(org.eclipse.emf.ecore.EObject font)
        Gets actual height (integer) for FontRef
        Parameters:
        font - actual FontRef, can't be null
        Returns:
        height for FontRef
      • heightF

        public static float heightF​(org.eclipse.emf.ecore.EObject font)
        Gets actual height for FontRef
        Parameters:
        font - actual FontRef, can't be null
        Returns:
        height for FontRef
      • bold

        public static boolean bold​(org.eclipse.emf.ecore.EObject font)
        Checks bold for FontRef
        Parameters:
        font - actual FontRef, can't be null
        Returns:
        true if font is bold, false otherwise
      • italic

        public static boolean italic​(org.eclipse.emf.ecore.EObject font)
        Checks italic for FontRef
        Parameters:
        font - actual FontRef, can't be null
        Returns:
        true if font is italic, false otherwise
      • underline

        public static boolean underline​(org.eclipse.emf.ecore.EObject font)
        Checks underline for FontRef
        Parameters:
        font - actual FontRef, can't be null
        Returns:
        true if font is underline, false otherwise
      • strikeout

        public static boolean strikeout​(org.eclipse.emf.ecore.EObject font)
        Checks strikeout for FontRef
        Parameters:
        font - actual FontRef, can't be null
        Returns:
        true if font is strikeout, false otherwise
      • scale

        public static int scale​(org.eclipse.emf.ecore.EObject font)
        Gets actual scale for FontRef
        Parameters:
        font - actual FontRef, can't be null
        Returns:
        scale for FontRef