Package prezoom.controller
Class PresentManager
- java.lang.Object
-
- prezoom.controller.PresentManager
-
public class PresentManager extends Object
The class to manage the presentation- Author:
- Zhijie Lan
create date: 2020/11/25
-
-
Field Summary
Fields Modifier and Type Field Description static booleanisPresentingwhether is in presentingstatic doublepresentZoomFactorthe zoom factor to zoom in the canvas to fit the full screen
-
Constructor Summary
Constructors Constructor Description PresentManager()
-
Method Summary
Modifier and Type Method Description static voidaddTextComponentToPresenter(CenterCanvas presentCanvas)when start presenting, add all text areas components to the present canvas, and set the text areas being not editable and focusablestatic voidendPresent(PresentationWindow presentWindow)when present is over, kill the present canvas, move back all text components, etc.static voidresetTextComponentToCanvas()when finishing presenting, reset all text areas back to the edit canvasstatic voidsetPresentZoomFactor()static voidstartPresent(boolean playFromBeginning)generate a presentation window to present switch state to beginning if necessary
-
-
-
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()
-
-