Package com.mta.tehreer.graphics
Class TypeFamily
java.lang.Object
com.mta.tehreer.graphics.TypeFamily
A
TypeFamily
object represents a collection of typefaces that relate to each other.-
Constructor Summary
ConstructorDescriptionTypeFamily
(String familyName, List<Typeface> typefaces) Constructs a type family object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the name of this family.getTypefaceByStyle
(TypeWidth typeWidth, TypeWeight typeWeight, TypeSlope typeSlope) Returns a typeface best matching the specified style.Returns the list of typefaces belonging to this family.int
hashCode()
toString()
-
Constructor Details
-
TypeFamily
Constructs a type family object.- Parameters:
familyName
- The name of family.typefaces
- The list of typefaces belonging to family.
-
-
Method Details
-
getFamilyName
Returns the name of this family.- Returns:
- The name of this family.
-
getTypefaces
Returns the list of typefaces belonging to this family.- Returns:
- The list of typefaces belonging to this family.
-
getTypefaceByStyle
@NonNull public Typeface getTypefaceByStyle(@NonNull TypeWidth typeWidth, @NonNull TypeWeight typeWeight, @NonNull TypeSlope typeSlope) Returns a typeface best matching the specified style.- Parameters:
typeWidth
- The typographic width of desired typeface.typeWeight
- The typographic weight of desired typeface.typeSlope
- The typographic slope of desired typeface.- Returns:
- A typeface best matching the specified style.
-
equals
-
hashCode
public int hashCode() -
toString
-