|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectechopoint.style.DefaultFont
public class DefaultFont
A font utility class that is used to enforce an application wide font face policy. The default font face, font style and font size to use may be specified as system properties with the following keys:
echopoint.style.DefaultFont.typeface - Example
"'Verdana, Times New Roman'"echopoint.style.DefaultFont.style - Example BOLDechopoint.style.DefaultFont.size - Example 12ptAlternatively, the default font properties may be specified in your
web.xml file as servlet init-param values if extending
from the echopoint.Servlet class (in the webcontainer tree).
Note: Please note that the fonts are created using FontKit.makeFont(String), so please follow the same
conventions when configuring the font properties.
| Field Summary | |
|---|---|
static String |
SIZE_KEY
The system property used to configure the default font size. |
static String |
SIZE_VALUE
The default font size used if the property is not configured. |
static String |
STYLE_KEY
The system property used to configure the default font style. |
static String |
STYLE_VALUE
The default font style to use for the application if not configured. |
static String |
TYPEFACE_KEY
The system property used to configure the font typeface. |
static String |
TYPEFACE_VALUE
The default font face to use if the typeface system property is not set. |
| Method Summary | |
|---|---|
static Font |
fontWithSize(String size)
Return the default font (typeface and style) for the application with the specified size. |
static Font |
fontWithStyle(String style)
Return the standard font (typeface and size) with the specified style. |
static Font |
getInstance()
Return the default font for the application. |
static Font |
getInstance(String style,
String size)
|
static void |
setSize(String size)
Set the default size to use. |
static void |
setStyle(String style)
Set the default style to use. |
static void |
setTypeFace(String typeface)
Set the default typeface to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPEFACE_KEY
public static final String TYPEFACE_VALUE
public static final String STYLE_KEY
public static final String STYLE_VALUE
public static final String SIZE_KEY
public static final String SIZE_VALUE
| Method Detail |
|---|
public static Font getInstance()
public static Font getInstance(String style,
String size)
public static Font fontWithSize(String size)
size - The size for the requested font.
public static Font fontWithStyle(String style)
style - The style to use for the font.
public static void setTypeFace(String typeface)
typeface - The typeface to use as default.FontKit.makeFont(String)public static void setStyle(String style)
style - The style to use as default.FontKit.makeFont(String)public static void setSize(String size)
size - The size to use as default.FontKit.makeFont(String)
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||