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.Object
Dynamic menu.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JMenuItem
exportItem
The "Export Image" button, to save the imageprivate javax.swing.JMenu
filemenu
File menu.private javax.swing.JMenuBar
menubar
Menubar componentprivate javax.swing.JMenuItem
overviewItem
The "Overview" button, which goes to the overview view.private javax.swing.JMenuItem
quitItem
The "Quit" button, to close the application.protected boolean
simplify
Simplify the menu.private javax.swing.JMenu
visualizersMenu
The "Visualizers" button, to enable/disable visualizersprivate javax.swing.JMenuItem
writeItem
The "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 void
enableExport(boolean b)
Enable / disable the export menu.void
enableOverview(boolean b)
Enable / disable the overview menu.void
enableWriter(boolean b)
Enable / disable the writer menu.javax.swing.JMenuBar
getMenuBar()
Get the menu bar component.private javax.swing.JMenuItem
makeMenuItemForVisualizer(java.lang.Object r)
private void
recursiveBuildMenu(java.util.Collection<javax.swing.JMenuItem> items, java.lang.Object r, Hierarchy<java.lang.Object> vistree, Projection proj)
protected void
updateVisualizerMenus()
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
-
-