Package org.jfree.ui

Class FontChooserPanel

    • Field Detail

      • SIZES

        public static final String[] SIZES
        The font sizes that can be selected.
      • localizationResources

        protected static ResourceBundle localizationResources
        The resourceBundle for the localization.
    • Constructor Detail

      • FontChooserPanel

        public FontChooserPanel​(Font font)
        Standard constructor - builds a FontChooserPanel initialised with the specified font.
        Parameters:
        font - the initial font to display.
    • Method Detail

      • getSelectedFont

        public Font getSelectedFont()
        Returns a Font object representing the selection in the panel.
        Returns:
        the font.
      • getSelectedName

        public String getSelectedName()
        Returns the selected name.
        Returns:
        the name.
      • getSelectedStyle

        public int getSelectedStyle()
        Returns the selected style.
        Returns:
        the style.
      • getSelectedSize

        public int getSelectedSize()
        Returns the selected size.
        Returns:
        the size.
      • setSelectedFont

        public void setSelectedFont​(Font font)
        Initializes the contents of the dialog from the given font object.
        Parameters:
        font - the font from which to read the properties.