net.sourceforge.geeboss.util
Class FontUtil

java.lang.Object
  extended by net.sourceforge.geeboss.util.FontUtil

public class FontUtil
extends java.lang.Object

Utility class for some Font / -style concerns in Geeboss


Field Summary
static org.eclipse.swt.graphics.Font mDialogBoldFont
          Dialog bold font
static org.eclipse.swt.graphics.Font mDialogFont
          Font for the Dialogs
static org.eclipse.swt.graphics.Font mHeaderFont
          Font for the ViewForm headers and TabItem titles
static org.eclipse.swt.graphics.Font mTableBoldFont
          Bold Font for the table holding news
static org.eclipse.swt.graphics.Font mTableFont
          Font for the table holding news
static org.eclipse.swt.graphics.Font mTextBoldFont
          Bold font for the Text
static org.eclipse.swt.graphics.Font mTextFont
          Font for the newstext
static org.eclipse.swt.graphics.Font mTreeBoldFont
          Font for the tree holding patch (Bold)
static org.eclipse.swt.graphics.Font mTreeFont
          Font for the tree holding patch
 
Method Summary
static void disposeFonts()
          Dispose fonts
static boolean isset(org.eclipse.swt.graphics.Font font)
          Check the given Font for being NULL or disposed.
static void setFontForAll(MainView geebossGui)
          Update fonts for all controls in Geeboss
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

mDialogBoldFont

public static org.eclipse.swt.graphics.Font mDialogBoldFont
Dialog bold font


mDialogFont

public static org.eclipse.swt.graphics.Font mDialogFont
Font for the Dialogs


mHeaderFont

public static org.eclipse.swt.graphics.Font mHeaderFont
Font for the ViewForm headers and TabItem titles


mTableBoldFont

public static org.eclipse.swt.graphics.Font mTableBoldFont
Bold Font for the table holding news


mTableFont

public static org.eclipse.swt.graphics.Font mTableFont
Font for the table holding news


mTextBoldFont

public static org.eclipse.swt.graphics.Font mTextBoldFont
Bold font for the Text


mTextFont

public static org.eclipse.swt.graphics.Font mTextFont
Font for the newstext


mTreeBoldFont

public static org.eclipse.swt.graphics.Font mTreeBoldFont
Font for the tree holding patch (Bold)


mTreeFont

public static org.eclipse.swt.graphics.Font mTreeFont
Font for the tree holding patch

Method Detail

disposeFonts

public static void disposeFonts()
Dispose fonts


isset

public static boolean isset(org.eclipse.swt.graphics.Font font)
Check the given Font for being NULL or disposed. Return false in that case.

Parameters:
font - The font to check
Returns:
boolean true if the font is available

setFontForAll

public static void setFontForAll(MainView geebossGui)
Update fonts for all controls in Geeboss

Parameters:
geebossGui - The maincontroller

updateFonts

public static void updateFonts()
Update styled fonts and the dialog font used by JFace dialogs



Copyright (c) 2005 The Geeboss team (http://geeboss.sourceforge.net). All Rights Reserved.