public class DefaultGrfFontManager extends Object
Modifier and Type | Field and Description |
---|---|
protected Font |
defaultFont
The default font (Lucida Sans 14).
|
protected ArrayList |
fonts
ArrayList of references to all fonts.
|
Modifier and Type | Method and Description |
---|---|
int |
add(Font font)
Add a font, returns its index.
|
int |
count()
Get the number of fonts.
|
Font |
getFont(int index)
Get a font by its index.
|
int |
getIndex(Font font)
Get the index of a known font.
|
static DefaultGrfFontManager |
getReference()
Return reference to the only allowed instance of this class.
|
int |
remove(Font font)
Remove a font by name, returning its index.
|
void |
remove(int index)
Remove a font by index.
|
protected Font defaultFont
protected ArrayList fonts
public static DefaultGrfFontManager getReference()
public int count()
public int add(Font font)
public int remove(Font font)
public void remove(int index)
public int getIndex(Font font)
public Font getFont(int index)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.