Ontimize 5.2072EN

com.ontimize.gui
Class FontSelector

java.lang.Object
  extended bycom.ontimize.gui.FontSelector
All Implemented Interfaces:
Freeable

public class FontSelector
extends java.lang.Object
implements Freeable

Class used to select a new font to set


Nested Class Summary
protected static class FontSelector.SimpleFontsDialog
           
 
Field Summary
static java.lang.String border
           
static java.lang.String button
           
static java.lang.String checkBox
           
static java.lang.String comboBox
           
protected static FontSelector.SimpleFontsDialog dF
           
static java.lang.String label
           
static java.lang.String list
           
static java.lang.String menu
           
static java.lang.String menuBar
           
static java.lang.String menuItem
           
static java.lang.String menuItemCheck
           
static java.lang.String menuItemRadio
           
static java.lang.String menuPopup
           
static java.lang.String optionPane
           
static java.lang.String panel
           
static java.lang.String panelTabs
           
static java.lang.String radioButton
           
static java.lang.String spinner
           
static java.lang.String table
           
static java.lang.String tableHeader
           
static java.lang.String textArea
           
static java.lang.String textField
           
static java.lang.String toggleButton
           
static java.lang.String tree
           
static java.lang.String viewport
           
 
Constructor Summary
FontSelector(java.awt.Frame parentFrame)
           
 
Method Summary
protected  void finalize()
           
 void free()
          Makes the object to release the resources.
static java.awt.Font getCurrentFont()
           
static void setApplicationFont(Application application, java.awt.Font font)
           
static void setApplicationFontSize(Application application, int size)
           
static void setDialogFont(java.awt.Dialog dialog, java.awt.Font font)
           
static void setFrameFont(java.awt.Frame applicationFrame, java.awt.Font font)
           
static void setUIManagerFontSize(int size)
           
 java.awt.Font showAvaliableFonts(boolean supportingEuro)
           
static java.awt.Font showFontSelector(java.awt.Frame parentFrame, java.lang.String title)
          Show the font selector and returns the selected font or null if no font has been selected
static java.awt.Font showFontSelector(java.awt.Frame parentFrame, java.lang.String title, java.util.ResourceBundle res)
           
static java.awt.Font showFontSelector(java.awt.Frame parentFrame, java.lang.String title, java.util.ResourceBundle res, java.awt.Font font)
           
static boolean supportsEuroSymbol(java.awt.Font f)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

checkBox

public static final java.lang.String checkBox
See Also:
Constant Field Values

tree

public static final java.lang.String tree
See Also:
Constant Field Values

toggleButton

public static final java.lang.String toggleButton
See Also:
Constant Field Values

menuItemRadio

public static final java.lang.String menuItemRadio
See Also:
Constant Field Values

menuItem

public static final java.lang.String menuItem
See Also:
Constant Field Values

menu

public static final java.lang.String menu
See Also:
Constant Field Values

panel

public static final java.lang.String panel
See Also:
Constant Field Values

textArea

public static final java.lang.String textArea
See Also:
Constant Field Values

viewport

public static final java.lang.String viewport
See Also:
Constant Field Values

tableHeader

public static final java.lang.String tableHeader
See Also:
Constant Field Values

textField

public static final java.lang.String textField
See Also:
Constant Field Values

optionPane

public static final java.lang.String optionPane
See Also:
Constant Field Values

menuBar

public static final java.lang.String menuBar
See Also:
Constant Field Values

button

public static final java.lang.String button
See Also:
Constant Field Values

label

public static final java.lang.String label
See Also:
Constant Field Values

list

public static final java.lang.String list
See Also:
Constant Field Values

table

public static final java.lang.String table
See Also:
Constant Field Values

panelTabs

public static final java.lang.String panelTabs
See Also:
Constant Field Values

radioButton

public static final java.lang.String radioButton
See Also:
Constant Field Values

menuItemCheck

public static final java.lang.String menuItemCheck
See Also:
Constant Field Values

menuPopup

public static final java.lang.String menuPopup
See Also:
Constant Field Values

border

public static final java.lang.String border
See Also:
Constant Field Values

comboBox

public static final java.lang.String comboBox
See Also:
Constant Field Values

spinner

public static final java.lang.String spinner
See Also:
Constant Field Values

dF

protected static FontSelector.SimpleFontsDialog dF
Constructor Detail

FontSelector

public FontSelector(java.awt.Frame parentFrame)
Method Detail

showAvaliableFonts

public java.awt.Font showAvaliableFonts(boolean supportingEuro)

showFontSelector

public static java.awt.Font showFontSelector(java.awt.Frame parentFrame,
                                             java.lang.String title)
Show the font selector and returns the selected font or null if no font has been selected

Parameters:
parentFrame -
title -
Returns:

showFontSelector

public static java.awt.Font showFontSelector(java.awt.Frame parentFrame,
                                             java.lang.String title,
                                             java.util.ResourceBundle res)

showFontSelector

public static java.awt.Font showFontSelector(java.awt.Frame parentFrame,
                                             java.lang.String title,
                                             java.util.ResourceBundle res,
                                             java.awt.Font font)

free

public void free()
          throws java.lang.Exception
Description copied from interface: Freeable
Makes the object to release the resources.

Specified by:
free in interface Freeable
Throws:
java.lang.Exception

finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable

supportsEuroSymbol

public static boolean supportsEuroSymbol(java.awt.Font f)

setFrameFont

public static void setFrameFont(java.awt.Frame applicationFrame,
                                java.awt.Font font)

setDialogFont

public static void setDialogFont(java.awt.Dialog dialog,
                                 java.awt.Font font)

setApplicationFont

public static void setApplicationFont(Application application,
                                      java.awt.Font font)

getCurrentFont

public static java.awt.Font getCurrentFont()

setApplicationFontSize

public static void setApplicationFontSize(Application application,
                                          int size)

setUIManagerFontSize

public static void setUIManagerFontSize(int size)

Ontimize