|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.font.FontSelector
public abstract class FontSelector
Abstract superclass for all font-selection strategies.
| Constructor Summary | |
|---|---|
FontSelector(FontConsumer4a consumer)
Constructor. |
|
| Method Summary | |
|---|---|
protected FontConsumer4a |
getConsumer()
Returns the parent font consumer instance. |
abstract RegisteredFontDesc |
selectFont(List<String> familyList,
org.axsl.font.Font.Style style,
org.axsl.font.Font.Weight weight,
org.axsl.font.Font.Variant variant,
org.axsl.font.Font.Stretch stretch,
int size,
int codePoint)
Selectes a font. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FontSelector(FontConsumer4a consumer)
consumer - The font consumer for whom this selector is being
created.| Method Detail |
|---|
public abstract RegisteredFontDesc selectFont(List<String> familyList,
org.axsl.font.Font.Style style,
org.axsl.font.Font.Weight weight,
org.axsl.font.Font.Variant variant,
org.axsl.font.Font.Stretch stretch,
int size,
int codePoint)
throws org.axsl.font.FontException
familyList - The list of families that are eligible for selection.style - The font style (normal, italic, etc.).weight - The font weight (100, 200, normal, bold, etc.).variant - The font variant (normal, small-caps).stretch - The font stretch (normal, condensed, etc.).size - The font size, in millipoints. This is used only for
bitmapped fonts.codePoint - The Unicode code point which must be encodable by the
selected font.
org.axsl.font.FontException - For invalid input.protected FontConsumer4a getConsumer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||