| |
|
| javax.swing.JPanel org.jfree.ui.FontChooserPanel
FontChooserPanel | public class FontChooserPanel extends JPanel (Code) | | A panel for choosing a font from the available system fonts - still a bit of a hack at the
moment, but good enough for demonstration applications.
author: David Gilbert |
Constructor Summary | |
public | FontChooserPanel(Font font) Standard constructor - builds a FontChooserPanel initialised with the specified font. |
SIZES | final public static String[] SIZES(Code) | | The font sizes that can be selected.
|
localizationResources | protected static ResourceBundle localizationResources(Code) | | The resourceBundle for the localization.
|
FontChooserPanel | public FontChooserPanel(Font font)(Code) | | Standard constructor - builds a FontChooserPanel initialised with the specified font.
Parameters: font - the initial font to display. |
getSelectedFont | public Font getSelectedFont()(Code) | | Returns a Font object representing the selection in the panel.
the font. |
getSelectedName | public String getSelectedName()(Code) | | Returns the selected name.
the name. |
getSelectedSize | public int getSelectedSize()(Code) | | Returns the selected size.
the size. |
getSelectedStyle | public int getSelectedStyle()(Code) | | Returns the selected style.
the style. |
setSelectedFont | public void setSelectedFont(Font font)(Code) | | Initializes the contents of the dialog from the given font
object.
Parameters: font - the font from which to read the properties. |
|
|
|