public class EventTreeMenu
extends java.lang.Object
Constructor and Description |
---|
EventTreeMenu(EventTreePanel eventTreePanel,
EventInfoPanel eventInfoPanel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addEventFileExtension(java.lang.String extension)
Add a file extension for viewing evio format files in file chooser.
|
void |
addEvioListener(org.jlab.coda.jevio.IEvioListener listener)
Add an Evio listener.
|
javax.swing.JMenu |
createDictionaryMenu()
Create the view menu.
|
javax.swing.JMenu |
createEventMenu()
Create the event menu.
|
javax.swing.JMenu |
createFileMenu()
Create the file menu.
|
javax.swing.JMenu |
createFilterMenu()
Create the filter menu.
|
javax.swing.JMenu |
createViewMenu()
Create the view menu.
|
void |
exportToXML()
Select a file and then write into it the current event file in xml format.
|
cMsgHandler |
getCmsgHandler() |
javax.swing.JMenu |
getEventSourceConfig() |
EventTreePanel |
getEventTreePanel()
Get the main event display panel.
|
org.jlab.coda.jevio.EvioReader |
getEvioFileReader()
Get the EvioReader object so the file/buffer can be read.
|
void |
manualOpenEventFile(java.io.File file)
Convenience method to open a file programmatically.
|
boolean |
openDictionary()
Select and open a dictionary.
|
void |
openDictionaryFile(java.io.File file)
Select and open a dictionary.
|
org.jlab.coda.jevio.EvioReader |
openEventFile()
Select and open an event file.
|
org.jlab.coda.jevio.EvioReader |
openEventFile(java.io.File file)
Open an event file using a given file.
|
void |
setCmsgHandler(cMsgHandler cmsgHandler) |
void |
setDefaultDataDir(java.lang.String defaultDataDir)
Set the default directory in which to look for event files.
|
void |
setEventFileExtensions(java.lang.String[] extensions)
Set all file extensions for viewing evio format files in file chooser.
|
java.io.File |
viewFileBytes()
Select a file in order to view its bytes.
|
public EventTreeMenu(EventTreePanel eventTreePanel, EventInfoPanel eventInfoPanel)
eventTreePanel
- panel that holds the tree and all associated the widgets.eventInfoPanel
- panel that displays evio event info - event source, dictionary source.public EventTreePanel getEventTreePanel()
public javax.swing.JMenu getEventSourceConfig()
public cMsgHandler getCmsgHandler()
public void setCmsgHandler(cMsgHandler cmsgHandler)
public javax.swing.JMenu createEventMenu()
public javax.swing.JMenu createViewMenu()
public javax.swing.JMenu createDictionaryMenu()
public javax.swing.JMenu createFilterMenu()
public javax.swing.JMenu createFileMenu()
public void manualOpenEventFile(java.io.File file)
file
- the file to openpublic void exportToXML()
public void addEventFileExtension(java.lang.String extension)
extension
- file extension to addpublic void setEventFileExtensions(java.lang.String[] extensions)
extensions
- all file extensionspublic org.jlab.coda.jevio.EvioReader openEventFile()
null
public java.io.File viewFileBytes()
public org.jlab.coda.jevio.EvioReader openEventFile(java.io.File file)
file
- the file to use, i.e., an event filenull
public org.jlab.coda.jevio.EvioReader getEvioFileReader()
public void setDefaultDataDir(java.lang.String defaultDataDir)
defaultDataDir
- default directory in which to look for event filespublic boolean openDictionary()
true
if file was opened and dictionary loaded.public void openDictionaryFile(java.io.File file)
file
- file to openpublic void addEvioListener(org.jlab.coda.jevio.IEvioListener listener)
listener
- The Evio listener to add.