public class FontSpec
extends java.lang.Object
implements java.lang.Comparable
Constructor and Description |
---|
FontSpec(java.lang.String key,
FontMetrics metrics)
Creates a new font spec.
|
Modifier and Type | Method and Description |
---|---|
void |
addFamilyNames(java.util.Collection<java.lang.String> names)
Adds font family names.
|
void |
addTriplet(FontTriplet triplet)
Adds a font triplet.
|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object o) |
java.util.SortedSet |
getFamilyNames()
Returns the font family names.
|
FontMetrics |
getFontMetrics()
Returns the font metrics.
|
java.lang.String |
getKey()
Returns the internal font key.
|
java.util.Collection |
getTriplets()
Returns the font triplets.
|
int |
hashCode() |
public FontSpec(java.lang.String key, FontMetrics metrics)
key
- the internal font keymetrics
- the font metricspublic void addFamilyNames(java.util.Collection<java.lang.String> names)
names
- the namespublic void addTriplet(FontTriplet triplet)
triplet
- the font tripletpublic java.util.SortedSet getFamilyNames()
public java.util.Collection getTriplets()
public java.lang.String getKey()
public FontMetrics getFontMetrics()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.