Package com.j3d.gen.guide
package com.j3d.gen.guide
Guide
Guide
The Guide or otherwise tutorial makes full use of EventEmitter and EventListeners. Every single interaction other than starting it uses this.
Say we have the following "Guide Steps" we want to show to the user:
WelcomeStep, SceneStep, SelectionStep
-
GuideManagerinstantiates a newGuideFlowwhich callsGuideFlow.start()which showsWelcomeStep(the firstGuideInfoin the start of list) -
WelcomeStepdisplays its stuff over the entire engine usingGuidePanelAdapter -
The user does some specific event that
WelcomeSteplistens for -
WelcomeStepfires an event toGuideFlow, specifically beingGuideInfoClosingPayload -
GuideFlowmakes sure thatWelcomeStepcan indeed close. If so, it calls itsGuideInfo.breakdown()and removes it from the top of the list. -
GuideFlowcallsGuideFlow.start()once again and repeats but nowSceneStepis the head of the list
Classes
-
GuidePanelAdapter, a simple class which just adds helper methods on top of theGuidePanelwhich is nothing more than just a JPanel over the entire frame. -
GuideInfo, a singular step within the guide which only needs to know the engine event it wants to listen to that the user has to perform in order for this specific step to close itself and for the next one to proceed. It can build itself and stuff usingGuidePanelAdapter -
GuideManager, the orchestrator that starts theGuideFlowand holds the createdGuidePanelAdapter. -
GuideFlow, the flowwwwerr that manages the sequence and progression ofGuideInfosteps. -
GuideInfoClosingPayload, An event payload indicating that aGuideInfostep is requesting to close. -
Anchor, a utility class providing constants for positioning UI components within the guide panel components.
- Author:
- Lehlogonolo Poole
-
Classes