byucc.jhdl.apps.Viewers.Waves
Class BrowserWaves

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bybyucc.jhdl.apps.Viewers.Waves.BrowserWavesPanel
                      extended bybyucc.jhdl.apps.Viewers.Waves.BrowserWaves
All Implemented Interfaces:
javax.accessibility.Accessible, byucc.jhdl.apps.Viewers.Waves.BrowserDataView, BrowserWavesListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, Tool

public class BrowserWaves
extends BrowserWavesPanel
implements Tool, byucc.jhdl.apps.Viewers.Waves.BrowserDataView, BrowserWavesListener

BrowserWaves.java Created: ??

Version:
1 This class extends JPanel and is in charge of the organization of the Waves Viewer GUI. This GUI inclused canvases for Wire Names, Values and the Waveform. This class contains the scroll bars to keep each of these canvases together. This class also handles comunication with the GenericFrame if ViewManager is in windows false mode. The data is communicated to this GUI from the WatchInterface.
Author:
??
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class byucc.jhdl.apps.Viewers.Waves.BrowserWavesPanel
_wavesListeners, dPanel, dScroll, HEIGHT, myTableData, PAD, selectedRow, sNameBar
 
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, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
BrowserWaves(WatchInterface wInterface, boolean sName)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addKeyListener(java.awt.event.KeyListener kl)
           
 void addMenuItems(javax.swing.JMenu menu, java.lang.String menuTitle)
           
 int checkTableWidth(int w)
           
 void dataBarAdjusted(int newValue)
          This method will be called when the data scroll bar is adjusted.
 void disposeWindow()
           
 javax.swing.JMenu getMenu()
           
 javax.swing.JMenuBar getMenuBar()
           
 void reset()
           
 void setCursor(java.awt.Cursor newCursor)
           
 void setFormat(java.lang.String newFormat)
           
 void setFrame(GenericFrame gFrame)
           
 void setPageSize(int newSize)
           
 void setScrollIndex(int newIndex)
           
 void setScrollMax(int newMax)
           
 void setTableWidth(int tw)
           
 void updateDataRow(int row)
           
 void updateDataScroll(int value)
           
 void updateMarker(int loc)
           
 void updateNameRow(int row)
           
 void updateNameScroll(int value)
           
 void updateSelectedFormat(WavesWire cWire)
           
protected  void updateSelection(int newSelection)
           
 void updateValues(int cycle)
           
 void updateWaves(TableData newData, int viewStartCycle, int TableWidth)
           
 void updateWaves(TableData newData, int viewStartCycle, int TableWidth, boolean nameChange)
          This method is used to update the names and values on wires.
 
Methods inherited from class byucc.jhdl.apps.Viewers.Waves.BrowserWavesPanel
addWavesListener, getBrowserNameCanvas, getCurrValue, removeWavesListener, scrollBarAdjust, syncScroll, updateValueCanvas
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface byucc.jhdl.apps.Viewers.Tool
getName
 

Constructor Detail

BrowserWaves

public BrowserWaves(WatchInterface wInterface,
                    boolean sName)
Method Detail

setFrame

public void setFrame(GenericFrame gFrame)
Specified by:
setFrame in interface Tool

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface Tool

getMenuBar

public javax.swing.JMenuBar getMenuBar()
Specified by:
getMenuBar in interface Tool

getMenu

public javax.swing.JMenu getMenu()
Specified by:
getMenu in interface Tool

addMenuItems

public void addMenuItems(javax.swing.JMenu menu,
                         java.lang.String menuTitle)
Specified by:
addMenuItems in interface Tool

updateSelectedFormat

public void updateSelectedFormat(WavesWire cWire)
Specified by:
updateSelectedFormat in interface byucc.jhdl.apps.Viewers.Waves.BrowserDataView

updateValues

public void updateValues(int cycle)

setFormat

public void setFormat(java.lang.String newFormat)
Specified by:
setFormat in interface byucc.jhdl.apps.Viewers.Waves.BrowserDataView

updateDataScroll

public void updateDataScroll(int value)
Specified by:
updateDataScroll in interface byucc.jhdl.apps.Viewers.Waves.BrowserDataView

updateNameScroll

public void updateNameScroll(int value)
Specified by:
updateNameScroll in interface byucc.jhdl.apps.Viewers.Waves.BrowserDataView

updateDataRow

public void updateDataRow(int row)
Specified by:
updateDataRow in interface byucc.jhdl.apps.Viewers.Waves.BrowserDataView

updateNameRow

public void updateNameRow(int row)
Specified by:
updateNameRow in interface byucc.jhdl.apps.Viewers.Waves.BrowserDataView

setScrollIndex

public void setScrollIndex(int newIndex)
Specified by:
setScrollIndex in interface byucc.jhdl.apps.Viewers.Waves.BrowserDataView
Overrides:
setScrollIndex in class BrowserWavesPanel

setScrollMax

public void setScrollMax(int newMax)
Specified by:
setScrollMax in interface byucc.jhdl.apps.Viewers.Waves.BrowserDataView
Overrides:
setScrollMax in class BrowserWavesPanel

setPageSize

public void setPageSize(int newSize)
Specified by:
setPageSize in interface byucc.jhdl.apps.Viewers.Waves.BrowserDataView
Overrides:
setPageSize in class BrowserWavesPanel

disposeWindow

public void disposeWindow()
Specified by:
disposeWindow in interface byucc.jhdl.apps.Viewers.Waves.BrowserDataView
Overrides:
disposeWindow in class BrowserWavesPanel

updateWaves

public void updateWaves(TableData newData,
                        int viewStartCycle,
                        int TableWidth)
Specified by:
updateWaves in interface byucc.jhdl.apps.Viewers.Waves.BrowserDataView

updateWaves

public void updateWaves(TableData newData,
                        int viewStartCycle,
                        int TableWidth,
                        boolean nameChange)
Description copied from class: BrowserWavesPanel
This method is used to update the names and values on wires. This should be called any time the actual waveform data is changed.

Specified by:
updateWaves in interface byucc.jhdl.apps.Viewers.Waves.BrowserDataView
Overrides:
updateWaves in class BrowserWavesPanel
Parameters:
newData - The actual waveform dataview (all of it)
viewStartCycle - ????
TableWidth - The number of cycles shown in the table (specifies how wide the new data should be).
nameChange - Indicates that a new wire has changed and that the names canvas should be changed (also used when changing from short to long names).

reset

public void reset()
Specified by:
reset in interface byucc.jhdl.apps.Viewers.Waves.BrowserDataView
Overrides:
reset in class BrowserWavesPanel

checkTableWidth

public int checkTableWidth(int w)
Specified by:
checkTableWidth in interface byucc.jhdl.apps.Viewers.Waves.BrowserDataView
Overrides:
checkTableWidth in class BrowserWavesPanel

updateMarker

public void updateMarker(int loc)
Specified by:
updateMarker in interface byucc.jhdl.apps.Viewers.Waves.BrowserDataView
Overrides:
updateMarker in class BrowserWavesPanel

updateSelection

protected void updateSelection(int newSelection)
Overrides:
updateSelection in class BrowserWavesPanel

setTableWidth

public void setTableWidth(int tw)

dataBarAdjusted

public void dataBarAdjusted(int newValue)
Description copied from interface: BrowserWavesListener
This method will be called when the data scroll bar is adjusted.

Specified by:
dataBarAdjusted in interface BrowserWavesListener

addKeyListener

public void addKeyListener(java.awt.event.KeyListener kl)

setCursor

public void setCursor(java.awt.Cursor newCursor)


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.