Class MetisViewerWindow
java.lang.Object
io.github.tonywasher.joceanus.metis.viewer.MetisViewerWindow
- All Implemented Interfaces:
OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>
public class MetisViewerWindow
extends Object
implements OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>
Viewer Manager class, responsible for displaying the debug view.
-
Constructor Summary
ConstructorsConstructorDescriptionMetisViewerWindow(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.protected voidhandleExplicitPage(int pIndex) Handle the explicit page.protected voidhandleMode(MetisViewerMode pMode) Handle the mode.protected voidHandle the next page.protected voidHandle the parent page.protected voidHandle the previous page.protected voidHandle the split tree action event.voidHide the dialog.voidshow the dialog.protected voidTerminate tree.
-
Constructor Details
-
MetisViewerWindow
public MetisViewerWindow(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()show the dialog. -
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
protected void handleParentPage()Handle the parent page. -
handleNextPage
protected void handleNextPage()Handle the next page. -
handlePreviousPage
protected void handlePreviousPage()Handle the previous page. -
handleExplicitPage
protected void handleExplicitPage(int pIndex) Handle the explicit page.- Parameters:
pIndex- the index of the page
-
handleMode
Handle the mode.- Parameters:
pMode- the new mode
-