|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FontInfo
A FontInfo object holds information about a font configuration. It is roughly an equivalent to the LOGFONT structure in Windows GDI.
If an implementation doesn't provide a property, the getter will return null -
if the value is unset, a default value will be returned.
Setting a unsupported property results in an UnsupportedOperationException.
| Method Summary | |
|---|---|
FontCharset |
getCharset()
|
FontFamily |
getFamily()
|
java.lang.Integer |
getIndex()
Get the index within the collection of Font objects |
FontPitch |
getPitch()
|
java.lang.String |
getTypeface()
|
void |
setCharset(FontCharset charset)
Sets the charset |
void |
setFamily(FontFamily family)
Sets the font family class |
void |
setIndex(int index)
Sets the index within the collection of Font objects |
void |
setPitch(FontPitch pitch)
Set the font pitch |
void |
setTypeface(java.lang.String typeface)
Sets the font name |
| Method Detail |
|---|
java.lang.Integer getIndex()
void setIndex(int index)
index - the index within the collection of Font objects
java.lang.UnsupportedOperationException - if unsupportedjava.lang.String getTypeface()
void setTypeface(java.lang.String typeface)
typeface - the full name of the font, when null removes the font definition -
removal is implementation specificFontCharset getCharset()
void setCharset(FontCharset charset)
charset - the charsetFontFamily getFamily()
void setFamily(FontFamily family)
family - the font family classFontPitch getPitch()
null if unsupportedvoid setPitch(FontPitch pitch)
pitch - the font pitch
java.lang.UnsupportedOperationException - if unsupported
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||