public class FontStore
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.awt.Font |
activeFont |
(package private) java.awt.Font |
boldFont |
(package private) java.awt.Font |
defaultFont |
(package private) java.awt.Font |
defaultItalicFont |
(package private) java.util.HashMap<java.lang.String,java.awt.Font> |
fontHM |
(package private) java.awt.Font |
h2Font |
(package private) static FontStore |
p_instance |
Modifier | Constructor and Description |
---|---|
private |
FontStore() |
Modifier and Type | Method and Description |
---|---|
java.awt.Font |
getActiveFont() |
java.awt.Font |
getBoldFont() |
java.awt.Font |
getDefaultFont() |
java.awt.Font |
getDefaultItalicFont() |
java.awt.Font |
getFont(java.lang.String famin,
int isty,
int isiz,
java.lang.String key) |
java.awt.Font |
getFont(java.lang.String fam,
java.lang.String sty,
java.lang.String siz) |
java.awt.Font |
getH2Font() |
static FontStore |
instance() |
int |
stringWidth(java.awt.Graphics g,
java.lang.String text) |
java.util.HashMap<java.lang.String,java.awt.Font> fontHM
java.awt.Font activeFont
java.awt.Font defaultFont
java.awt.Font defaultItalicFont
java.awt.Font h2Font
java.awt.Font boldFont
static FontStore p_instance
public static FontStore instance()
public java.awt.Font getFont(java.lang.String fam, java.lang.String sty, java.lang.String siz)
public java.awt.Font getFont(java.lang.String famin, int isty, int isiz, java.lang.String key)
public int stringWidth(java.awt.Graphics g, java.lang.String text)
public java.awt.Font getActiveFont()
public java.awt.Font getDefaultFont()
public java.awt.Font getDefaultItalicFont()
public java.awt.Font getH2Font()
public java.awt.Font getBoldFont()
Copyright © 2013. All Rights Reserved.