public class FontTriplet extends java.lang.Object implements java.lang.Comparable<FontTriplet>, java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static interface |
FontTriplet.Matcher
Matcher interface for
FontTriplet. |
| Modifier and Type | Field and Description |
|---|---|
static FontTriplet |
DEFAULT_FONT_TRIPLET |
| Constructor and Description |
|---|
FontTriplet() |
FontTriplet(java.lang.String name,
java.lang.String style,
int weight)
Creates a new font triplet.
|
FontTriplet(java.lang.String name,
java.lang.String style,
int weight,
int priority)
Creates a new font triplet.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(FontTriplet o) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName() |
int |
getPriority() |
java.lang.String |
getStyle() |
int |
getWeight() |
int |
hashCode() |
java.lang.String |
toString() |
public static final FontTriplet DEFAULT_FONT_TRIPLET
public FontTriplet()
public FontTriplet(java.lang.String name,
java.lang.String style,
int weight)
name - font namestyle - font style (normal, italic etc.)weight - font weight (100, 200, 300...800, 900)public FontTriplet(java.lang.String name,
java.lang.String style,
int weight,
int priority)
name - font namestyle - font style (normal, italic etc.)weight - font weight (100, 200, 300...800, 900)priority - priority of this triplet/font mappingpublic java.lang.String getName()
public java.lang.String getStyle()
public int getWeight()
public int getPriority()
public int compareTo(FontTriplet o)
compareTo in interface java.lang.Comparable<FontTriplet>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.