org.jfree.ui
public class FontChooserPanel extends JPanel
Field Summary | |
---|---|
protected static ResourceBundle | localizationResources The resourceBundle for the localization. |
static String[] | SIZES The font sizes that can be selected. |
Constructor Summary | |
---|---|
FontChooserPanel(Font font)
Standard constructor - builds a FontChooserPanel initialised with the
specified font.
|
Method Summary | |
---|---|
Font | getSelectedFont()
Returns a Font object representing the selection in the panel.
|
String | getSelectedName()
Returns the selected name.
|
int | getSelectedSize()
Returns the selected size.
|
int | getSelectedStyle()
Returns the selected style.
|
void | setSelectedFont(Font font)
Initializes the contents of the dialog from the given font
object.
|
Parameters: font the initial font to display.
Returns: the font.
Returns: the name.
Returns: the size.
Returns: the style.
Parameters: font the font from which to read the properties.