|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AQFont
AQFont represents an immutable font object, based on java.awt.Font
.
AQFontFactory
,
Example:
Field Summary | |
---|---|
static int |
BOLD
The bold style constant. |
static int |
ITALIC
The italicized style constant. |
static int |
PLAIN
The plain style constant. |
Method Summary | |
---|---|
AQFont |
deriveFont(int style,
float size)
Creates a new AQFont object by replicating this AQFont object and applying a new style and size. |
AQFont |
deriveFontBySize(float size)
Creates a new AQFont object by replicating this AQFont object and applying a new size to it. |
AQFont |
deriveFontByStyle(int style)
Creates a new AQFont object by replicating this AQFont object and applying a new style to it. |
String |
getFamily()
Returns the family name of this AQFont. |
String |
getFontName()
Returns the font face name of this AQFont. |
Font |
getJavaFont()
Returns the underlying java.awt.Font object. |
String |
getName()
Returns the logical name of this AQFont. |
int |
getSize()
Returns the point size of this AQFont, rounded to an integer. |
int |
getStyle()
Returns the style of this AQFont. |
boolean |
isBold()
Indicates whether or not this AQFont object's style is BOLD. |
boolean |
isItalic()
Indicates whether or not this AQFont object's style is ITALIC. |
boolean |
isPlain()
Indicates whether or not this AQFont object's style is PLAIN. |
Field Detail |
---|
static final int BOLD
static final int ITALIC
static final int PLAIN
Method Detail |
---|
AQFont deriveFont(int style, float size)
style
- the style for the new AQFontsize
- the size for the new AQFontAQFont deriveFontBySize(float size)
size
- the size for the new AQFontAQFont deriveFontByStyle(int style)
style
- the style for the new AQFontString getFamily()
The family name of a font is font specific. Two fonts such as Helvetica Italic and Helvetica Bold have the same family name, Helvetica, whereas their font face names are Helvetica Bold and Helvetica Italic.
Use getName()
to get the logical name of the font. Use getFontName()
to get the font face name of the font.
String getName()
Use getFamily()
to get the family name of the font. Use getFontName()
to get the font face name of the font.
String getFontName()
Use getFamily()
to get the family name of the font. Use getName()
to get the logical name of the font.
int getSize()
int getStyle()
Font getJavaFont()
java.awt.Font
object.
boolean isBold()
boolean isItalic()
boolean isPlain()
|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |