Top Fields Constructors Methods
com.openhtmltopdf.outputdevice.helper

public Class FontFamily<T extends MinimalFontDescription>

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Collections, .Comparator, .List, com.openhtmltopdf.css.constants.IdentValue

Field Summary

Modifier and TypeField and Description
private final String
private final List<T>
private static final int
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
private T
findByWeight(List<T> matches, int desiredWeight, int searchMode)

public String
public List<T>
private void
getStyleMatches(IdentValue style, List<T> candidates)

public T
match(int desiredWeight, IdentValue style)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_familyback to summary
private final String _family
_fontDescriptionsback to summary
private final List<T> _fontDescriptions
SM_DARKER_OR_LIGHTERback to summary
private static final int SM_DARKER_OR_LIGHTER
SM_EXACTback to summary
private static final int SM_EXACT
SM_LIGHTER_OR_DARKERback to summary
private static final int SM_LIGHTER_OR_DARKER

Constructor Detail

FontFamilyback to summary
public FontFamily(String family)

Method Detail

addFontDescriptionback to summary
public void addFontDescription(T descr)
findByWeightback to summary
private T findByWeight(List<T> matches, int desiredWeight, int searchMode)
getFamilyback to summary
public String getFamily()
getFontDescriptionsback to summary
public List<T> getFontDescriptions()
getStyleMatchesback to summary
private void getStyleMatches(IdentValue style, List<T> candidates)
matchback to summary
public T match(int desiredWeight, IdentValue style)