Class VariationAxis

java.lang.Object
com.mta.tehreer.font.VariationAxis

public final class VariationAxis extends Object
Represents font variation axis.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The axis should not be exposed directly in user interfaces.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the default coordinate value.
    boolean
     
    int
    Returns the axis qualifiers.
    int
     
    float
    Returns the maximum coordinate value.
    float
    Returns the minimum coordinate value.
    Returns the display name.
    of(int tag, String name, int flags, float defaultValue, float minValue, float maxValue)
    Returns a variation axis object with the specified values.
    int
    tag()
    Returns the tag identifying the design variation.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • FLAG_HIDDEN_AXIS

      public static final int FLAG_HIDDEN_AXIS
      The axis should not be exposed directly in user interfaces.
      See Also:
  • Method Details

    • of

      @NonNull public static VariationAxis of(int tag, @NonNull String name, int flags, float defaultValue, float minValue, float maxValue)
      Returns a variation axis object with the specified values.
      Parameters:
      tag - Tag identifying the design variation.
      name - The display name.
      flags - Axis qualifiers.
      defaultValue - The default coordinate value.
      minValue - The minimum coordinate value.
      maxValue - The maximum coordinate value.
      Returns:
      A new variation axis object.
    • tag

      public int tag()
      Returns the tag identifying the design variation.
      Returns:
      The tag identifying the design variation.
    • name

      @NonNull public String name()
      Returns the display name.
      Returns:
      The display name.
    • flags

      public int flags()
      Returns the axis qualifiers.
      Returns:
      The axis qualifiers.
    • defaultValue

      public float defaultValue()
      Returns the default coordinate value.
      Returns:
      The default coordinate value.
    • minValue

      public float minValue()
      Returns the minimum coordinate value.
      Returns:
      The minimum coordinate value.
    • maxValue

      public float maxValue()
      Returns the maximum coordinate value.
      Returns:
      The maximum coordinate value.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object