hades.gui
Class StimuliEditor

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended byhades.gui.StimuliEditor
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class StimuliEditor
extends java.awt.Frame
implements java.awt.event.ActionListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
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
(package private)  java.awt.Button allOneButton
           
(package private)  java.awt.Button allTristateButton
           
(package private)  java.awt.Button allUndefinedButton
           
(package private)  java.awt.Button allZeroButton
           
(package private)  java.awt.Panel buttonPanel
           
(package private)  java.awt.MenuItem clearAllMI
           
(package private)  java.awt.Button clock2Button
           
(package private)  java.awt.Button clock4Button
           
(package private)  java.awt.Button clock8Button
           
(package private)  java.awt.Button clockButton
           
(package private)  java.awt.MenuItem closeMI
           
(package private)  java.awt.Button counterButton
           
(package private)  java.awt.Label cycleLengthLabel
           
(package private)  java.awt.TextField cycleLengthTF
           
(package private)  java.awt.Panel cyclePanel
           
(package private) static boolean debug
           
(package private)  DesignManager DM
           
(package private)  java.awt.Menu editMenu
           
(package private)  StimuliEditorCanvas editorCanvas
           
(package private)  java.awt.Panel editorPanel
           
(package private)  java.awt.Scrollbar editorScroller
           
(package private)  java.awt.Button expandButton
           
(package private)  java.awt.Menu fileMenu
           
(package private)  java.awt.Panel filenamePanel
           
(package private)  java.awt.TextField filenameTF
           
(package private)  java.awt.MenuItem helpAboutMI
           
(package private)  java.awt.MenuItem helpKeysMI
           
(package private)  java.awt.Menu helpMenu
           
(package private) static java.lang.String helpResourceName
           
(package private)  java.awt.Button invertButton
           
(package private)  java.awt.MenuItem loadMI
           
(package private)  java.awt.MenuBar menuBar
           
(package private)  java.awt.Label nCyclesLabel
           
(package private)  java.awt.TextField nCyclesTF
           
(package private)  java.awt.Button pwrOnResetButton
           
(package private)  java.awt.MenuItem regionClearMI
           
(package private)  java.awt.MenuItem regionCopyMI
           
(package private)  java.awt.MenuItem regionEndMI
           
(package private)  java.awt.Point regionEndPoint
           
(package private)  java.awt.MenuItem regionMoveMI
           
(package private)  java.awt.MenuItem regionSetMI
           
(package private)  java.awt.MenuItem regionStartMI
           
(package private)  java.awt.Point regionStartPoint
           
(package private)  java.awt.MenuItem saveAsMI
           
(package private)  java.awt.MenuItem saveMI
           
(package private)  java.awt.MenuItem saveVHDLMI
           
(package private)  Stimulus stimulus
           
(package private) static java.lang.String versionString
           
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Window
 
Fields inherited from class java.awt.Container
 
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
StimuliEditor(Stimulus stimulus)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
(package private)  void buildButtonPanel()
           
(package private)  void buildCyclePanel()
           
(package private)  void buildEditorPanel()
           
(package private)  void buildFilenamePanel()
           
(package private)  void buildMenu()
           
static void dbg(java.lang.String s)
           
(package private)  void doChangeCyclePeriod()
           
(package private)  void doChangeNumberOfCycles()
           
 void doClearAll()
           
 void doClearRegion()
           
 void doClose()
           
 void doCopyRegion()
           
(package private)  void doExpandRow()
           
 void doExportVHDLFile()
           
(package private)  void doInitCounter()
           
(package private)  void doInitRowWithOne()
           
(package private)  void doInitRowWithU()
           
(package private)  void doInitRowWithZ()
           
(package private)  void doInitRowWithZero()
           
(package private)  void doInitWithClock(int pulsewidth)
           
(package private)  void doInitWithPowerOnReset()
           
(package private)  void doInvertRow()
           
 void doLoadFile()
           
 void doMarkRegionEnd()
           
 void doMarkRegionStart()
           
 void doMoveRegion()
           
 void doSaveAsFile()
           
 void doSaveFile()
           
 void doSetRegion()
           
 void doShowHelpAbout()
           
 void doShowHelpKeys()
          find and load the Keys definition file
(package private)  void initRestOfRowWithValue(int value)
           
static void main(java.lang.String[] argv)
           
static void msg(java.lang.String s)
           
(package private)  void setupCallbacks()
           
(package private)  void setupWindowListener()
           
 java.lang.String toString()
           
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

debug

static boolean debug

versionString

static java.lang.String versionString

