de.uni_paderborn.fujaba.basic
Class FontContainer

java.lang.Object
  extended byde.uni_paderborn.fujaba.basic.FontContainer

public final class FontContainer
extends java.lang.Object

A class to encapsulate a container for fonts.

Version:
$Revision: 1.22 $
Author:
$Author: schneider $

Field Summary
static int DEFAULT_FONT
          The default font type for the panel.
static int DEFAULT_FONT_SIZE
          No comment provided by developer, please add a comment to improve documentation.
protected static de.upb.tools.fca.FHashMap fonts
          No comment provided by developer, please add a comment to improve documentation.
static int JAVA_SOURCE_FONT
          The font for java sources.
 
Constructor Summary
FontContainer()
           
 
Method Summary
static java.awt.Font getDefaultFont()
          Return the default font.
static java.awt.Font getFont(int type)
          Get the font attribute of the FontContainer class
static java.awt.Font getFont(int type, int size)
          Get the font attribute of the FontContainer class
static java.awt.Font getFont(int type, int style, int size)
          Get the font attribute of the FontContainer class
static java.awt.Font getJavaSourceFont()
          Return the java source font.
static int getScale()
          Read access method for scale value
static void setScale(int newScale)
          Write access method for scale value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FONT

public static final int DEFAULT_FONT
The default font type for the panel.

See Also:
Constant Field Values

JAVA_SOURCE_FONT

public static final int JAVA_SOURCE_FONT
The font for java sources.

See Also:
Constant Field Values

DEFAULT_FONT_SIZE

public static final int DEFAULT_FONT_SIZE
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

fonts

protected static de.upb.tools.fca.FHashMap fonts
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

FontContainer

public FontContainer()
Method Detail

getScale

public static int getScale()
Read access method for scale value

Returns:
The scale value

setScale

public static void setScale(int newScale)
Write access method for scale value

Parameters:
newScale - The new scale value

getFont

public static java.awt.Font getFont(int type,
                                    int style,
                                    int size)
Get the font attribute of the FontContainer class

Parameters:
type - No description provided
style - No description provided
size - No description provided
Returns:
The font value

getFont

public static java.awt.Font getFont(int type,
                                    int size)
Get the font attribute of the FontContainer class

Parameters:
type - No description provided
size - No description provided
Returns:
The font value

getFont

public static java.awt.Font getFont(int type)
Get the font attribute of the FontContainer class

Parameters:
type - No description provided
Returns:
The font value

getDefaultFont

public static java.awt.Font getDefaultFont()
Return the default font.

Returns:
The defaultFont value

getJavaSourceFont

public static java.awt.Font getJavaSourceFont()
Return the java source font.

Returns:
The javaSourceFont value