Package com.mta.tehreer.font
Class VariationAxis
java.lang.Object
com.mta.tehreer.font.VariationAxis
Represents font variation axis.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe axis should not be exposed directly in user interfaces. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the default coordinate value.booleanintflags()Returns the axis qualifiers.inthashCode()floatmaxValue()Returns the maximum coordinate value.floatminValue()Returns the minimum coordinate value.name()Returns the display name.static VariationAxisReturns a variation axis object with the specified values.inttag()Returns the tag identifying the design variation.
-
Field Details
-
FLAG_HIDDEN_AXIS
public static final int FLAG_HIDDEN_AXISThe 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
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
-
hashCode
public int hashCode()
-