Class MetisViewerWindowImpl
java.lang.Object
io.github.tonywasher.joceanus.metis.viewer.MetisViewerWindowImpl
- All Implemented Interfaces:
MetisViewerWindow,OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>
Viewer Manager class, responsible for displaying the debug view.
-
Constructor Summary
ConstructorsConstructorDescriptionMetisViewerWindowImpl(TethysUIFactory<?> pFactory, MetisViewerManager pDataManager) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidCloseWindow on parent termination.protected voidfireEvent(TethysUIEvent pEventId, Object pValue) Fire event.Obtain registration object for listeners.Obtain the HTML Manager.Obtain the SplitTree Manager.Obtain the Tree Manager.voidhandleExplicitPage(int pIndex) Handle the explicit page.voidhandleMode(MetisViewerMode pMode) Handle the mode.voidHandle the next page.voidHandle the parent page.voidHandle the previous page.protected voidHandle the split tree action event.voidHide the dialog.voidshow the dialog.protected voidTerminate tree.
-
Constructor Details
-
MetisViewerWindowImpl
public MetisViewerWindowImpl(TethysUIFactory<?> pFactory, MetisViewerManager pDataManager) throws OceanusException Constructor.- Parameters:
pFactory- the GUI factorypDataManager- the viewer data manager- Throws:
OceanusException- on error
-
-
Method Details
-
getEventRegistrar
Description copied from interface:OceanusEventRegistrar.OceanusEventProviderObtain registration object for listeners.- Specified by:
getEventRegistrarin interfaceOceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>- Returns:
- the registrar
-
getSplitTreeManager
Obtain the SplitTree Manager.- Returns:
- the tree manager
-
getTreeManager
Obtain the Tree Manager.- Returns:
- the tree manager
-
getHTMLManager
Obtain the HTML Manager.- Returns:
- the HTML manager
-
terminateTree
protected void terminateTree()Terminate tree. -
fireEvent
Fire event.- Parameters:
pEventId- the eventIdpValue- the relevant value
-
showDialog
public void showDialog()Description copied from interface:MetisViewerWindowshow the dialog.- Specified by:
showDialogin interfaceMetisViewerWindow
-
hideDialog
public void hideDialog()Hide the dialog. -
closeWindow
public void closeWindow()CloseWindow on parent termination. -
handleSplitTreeAction
Handle the split tree action event.- Parameters:
pEvent- the event
-
handleParentPage
public void handleParentPage()Description copied from interface:MetisViewerWindowHandle the parent page.- Specified by:
handleParentPagein interfaceMetisViewerWindow
-
handleNextPage
public void handleNextPage()Description copied from interface:MetisViewerWindowHandle the next page.- Specified by:
handleNextPagein interfaceMetisViewerWindow
-
handlePreviousPage
public void handlePreviousPage()Description copied from interface:MetisViewerWindowHandle the previous page.- Specified by:
handlePreviousPagein interfaceMetisViewerWindow
-
handleExplicitPage
public void handleExplicitPage(int pIndex) Description copied from interface:MetisViewerWindowHandle the explicit page.- Specified by:
handleExplicitPagein interfaceMetisViewerWindow- Parameters:
pIndex- the index of the page
-
handleMode
Description copied from interface:MetisViewerWindowHandle the mode.- Specified by:
handleModein interfaceMetisViewerWindow- Parameters:
pMode- the new mode
-