|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.princeton.swing.text.FontInfo
public class FontInfo
FontInfo is a class that analyzes a font to see if it is monospaced over a specified set of characters.
Constructor Summary | |
---|---|
FontInfo(Font font,
boolean[] characterAllowed)
Creates a new FontInfo object. |
Method Summary | |
---|---|
int[] |
getBoldCharacterWidths()
Returns the set of all character widths for the bold flavor of the font. |
int[] |
getBoldItalicCharacterWidths()
Returns the set of all character widths for the bold-italic flavor of the font. |
int |
getCharacterHeight()
Gets the maximum character height for the font over the specified set of characters. |
Font |
getFont()
Returns the font represented by this FontInfo object. |
int[] |
getItalicCharacterWidths()
Returns the set of all character widths for the italic flavor of the font. |
int |
getLineSpacing()
Gets the recommended number pixels which should vertically separate each line. |
int |
getMaxCharacterWidth()
Returns the maximum width attained by one of the characters in the specified set of characters. |
int[] |
getPlainCharacterWidths()
Returns the set of all character widths for the plain flavor of the font. |
boolean |
isMonospaced()
Returns wheter or not the font is monspaced over the specified set of characters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FontInfo(Font font, boolean[] characterAllowed)
Method Detail |
---|
public Font getFont()
public boolean isMonospaced()
public int getMaxCharacterWidth()
public int[] getPlainCharacterWidths()
public int[] getBoldCharacterWidths()
public int[] getItalicCharacterWidths()
public int[] getBoldItalicCharacterWidths()
public int getCharacterHeight()
public int getLineSpacing()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |