Package elki.visualization.gui
Class ResultWindow.DynamicMenu
- java.lang.Object
-
- elki.visualization.gui.ResultWindow.DynamicMenu
-
- Enclosing class:
- ResultWindow
public class ResultWindow.DynamicMenu extends java.lang.ObjectDynamic menu.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JMenuItemexportItemThe "Export Image" button, to save the imageprivate javax.swing.JMenufilemenuFile menu.private javax.swing.JMenuBarmenubarMenubar componentprivate javax.swing.JMenuItemoverviewItemThe "Overview" button, which goes to the overview view.private javax.swing.JMenuItemquitItemThe "Quit" button, to close the application.protected booleansimplifySimplify the menu.private javax.swing.JMenuvisualizersMenuThe "Visualizers" button, to enable/disable visualizersprivate javax.swing.JMenuItemwriteItemThe "Write to CSV" button, to invoce the text writer.
-
Constructor Summary
Constructors Constructor Description DynamicMenu()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenableExport(boolean b)Enable / disable the export menu.voidenableOverview(boolean b)Enable / disable the overview menu.voidenableWriter(boolean b)Enable / disable the writer menu.javax.swing.JMenuBargetMenuBar()Get the menu bar component.private javax.swing.JMenuItemmakeMenuItemForVisualizer(java.lang.Object r)private voidrecursiveBuildMenu(java.util.Collection<javax.swing.JMenuItem> items, java.lang.Object r, Hierarchy<java.lang.Object> vistree, Projection proj)protected voidupdateVisualizerMenus()Update the visualizer menus.
-
-
-
Field Detail
-
menubar
private javax.swing.JMenuBar menubar
Menubar component
-
filemenu
private javax.swing.JMenu filemenu
File menu.
-
overviewItem
private javax.swing.JMenuItem overviewItem
The "Overview" button, which goes to the overview view.
-
quitItem
private javax.swing.JMenuItem quitItem
The "Quit" button, to close the application.
-
exportItem
private javax.swing.JMenuItem exportItem
The "Export Image" button, to save the image
-
writeItem
private javax.swing.JMenuItem writeItem
The "Write to CSV" button, to invoce the text writer.
-
visualizersMenu
private javax.swing.JMenu visualizersMenu
The "Visualizers" button, to enable/disable visualizers
-
simplify
protected boolean simplify
Simplify the menu.
-
-
Method Detail
-
updateVisualizerMenus
protected void updateVisualizerMenus()
Update the visualizer menus.
-
recursiveBuildMenu
private void recursiveBuildMenu(java.util.Collection<javax.swing.JMenuItem> items, java.lang.Object r, Hierarchy<java.lang.Object> vistree, Projection proj)
-
makeMenuItemForVisualizer
private javax.swing.JMenuItem makeMenuItemForVisualizer(java.lang.Object r)
-
getMenuBar
public javax.swing.JMenuBar getMenuBar()
Get the menu bar component.- Returns:
- Menu bar component
-
enableOverview
public void enableOverview(boolean b)
Enable / disable the overview menu.- Parameters:
b- Flag
-
enableExport
public void enableExport(boolean b)
Enable / disable the export menu.- Parameters:
b- Flag
-
enableWriter
public void enableWriter(boolean b)
Enable / disable the writer menu.- Parameters:
b- Flag
-
-