Class PresentManager


  • public class PresentManager
    extends Object
    The class to manage the presentation
    Author:
    Zhijie Lan

    create date: 2020/11/25

    • Field Detail

      • isPresenting

        public static boolean isPresenting
        whether is in presenting
      • presentZoomFactor

        public static double presentZoomFactor
        the zoom factor to zoom in the canvas to fit the full screen
    • Constructor Detail

      • PresentManager

        public PresentManager()
    • Method Detail

      • startPresent

        public static void startPresent​(boolean playFromBeginning)
        generate a presentation window to present switch state to beginning if necessary
        Parameters:
        playFromBeginning - whether play from the first state
      • endPresent

        public static void endPresent​(PresentationWindow presentWindow)
        when present is over, kill the present canvas, move back all text components, etc.
        Parameters:
        presentWindow - the presenting dialog
      • addTextComponentToPresenter

        public static void addTextComponentToPresenter​(CenterCanvas presentCanvas)
        when start presenting, add all text areas components to the present canvas, and set the text areas being not editable and focusable
        Parameters:
        presentCanvas - the present canvas
      • resetTextComponentToCanvas

        public static void resetTextComponentToCanvas()
        when finishing presenting, reset all text areas back to the edit canvas
      • setPresentZoomFactor

        public static void setPresentZoomFactor()