APIdia Launch Partner
Top Fields Constructors Methods
sun.font

public Class FontFamily

extends Object
Class Inheritance
Imports
java.io.File, .IOException, java.awt.Font, java.util.Collection, .HashMap, .Locale, java.util.concurrent.ConcurrentHashMap

Field Summary

Modifier and TypeField and Description
private static HashMap<String, FontFamily>
protected Font2D
protected Font2D
protected String
private static ConcurrentHashMap<String, FontFamily>
protected int
private int
protected Font2D
protected boolean
protected Font2D

Constructor Summary

AccessConstructor and Description
public
FontFamily(String name, boolean isLogFont, int rank)

pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static synchronized void
addLocaleNames(FontFamily family, String[] names)

private boolean
closerWeight(Font2D currFont, Font2D font, int style)

public static String[]
public static FontFamily[]
pack-priv Font2D
getClosestStyle(int style)

public static FontFamily
public String
public Font2D
getFont(int style)

public Font2D
public static synchronized FontFamily
public int
private boolean
private boolean
pack-priv static void
remove(Font2D font2D)

public void
setFont(Font2D font, int style)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

allLocaleNamesback to summary
private static HashMap<String, FontFamily> allLocaleNames
boldback to summary
protected Font2D bold
bolditalicback to summary
protected Font2D bolditalic
familyNameback to summary
protected String familyName
familyNameMapback to summary
private static ConcurrentHashMap<String, FontFamily> familyNameMap
familyRankback to summary
protected int familyRank
familyWidthback to summary
private int familyWidth
italicback to summary
protected Font2D italic
logicalFontback to summary
protected boolean logicalFont
plainback to summary
protected Font2D plain

Constructor Detail

FontFamilyback to summary
public FontFamily(String name, boolean isLogFont, int rank)
FontFamilyback to summary
pack-priv FontFamily(String name)

Method Detail

addLocaleNamesback to summary
pack-priv static synchronized void addLocaleNames(FontFamily family, String[] names)
closerWeightback to summary
private boolean closerWeight(Font2D currFont, Font2D font, int style)
getAllFamilyNamesback to summary
public static String[] getAllFamilyNames()
getAllFontFamiliesback to summary
public static FontFamily[] getAllFontFamilies()
getClosestStyleback to summary
pack-priv Font2D getClosestStyle(int style)
getFamilyback to summary
public static FontFamily getFamily(String name)
getFamilyNameback to summary
public String getFamilyName()
getFontback to summary
public Font2D getFont(int style)
getFontWithExactStyleMatchback to summary
public Font2D getFontWithExactStyleMatch(int style)
getLocaleFamilyback to summary
public static synchronized FontFamily getLocaleFamily(String name)
getRankback to summary
public int getRank()
isFromSameSourceback to summary
private boolean isFromSameSource(Font2D font)
preferredWidthback to summary
private boolean preferredWidth(Font2D font)
removeback to summary
pack-priv static void remove(Font2D font2D)
setFontback to summary
public void setFont(Font2D font, int style)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.