public class EventTreePanel
extends javax.swing.JPanel
implements javax.swing.event.TreeSelectionListener
The text in a tree associated with a particular evio structure is determined by evio's BaseStructure.toString() method. So if you want to change it you must modify this evio code. Note it is the BaseStructure.getDescription() method that returns the dictionary contents for that structure.
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
(package private) int |
horizontalDividerPosition
Initial width of tree widget when split goes from top to bottom (HORIZONTAL_SPLIT)
|
(package private) java.util.LinkedList<org.jlab.coda.eventViewer.EventTreePanel.SelectionInfo> |
structureSelection
Info about the currently selected evio structure being viewed.
|
(package private) int |
verticalDividerPosition
Initial height of tree widget when split goes from left to right (VERTICAL_SPLIT)
|
(package private) boolean |
viewData
View data or view dictionary?
|
(package private) boolean |
viewText
Are we currently viewing numerical data or Composite data in XML (text) ?
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
EventTreePanel()
Constructor for a simple tree viewer for evio files.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addComponents()
Add the components to this panel.
|
void |
expandAll()
Expand all nodes.
|
org.jlab.coda.jevio.EvioEvent |
getEvent()
Get the currently displayed event.
|
HeaderPanel |
getHeaderPanel()
Get the panel displaying header information.
|
(package private) javax.swing.tree.TreePath |
getNewSelectionPath()
Get the current TreePath, if any,
that will duplicate the previous selection.
|
(package private) int |
getOrientation()
Get the orientation of the separating barrier between tree and data widgets.
|
java.util.LinkedList<org.jlab.coda.eventViewer.EventTreePanel.SelectionInfo> |
getStructureSelection()
Get the selection path information list.
|
void |
refreshDescription()
Refresh description (dictionary) display.
|
void |
refreshDisplay()
Refresh textArea display.
|
(package private) void |
repaintTreeAfterNewDictionary()
This method repaints the tree after a new dictionary is loaded.
|
void |
setDataCompressionType(org.jlab.coda.hipo.CompressionType type)
Set the compression type of data being viewed.
|
(package private) void |
setDictionaryText(java.lang.String xml)
Set the display to the dictionary currently in use.
|
void |
setEvent(org.jlab.coda.jevio.EvioEvent event)
Set the currently displayed event.
|
void |
setEvioVersion(int version)
Set the evio version of data being viewed.
|
void |
setIntsInHex(boolean intsInHex)
Set wether integer data is displayed in hexidecimal or decimal.
|
(package private) void |
setOrientation(int orient)
Set the orientation of the separating barrier between tree and data widgets.
|
(package private) void |
setTableData(java.lang.String[] data)
Set table's data.
|
(package private) void |
setTextData(java.lang.String[] data)
Set table's data.
|
(package private) void |
switchDataAndDictionary()
Switch the gui's view between data and any dictionary currently in use.
|
(package private) void |
switchDataAndText(boolean toText)
Switch the gui's data view between numerical data and text data.
|
void |
valueChanged(javax.swing.event.TreeSelectionEvent treeSelectionEvent)
Selection event on our tree.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
int verticalDividerPosition
int horizontalDividerPosition
boolean viewData
boolean viewText
java.util.LinkedList<org.jlab.coda.eventViewer.EventTreePanel.SelectionInfo> structureSelection
public EventTreePanel()
public void setEvioVersion(int version)
version
- evio version of data being viewed.public void setDataCompressionType(org.jlab.coda.hipo.CompressionType type)
type
- compression type of data being viewed.public java.util.LinkedList<org.jlab.coda.eventViewer.EventTreePanel.SelectionInfo> getStructureSelection()
public void setIntsInHex(boolean intsInHex)
intsInHex
- if true
then display as hex, else deciamlpublic HeaderPanel getHeaderPanel()
public void refreshDisplay()
public void refreshDescription()
void setOrientation(int orient)
orient
- orientation to set the barrier toint getOrientation()
void switchDataAndDictionary()
void switchDataAndText(boolean toText)
toText
- switch to viewing Composite data textvoid setDictionaryText(java.lang.String xml)
xml
- string of xml representing the dictionary to be displayedvoid setTableData(java.lang.String[] data)
data
- data to place in table.void setTextData(java.lang.String[] data)
data
- data to place in table.protected void addComponents()
public void valueChanged(javax.swing.event.TreeSelectionEvent treeSelectionEvent)
valueChanged
in interface javax.swing.event.TreeSelectionListener
treeSelectionEvent
- the causal event.void repaintTreeAfterNewDictionary()
javax.swing.tree.TreePath getNewSelectionPath()
public org.jlab.coda.jevio.EvioEvent getEvent()
public void setEvent(org.jlab.coda.jevio.EvioEvent event)
event
- the currently displayed event.public void expandAll()