|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AQFontFactory
This interface provides factory methods for creating AQFont
objects.
An instance of this interface is available via aqua.type.font alias.
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 |
newFont(String name)
Creates a new AQFont from the specified name, style is defaulted to PLAIN and point size is defaulted to 11. |
AQFont |
newFont(String name,
int size)
Creates a new AQFont from the specified name and point size, style is defaulted to PLAIN. |
AQFont |
newFont(String name,
int style,
int size)
Creates a new AQFont from the specified name, style and point size. |
Field Detail |
---|
static final int BOLD
static final int ITALIC
static final int PLAIN
Method Detail |
---|
AQFont newFont(String name)
name
- the font name. This can be a font face name or a font family name.AQFont newFont(String name, int size)
name
- the font name. This can be a font face name or a font family name.size
- the point size of the AQFontAQFont newFont(String name, int style, int size)
name
- the font name. This can be a font face name or a font family name.style
- the style constant for the AQFont.
The style argument is an integer bitmask that may be PLAIN, or a bitwise union of BOLD and/or ITALIC (for example, ITALIC or BOLD|ITALIC).
If the style argument does not conform to one of the expected integer bitmasks then the style is set to PLAIN.size
- the point size of the AQFont
|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |