Class FontChooserPanel

    • Field Detail

      • m_FontChooser

        protected FontChooser m_FontChooser
        the dialog to use.
    • Constructor Detail

      • FontChooserPanel

        public FontChooserPanel()
        Initializes the panel with the default sans font.
      • FontChooserPanel

        public FontChooserPanel​(Font font)
        Initializes the panel with the given font.
        Parameters:
        font - the color to use
    • Method Detail

      • getSelectionColumns

        protected int getSelectionColumns()
        Returns the number of columns in the selection text field.
        Overrides:
        getSelectionColumns in class AbstractChooserPanel<Font>
        Returns:
        the number of columns
      • doChoose

        protected Font doChoose()
        Performs the actual choosing of an object.
        Specified by:
        doChoose in class AbstractChooserPanel<Font>
        Returns:
        the chosen object or null if none chosen
      • toString

        protected String toString​(Font value)
        Converts the value into its string representation.
        Specified by:
        toString in class AbstractChooserPanel<Font>
        Parameters:
        value - the value to convert
        Returns:
        the generated string
      • fromString

        protected Font fromString​(String value)
        Converts the string representation into its object representation.
        Specified by:
        fromString in class AbstractChooserPanel<Font>
        Parameters:
        value - the string value to convert
        Returns:
        the generated object