Enum Class DominantBaseline

java.lang.Object
java.lang.Enum<DominantBaseline>
com.github.weisj.jsvg.attributes.text.DominantBaseline
All Implemented Interfaces:
HasMatchName, Serializable, Comparable<DominantBaseline>, Constable

public enum DominantBaseline extends Enum<DominantBaseline> implements HasMatchName
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    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.
    If this property occurs on a element, then the computed value depends on the value of the writing-mode attribute.
    The baseline-identifier for the dominant-baseline is set to be central.
    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.
    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.
    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.
    The baseline-identifier for the dominant-baseline is set to be middle.
    The baseline-identifier for the dominant-baseline is set to be text-after-edge.
    The baseline-identifier for the dominant-baseline is set to be text-before-edge.
     
    This value uses the top of the em box as the baseline.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final @NotNull String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
    private
    DominantBaseline(@NotNull String matchName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
     
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

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

    • 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.
    • TextBottom

      public static final DominantBaseline TextBottom
    • 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 Details

    • matchName

      @NotNull private final @NotNull String matchName
  • Constructor Details

    • DominantBaseline

      private DominantBaseline(@NotNull @NotNull String matchName)
    • DominantBaseline

      private DominantBaseline()
  • Method Details

    • values

      public static DominantBaseline[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DominantBaseline valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • matchName

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