Class PartialFontChooserDialog

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
org.jfree.ui.StandardDialog
org.gvsig.app.gui.utils.PartialFontChooserDialog
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class PartialFontChooserDialog extends org.jfree.ui.StandardDialog
A dialog for choosing a font from the available system fonts. Allows hiding size and/or style (bold, etc)
Author:
jldominguez
See Also:
  • Constructor Details

    • PartialFontChooserDialog

      public PartialFontChooserDialog(Dialog owner, String title, boolean modal, Font font, boolean style, boolean size)
      Standard constructor - builds a font chooser dialog owned by another dialog.
      Parameters:
      owner - the dialog that 'owns' this dialog.
      title - the title for the dialog.
      modal - a boolean that indicates whether or not the dialog is modal.
      font - the initial font displayed.
    • PartialFontChooserDialog

      public PartialFontChooserDialog(Frame owner, String title, boolean modal, Font font, boolean style, boolean size)
      Standard constructor - builds a font chooser dialog owned by a frame.
      Parameters:
      owner - the frame that 'owns' this dialog.
      title - the title for the dialog.
      modal - a boolean that indicates whether or not the dialog is modal.
      font - the initial font displayed.
  • Method Details

    • getSelectedFont

      public Font getSelectedFont()
      Returns the selected font.
      Returns:
      the font.