Class PdfFontChooser

    • Field Detail

      • m_ButtonOK

        protected BaseButton m_ButtonOK
        the OK button.
      • m_ButtonCancel

        protected BaseButton m_ButtonCancel
        the Cancel button.
      • m_Current

        protected PdfFont m_Current
        The font the user has chosen.
    • Constructor Detail

      • PdfFontChooser

        public PdfFontChooser​(Frame owner)
        Construct a FontChooser.
        Parameters:
        owner - the parent frame
      • PdfFontChooser

        public PdfFontChooser​(Dialog owner)
        Construct a FontChooser.
        Parameters:
        owner - the parent dialog
    • Method Detail

      • finishInit

        protected void finishInit()
        finishes the initialization, by setting size/location.
        Overrides:
        finishInit in class BaseDialog
      • setCurrent

        public void setCurrent​(PdfFont value)
        Sets the selected font. If null is provided, the default font/size will be used.
        Parameters:
        value - the font, can be null
      • getCurrent

        public PdfFont getCurrent()
        Retrieve the selected font, or null.
        Returns:
        the selected font
      • main

        public static void main​(String[] args)
        Simple main program to start it running.
        Parameters:
        args - ignored