net.sourceforge.rssowl.util.shop
Class FontShop

java.lang.Object
  extended by net.sourceforge.rssowl.util.shop.FontShop

public class FontShop
extends java.lang.Object

Factory class for some Font / -style concerns in RSSOwl

Version:
1.2.4
Author:
Benjamin Pasero

Field Summary
static Font dialogBoldFont
          Dialog bold font
static Font dialogFont
          Font for the Dialogs
static Font headerBoldFont
          Bold Font for the ViewForm headers and TabItem titles
static Font headerFont
          Font for the ViewForm headers and TabItem titles
static Font tableBoldFont
          Bold Font for the table holding news
static Font tableFont
          Font for the table holding news
static Font textBoldFont
          Bold font for the Text
static Font textFont
          Font for the newstext
static Font treeBoldFont
          Font for the tree holding favorites (Bold)
static Font treeFont
          Font for the tree holding favorites
 
Constructor Summary
private FontShop()
          This utility class constructor is hidden
 
Method Summary
private static Font createBoldFont(Font sourceFont)
          Create a new Font using the given one and making it Bold
static Font createFont()
          Create a Font using the system font
static Font createFont(int height)
          Create a Font from the given height
static Font createFont(int height, int style)
          Create a Font from the given height and style
static Font createFont(java.lang.String name, int height, int style)
          Create a Font from the given name, height and style
static void disposeFonts()
          Dispose fonts
static FontData[] getFontData()
          Get the FontData array using the given Font information on the system font fontdata
static FontData[] getFontData(int height)
          Get the FontData array using the given Font information on the system font fontdata
static FontData[] getFontData(java.lang.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(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

dialogBoldFont

public static Font dialogBoldFont
Dialog bold font


dialogFont

public static Font dialogFont
Font for the Dialogs


headerBoldFont

public static Font headerBoldFont
Bold Font for the ViewForm headers and TabItem titles


headerFont

public static Font headerFont
Font for the ViewForm headers and TabItem titles


tableBoldFont

public static Font tableBoldFont
Bold Font for the table holding news


tableFont

public static Font tableFont
Font for the table holding news


textBoldFont

public static Font textBoldFont
Bold font for the Text


textFont

public static Font textFont
Font for the newstext


treeBoldFont

public static Font treeBoldFont
Font for the tree holding favorites (Bold)


treeFont

public static Font treeFont
Font for the tree holding favorites

Constructor Detail

FontShop

private FontShop()
This utility class constructor is hidden

Method Detail

createFont

public static Font createFont()
Create a Font using the system font

Returns:
Font The new Font from the system font

createFont

public static Font createFont(int height)
Create a Font from the given height

Parameters:
height - The height of the new Font
Returns:
Font The new Font from the given Font information

createFont

public static Font createFont(int height,
                              int style)
Create a Font from the given height and style

Parameters:
height - The height of the new Font
style - The style of the new Font
Returns:
Font The new Font from the given Font information

createFont

public static Font createFont(java.lang.String name,
                              int height,
                              int style)
Create a Font from the given name, height and style

Parameters:
name - The name of the new Font
height - The height of the new Font
style - The style of the new Font
Returns:
Font The new Font from the given Font information

disposeFonts

public static void disposeFonts()
Dispose fonts


getFontData

public static FontData[] getFontData()
Get the FontData array using the given Font information on the system font fontdata

Returns:
FontData The FontData from the system font

getFontData

public static FontData[] getFontData(int height)
Get the FontData array using the given Font information on the system font fontdata

Parameters:
height - The height of the Font
Returns:
FontData The FontData array using the given Font information

getFontData

public static FontData[] getFontData(java.lang.String name,
                                     int height,
                                     int style)
Get the FontData array using the given Font information on the system font fontdata

Parameters:
name - The name of the Font
height - The height of the Font
style - The style of the Font
Returns:
FontData The FontData array using the given Font information

isset

public static boolean isset(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(GUI rssOwlGui)
Update fonts for all controls in RSSOwl

Parameters:
rssOwlGui - The maincontroller

updateFonts

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


createBoldFont

private static Font createBoldFont(Font sourceFont)
Create a new Font using the given one and making it Bold

Parameters:
sourceFont - The source Font object
Returns:
Font The Font in Bold

initStyledFonts

private static void initStyledFonts()
Init all styled (bold) fonts



RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo