Enum DominantBaseline

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      Alphabetic
      The baseline-identifier for the dominant-baseline is set to be alphabetic, the derived baseline-table is constructed using the alphabetic baseline-table in the font, and the baseline-table font-size is changed to the value of the font-size attribute on this element.
      Auto
      If this property occurs on a element, then the computed value depends on the value of the writing-mode attribute.
      Central
      The baseline-identifier for the dominant-baseline is set to be central.
      Hanging
      The baseline-identifier for the dominant-baseline is set to be hanging, the derived baseline-table is constructed using the hanging baseline-table in the font, and the baseline-table font-size is changed to the value of the font-size attribute on this element.
      Ideographic
      The baseline-identifier for the dominant-baseline is set to be ideographic, the derived baseline-table is constructed using the ideographic baseline-table in the font, and the baseline-table font-size is changed to the value of the font-size attribute on this element.
      Mathematical
      The baseline-identifier for the dominant-baseline is set to be mathematical, the derived baseline-table is constructed using the mathematical baseline-table in the font, and the baseline-table font-size is changed to the value of the font-size attribute on this element.
      Middle
      The baseline-identifier for the dominant-baseline is set to be middle.
      TextAfterEdge
      The baseline-identifier for the dominant-baseline is set to be text-after-edge.
      TextBeforeEdge
      The baseline-identifier for the dominant-baseline is set to be text-before-edge.
      TextBottom  
      TextTop
      This value uses the top of the em box as the baseline.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private @NotNull java.lang.String matchName  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private DominantBaseline()  
      private DominantBaseline​(@NotNull java.lang.String matchName)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String matchName()  
      static DominantBaseline valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static DominantBaseline[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • Auto

        public static final DominantBaseline Auto
        If this property occurs on a element, then the computed value depends on the value of the writing-mode attribute.

        If the writing-mode is horizontal, then the value of the dominant-baseline component is alphabetic. Otherwise, if the writing-mode is vertical, then the value of the dominant-baseline component is central.

        If this property occurs on a 'tspan', 'tref', 'altGlyph', or 'textPath' element, then the dominant-baseline and the baseline-table components remain the same as those of the parent text content element.

        If the computed baseline-shift value actually shifts the baseline, then the baseline-table font-size component is set to the value of the font-size attribute on the element on which the dominant-baseline attribute occurs, otherwise the baseline-table font-size remains the same as that of the element.

        If there is no parent text content element, the scaled-baseline-table value is constructed as above for 'text' elements.

      • Ideographic

        public static final DominantBaseline Ideographic
        The baseline-identifier for the dominant-baseline is set to be ideographic, the derived baseline-table is constructed using the ideographic baseline-table in the font, and the baseline-table font-size is changed to the value of the font-size attribute on this element.
      • Alphabetic

        public static final DominantBaseline Alphabetic
        The baseline-identifier for the dominant-baseline is set to be alphabetic, the derived baseline-table is constructed using the alphabetic baseline-table in the font, and the baseline-table font-size is changed to the value of the font-size attribute on this element.
      • Hanging

        public static final DominantBaseline Hanging
        The baseline-identifier for the dominant-baseline is set to be hanging, the derived baseline-table is constructed using the hanging baseline-table in the font, and the baseline-table font-size is changed to the value of the font-size attribute on this element.
      • Mathematical

        public static final DominantBaseline Mathematical
        The baseline-identifier for the dominant-baseline is set to be mathematical, the derived baseline-table is constructed using the mathematical baseline-table in the font, and the baseline-table font-size is changed to the value of the font-size attribute on this element.
      • Central

        public static final DominantBaseline Central
        The baseline-identifier for the dominant-baseline is set to be central. The derived baseline-table is constructed from the defined baselines in a baseline-table in the font. That font baseline-table is chosen using the following priority order of baseline-table names: ideographic, alphabetic, hanging, mathematical. The baseline-table font-size is changed to the value of the font-size attribute on this element.
      • Middle

        public static final DominantBaseline Middle
        The baseline-identifier for the dominant-baseline is set to be middle. The derived baseline-table is constructed from the defined baselines in a baseline-table in the font. That font baseline-table is chosen using the following priority order of baseline-table names: alphabetic, ideographic, hanging, mathematical. The baseline-table font-size is changed to the value of the font-size attribute on this element.
      • TextAfterEdge

        public static final DominantBaseline TextAfterEdge
        The baseline-identifier for the dominant-baseline is set to be text-after-edge. The derived baseline-table is constructed from the defined baselines in a baseline-table in the font. The choice of which font baseline-table to use from the baseline-tables in the font is browser dependent. The baseline-table font-size is changed to the value of the font-size attribute on this element.
      • TextBeforeEdge

        public static final DominantBaseline TextBeforeEdge
        The baseline-identifier for the dominant-baseline is set to be text-before-edge. The derived baseline-table is constructed from the defined baselines in a baseline-table in the font. The choice of which baseline-table to use from the baseline-tables in the font is browser dependent. The baseline-table font-size is changed to the value of the font-size attribute on this element.
      • TextTop

        public static final DominantBaseline TextTop
        This value uses the top of the em box as the baseline.
    • Field Detail

      • matchName

        @NotNull
        private final @NotNull java.lang.String matchName
    • Constructor Detail

      • DominantBaseline

        private DominantBaseline​(@NotNull
                                 @NotNull java.lang.String matchName)
      • DominantBaseline

        private DominantBaseline()
    • Method Detail

      • values

        public static DominantBaseline[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DominantBaseline c : DominantBaseline.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DominantBaseline valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • matchName

        @NotNull
        public @NotNull java.lang.String matchName()
        Specified by:
        matchName in interface HasMatchName