helpResourceName

static java.lang.String helpResourceName

stimulus

Stimulus stimulus

regionStartPoint

java.awt.Point regionStartPoint

regionEndPoint

java.awt.Point regionEndPoint

allUndefinedButton

java.awt.Button allUndefinedButton

allZeroButton

java.awt.Button allZeroButton

allOneButton

java.awt.Button allOneButton

allTristateButton

java.awt.Button allTristateButton

expandButton

java.awt.Button expandButton

invertButton

java.awt.Button invertButton

pwrOnResetButton

java.awt.Button pwrOnResetButton

counterButton

java.awt.Button counterButton

clockButton

java.awt.Button clockButton

clock2Button

java.awt.Button clock2Button

clock4Button

java.awt.Button clock4Button

clock8Button

java.awt.Button clock8Button

cycleLengthLabel

java.awt.Label cycleLengthLabel

nCyclesLabel

java.awt.Label nCyclesLabel

buttonPanel

java.awt.Panel buttonPanel

editorPanel

java.awt.Panel editorPanel

cyclePanel

java.awt.Panel cyclePanel

filenamePanel

java.awt.Panel filenamePanel

cycleLengthTF

java.awt.TextField cycleLengthTF

nCyclesTF

java.awt.TextField nCyclesTF

filenameTF

java.awt.TextField filenameTF

editorCanvas

StimuliEditorCanvas editorCanvas

editorScroller

java.awt.Scrollbar editorScroller

menuBar

java.awt.MenuBar menuBar

fileMenu

java.awt.Menu fileMenu

editMenu

java.awt.Menu editMenu

helpMenu

java.awt.Menu helpMenu

loadMI

java.awt.MenuItem loadMI

saveMI

java.awt.MenuItem saveMI

saveAsMI

java.awt.MenuItem saveAsMI

saveVHDLMI

java.awt.MenuItem saveVHDLMI

closeMI

java.awt.MenuItem closeMI

regionStartMI

java.awt.MenuItem regionStartMI

regionEndMI

java.awt.MenuItem regionEndMI

regionMoveMI

java.awt.MenuItem regionMoveMI

regionCopyMI

java.awt.MenuItem regionCopyMI

regionClearMI

java.awt.MenuItem regionClearMI

regionSetMI

java.awt.MenuItem regionSetMI

clearAllMI

java.awt.MenuItem clearAllMI

helpAboutMI

java.awt.MenuItem helpAboutMI

helpKeysMI

java.awt.MenuItem helpKeysMI

DM

DesignManager DM
Constructor Detail

StimuliEditor

public StimuliEditor(Stimulus stimulus)
Method Detail

buildButtonPanel

void buildButtonPanel()

buildCyclePanel

void buildCyclePanel()

buildEditorPanel

void buildEditorPanel()

buildFilenamePanel

void buildFilenamePanel()

buildMenu

void buildMenu()

setupCallbacks

void setupCallbacks()

setupWindowListener

void setupWindowListener()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

doChangeCyclePeriod

void doChangeCyclePeriod()

doChangeNumberOfCycles

void doChangeNumberOfCycles()

doInitRowWithZero

void doInitRowWithZero()

doInitRowWithOne

void doInitRowWithOne()

doInitRowWithU

void doInitRowWithU()

doInitRowWithZ

void doInitRowWithZ()

initRestOfRowWithValue

void initRestOfRowWithValue(int value)

doInitWithClock

void doInitWithClock(int pulsewidth)

doInitCounter

void doInitCounter()

doExpandRow

void doExpandRow()

doInvertRow

void doInvertRow()

doInitWithPowerOnReset

void doInitWithPowerOnReset()

doLoadFile

public void doLoadFile()

doSaveFile

public void doSaveFile()

doSaveAsFile

public void doSaveAsFile()

doExportVHDLFile

public void doExportVHDLFile()

doClose

public void doClose()

doMarkRegionStart

public void doMarkRegionStart()

doMarkRegionEnd

public void doMarkRegionEnd()

doClearRegion

public void doClearRegion()

doSetRegion

public void doSetRegion()

doMoveRegion

public void doMoveRegion()

doCopyRegion

public void doCopyRegion()

doClearAll

public void doClearAll()

doShowHelpAbout

public void doShowHelpAbout()

doShowHelpKeys

public void doShowHelpKeys()
find and load the Keys definition file


toString

public java.lang.String toString()

dbg

public static void dbg(java.lang.String s)

msg

public static void msg(java.lang.String s)

main

public static void main(java.lang.String[] argv)