|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.util.shop.FontShop
Factory class for some Font / -style concerns in RSSOwl
Field Summary | |
static org.eclipse.swt.graphics.Font |
dialogBoldFont
Dialog bold font |
static org.eclipse.swt.graphics.Font |
dialogFont
Font for the Dialogs |
static org.eclipse.swt.graphics.Font |
headerBoldFont
Bold Font for the ViewForm headers and TabItem titles |
static org.eclipse.swt.graphics.Font |
headerFont
Font for the ViewForm headers and TabItem titles |
static org.eclipse.swt.graphics.Font |
tableBoldFont
Bold Font for the table holding news |
static org.eclipse.swt.graphics.Font |
tableFont
Font for the table holding news |
static org.eclipse.swt.graphics.Font |
textBoldFont
Bold font for the Text |
static org.eclipse.swt.graphics.Font |
textFont
Font for the newstext |
static org.eclipse.swt.graphics.Font |
treeBoldFont
Font for the tree holding favorites (Bold) |
static org.eclipse.swt.graphics.Font |
treeFont
Font for the tree holding favorites |
Constructor Summary | |
private |
FontShop()
This utility class constructor is hidden |
Method Summary | |
private static org.eclipse.swt.graphics.Font |
createBoldFont(org.eclipse.swt.graphics.Font sourceFont)
Create a new Font using the given one and making it Bold |
static org.eclipse.swt.graphics.Font |
createFont()
Create a Font using the system font |
static org.eclipse.swt.graphics.Font |
createFont(int height)
Create a Font from the given height |
static org.eclipse.swt.graphics.Font |
createFont(int height,
int style)
Create a Font from the given height and style |
static org.eclipse.swt.graphics.Font |
createFont(String name,
int height,
int style)
Create a Font from the given name, height and style |
static void |
disposeFonts()
Dispose fonts |
static org.eclipse.swt.graphics.FontData[] |
getFontData()
Get the FontData array using the given Font information on the system font fontdata |
static org.eclipse.swt.graphics.FontData[] |
getFontData(int height)
Get the FontData array using the given Font information on the system font fontdata |
static org.eclipse.swt.graphics.FontData[] |
getFontData(String name,
int height,
int style)
Get the FontData array using the given Font information on the system font fontdata |
private static void |
initStyledFonts()
Init all styled (bold) fonts |
static boolean |
isset(org.eclipse.swt.graphics.Font font)
Check the given Font for being NULL or disposed. |
static void |
setFontForAll(GUI rssOwlGui)
Update fonts for all controls in RSSOwl |
static void |
updateFonts()
Update styled fonts and the dialog font used by JFace dialogs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static org.eclipse.swt.graphics.Font dialogBoldFont
public static org.eclipse.swt.graphics.Font dialogFont
public static org.eclipse.swt.graphics.Font headerBoldFont
public static org.eclipse.swt.graphics.Font headerFont
public static org.eclipse.swt.graphics.Font tableBoldFont
public static org.eclipse.swt.graphics.Font tableFont
public static org.eclipse.swt.graphics.Font textBoldFont
public static org.eclipse.swt.graphics.Font textFont
public static org.eclipse.swt.graphics.Font treeBoldFont
public static org.eclipse.swt.graphics.Font treeFont
Constructor Detail |
private FontShop()
Method Detail |
public static org.eclipse.swt.graphics.Font createFont()
public static org.eclipse.swt.graphics.Font createFont(int height)
height
- The height of the new Font
public static org.eclipse.swt.graphics.Font createFont(int height, int style)
height
- The height of the new Fontstyle
- The style of the new Font
public static org.eclipse.swt.graphics.Font createFont(String name, int height, int style)
name
- The name of the new Fontheight
- The height of the new Fontstyle
- The style of the new Font
public static void disposeFonts()
public static org.eclipse.swt.graphics.FontData[] getFontData()
public static org.eclipse.swt.graphics.FontData[] getFontData(int height)
height
- The height of the Font
public static org.eclipse.swt.graphics.FontData[] getFontData(String name, int height, int style)
name
- The name of the Fontheight
- The height of the Fontstyle
- The style of the Font
public static boolean isset(org.eclipse.swt.graphics.Font font)
font
- The font to check
public static void setFontForAll(GUI rssOwlGui)
rssOwlGui
- The maincontrollerpublic static void updateFonts()
private static org.eclipse.swt.graphics.Font createBoldFont(org.eclipse.swt.graphics.Font sourceFont)
sourceFont
- The source Font object
private static void initStyledFonts()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |