|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
adams.gui.core.BasePanel
adams.gui.visualization.instance.InstanceExplorer
public class InstanceExplorer
A panel for exploring Instances visually.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
FILENAME
the name of the props file. |
protected HistogramFactory.SetupDialog |
m_HistogramSetup
the dialog for the histogram setup. |
protected weka.gui.sql.SqlViewerDialog |
m_LoadFromDatabaseDialog
the SQL viewer dialog. |
protected LoadDatasetDialog |
m_LoadFromDiskDialog
the dialog for loading datasets. |
protected JMenuBar |
m_MenuBar
the menu bar, if used. |
protected JMenuItem |
m_MenuItemClearData
the clear data menu item. |
protected JMenu |
m_MenuItemLoadRecent
the "load recent" submenu. |
protected JMenuItem |
m_MenuItemViewZoomOverview
the toggle zoom overview menu item. |
protected JMenu |
m_MenuView
the menu item for view related stuff. |
protected InstancePanel |
m_PanelInstance
the panel for displaying. |
protected static Properties |
m_Properties
the properties. |
protected RecentFilesHandler |
m_RecentFilesHandler
the recent files handler. |
protected ReportFactory.Panel |
m_Reports
the reports. |
protected SearchPanel |
m_SearchPanel
for searching the fields in the reports. |
protected BaseStatusBar |
m_StatusBar
the status bar. |
protected BaseTabbedPane |
m_TabbedPane
the tabbed pane for the data to display. |
static String |
SESSION_FILE
the file to store the recent files in. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
InstanceExplorer()
|
|
| Method Summary | |
|---|---|
void |
cleanUp()
Cleans up data structures, frees up memory. |
void |
clearData()
Removes all the data. |
void |
close()
closes the dialog/frame. |
void |
customizePopupMenu(MouseEvent e,
JPopupMenu menu)
Optional customizing of the menu that is about to be popped up. |
void |
dataChanged(DataChangeEvent e)
Gets called if the data of the instance panel has changed. |
JPopupMenu |
getContainerListPopupMenu(ContainerTable<InstanceContainerManager,InstanceContainer> table,
int row)
Returns a popup menu for the table of the instance list. |
InstanceContainerManager |
getContainerManager()
Returns the current container manager. |
InstanceContainerList |
getInstanceContainerList()
Returns the panel listing the instances. |
InstancePanel |
getInstancePanel()
Returns the panel for painting the instances. |
JMenuBar |
getMenuBar()
Creates a menu bar (singleton per panel object). |
static Properties |
getProperties()
Returns the properties that define the editor. |
Class[] |
getSendToClasses()
Returns the classes that the supporter generates. |
Object |
getSendToItem(Class[] cls)
Returns the object to send. |
JPanel |
getSidePanel()
Returns the side panel. |
boolean |
hasSendToItem(Class[] cls)
Checks whether something to send is available. |
protected void |
initGUI()
Initializes the widgets. |
protected void |
initialize()
Initializes the members. |
boolean |
isSidePanelVisible()
Returns whether the side panel is visible or not. |
boolean |
isZoomOverviewPanelVisible()
Returns whether the zoom overview panel is visible or not. |
protected void |
loadData(weka.core.Instances dataset,
Vector<InstanceContainer> data)
Loads the given data into the container manager. |
void |
loadDataFromDatabase()
pops up SQL Viewer for SQL statement. |
void |
loadDataFromDisk()
pops up file dialog for loading dataset form disk. |
void |
loadDataFromDisk(File file)
pops up file dialog for loading dataset form disk. |
protected InstanceReportFactory.Panel |
newReportPanel()
Creates a new tabbed pane for the reports. |
void |
setContainerManager(InstanceContainerManager value)
Sets the manager for handling the containers. |
void |
setSidePanelVisible(boolean visible)
Whether to display the side panel or not. |
void |
setZoomOverviewPanelVisible(boolean value)
Sets the zoom overview panel visible or not. |
protected void |
showHistogram(Vector<InstanceContainer> data)
Displays the histograms for the given instances. |
protected void |
showNotes(Vector<InstanceContainer> data)
Displays the notes for the given chromatograms. |
protected void |
showStatistics(Vector<InformativeStatistic> stats)
Displays a dialog with the given statistics. |
void |
showStatus(String msg)
Displays a message. |
protected void |
updateMenu()
updates the enabled state of the menu items. |
| Methods inherited from class adams.gui.core.BasePanel |
|---|
afterHide, afterShow, beforeHide, beforeShow, closeParent, finishInit, getParentChild, getParentDialog, getParentFrame, getParentInternalFrame, getParentTitle, main, setParentTitle, setVisible |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String FILENAME
public static final String SESSION_FILE
protected static Properties m_Properties
protected InstancePanel m_PanelInstance
protected BaseStatusBar m_StatusBar
protected JMenuBar m_MenuBar
protected JMenu m_MenuItemLoadRecent
protected JMenu m_MenuView
protected JMenuItem m_MenuItemViewZoomOverview
protected JMenuItem m_MenuItemClearData
protected BaseTabbedPane m_TabbedPane
protected ReportFactory.Panel m_Reports
protected SearchPanel m_SearchPanel
protected LoadDatasetDialog m_LoadFromDiskDialog
protected weka.gui.sql.SqlViewerDialog m_LoadFromDatabaseDialog
protected RecentFilesHandler m_RecentFilesHandler
protected HistogramFactory.SetupDialog m_HistogramSetup
| Constructor Detail |
|---|
public InstanceExplorer()
| Method Detail |
|---|
protected void initialize()
initialize in class BasePanelprotected void initGUI()
initGUI in class BasePanelpublic InstancePanel getInstancePanel()
public InstanceContainerList getInstanceContainerList()
public void showStatus(String msg)
showStatus in interface StatusMessageHandlermsg - the message to displayprotected InstanceReportFactory.Panel newReportPanel()
public void dataChanged(DataChangeEvent e)
dataChanged in interface DataChangeListenere - the event that the instance panel sentpublic InstanceContainerManager getContainerManager()
getContainerManager in interface ContainerListManager<InstanceContainerManager>public void setContainerManager(InstanceContainerManager value)
setContainerManager in interface ContainerListManager<InstanceContainerManager>value - the managerprotected void updateMenu()
public JMenuBar getMenuBar()
getMenuBar in interface MenuBarProviderpublic void clearData()
public void loadDataFromDatabase()
public void loadDataFromDisk()
public void loadDataFromDisk(File file)
file - an optional file, use null to ignore
protected void loadData(weka.core.Instances dataset,
Vector<InstanceContainer> data)
dataset - the datasetdata - the data to add to the managerpublic void close()
public void setSidePanelVisible(boolean visible)
visible - if true, then the side panel will be displayedpublic boolean isSidePanelVisible()
public JPanel getSidePanel()
public void setZoomOverviewPanelVisible(boolean value)
value - if true then the panel is visiblepublic boolean isZoomOverviewPanelVisible()
public void customizePopupMenu(MouseEvent e,
JPopupMenu menu)
customizePopupMenu in interface PopupMenuCustomizere - the mous eventmenu - the menu to customize
public JPopupMenu getContainerListPopupMenu(ContainerTable<InstanceContainerManager,InstanceContainer> table,
int row)
getContainerListPopupMenu in interface ContainerListPopupMenuSupplier<InstanceContainerManager,InstanceContainer>table - the affected tablerow - the row the mouse is currently over
protected void showNotes(Vector<InstanceContainer> data)
data - the chromatograms to displayprotected void showStatistics(Vector<InformativeStatistic> stats)
stats - the statistics to displayprotected void showHistogram(Vector<InstanceContainer> data)
data - the instances to displaypublic Class[] getSendToClasses()
getSendToClasses in interface SendToActionSupporterpublic boolean hasSendToItem(Class[] cls)
hasSendToItem in interface SendToActionSupportercls - the classes to retrieve an item for
public Object getSendToItem(Class[] cls)
getSendToItem in interface SendToActionSupportercls - the classes to retrieve the item for
public void cleanUp()
cleanUp in interface CleanUpHandlerpublic static Properties getProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||