hades.gui
Class Editor

java.lang.Object
  extended byhades.gui.Editor
All Implemented Interfaces:
java.awt.event.ActionListener, ContextToolTip, java.util.EventListener, FigCanvasListener, FigDrawableEnumerator, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.WindowListener
Direct Known Subclasses:
JPEditor, T1Editor

public class Editor
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.KeyListener, java.awt.event.ItemListener, java.awt.event.WindowListener, FigCanvasListener, FigDrawableEnumerator, ContextToolTip

Editor - the main schematic editor of the HADES simulation environment


Nested Class Summary
(package private)  class Editor.DoCallMethodListener
           
 
Field Summary
protected  java.util.Hashtable __callbackArgTable
           
protected  java.util.Hashtable __callbackMethodTable
           
 
Constructor Summary
Editor()
           
Editor(boolean createAndShowWindow)
           
Editor(Design design)
           
 
Method Summary
 void __call(java.lang.String methodname, java.lang.Object argument)
           
 void _doOpenFileOrURL(java.lang.String filename)
           
 void actionPerformed(java.awt.event.ActionEvent e)
          actionPerformed(): dispatch Button and MenuItem events
 void addCallback(java.lang.Object key, java.lang.String methodname, java.lang.Object argument)
          add a callback for "identifying" String key to method "methodname" and an "argument" String.
 void addProbes(int mode)
           
 void addProbesToAllSignals()
           
 void addProbesToToplevelIO()
           
 void addProbesToToplevelSignals()
           
 void addProbeToSignal(Signal signal)
           
 void addProbeToSignal(java.lang.String name)
           
 void checkAllCallbacks()
          for all registered callbacks, check that a callback method of the correct name and with either no arguments or a single String argument exists.
 void checkAutoStartSimulation()
          read the SetupManager property "Hades.Editor.AutoStartSimulation" and check whether to start the simulation.
protected  void checkCreateHighlightTable()
           
 void closeAllPropertySheets()
           
 java.awt.Component createAndShowTextViewer(java.lang.String title, int rows, int cols, java.lang.String resource)
           
 Command createCommandByName(java.lang.String className)
           
 void createConsole()
           
 void createEditFrame()
           
 java.awt.Container createEditFrameLayout()
           
 void createGUIFactory()
           
 void createNewSimulator()
          create a new simulator and register it with the editor and the GUI (SimControlPanel).
 void createObjectCanvas()
           
 void createSimControlPanel()
           
 void createStatusPanel()
           
 void createWaveformViewer()
           
static void dbg(java.lang.String msg)
           
 void deleteFromObjectList(Signal signal)
           
 void doAutoconnect()
           
 void doCallMethod()
          This is a fun method.
 void doCancel()
          interrupt and cancel the current Editor Command, whatever it is.
 void doCancelAndEnablePopupOnNextMouseRelease()
          interrupt and cancel the current Editor Command, whatever it is.
 void doCheckDesign()
           
 void doCheckDesignAndHighlightErrors()
           
 void doClearWaveData()
           
 boolean doClose()
          close the current Editor, release all resources.
 void doCloseDesign()
          close the editor's current design: remove all probes, stop the simulation, free some resources...
 void doCopySelection()
           
 void doCreateJythonConsole()
          check and create a Jyhton/JPythonShell.
 Editor doCreateNewEditorWithDesign(java.lang.String resourcename)
           
 Editor doCreateNewEmptyEditor()
           
 void doCreateSymbol()
           
 java.awt.Image doCreateThumbnail()
           
 java.awt.Image doCreateThumbnail(int width, int height)
           
 void doDeleteAll()
           
 void doDeleteSelection()
           
 void doDeselectAllObjects()
           
 void doDisconnect()
           
 void doEditSymbol()
           
 void doEnableCreateSignals(java.lang.Object arg)
          callback from "diable create signals" menu item
 void doEnableJava2DAntiAliasing(java.lang.Object arg)
           
 void doEnableJava2DRenderQuality(java.lang.Object arg)
          callback to toggle Java2D rendering quality on object canvas
 void doEnableSplitSignals(java.lang.Object arg)
           
 void doExit()
           
 void doExportFig2dev()
           
 void doExportGIF()
           
 void doExportPostscript()
           
 void doExportPPM()
           
 void doExportVHDL()
           
 void doFitPositive()
           
 void doFlushSymbolCache()
           
 void doFullRedraw()
           
 void doFullScreen()
           
 void doGarbageCollect()
           
 void doInitSignals(java.lang.String choice)
           
 void doMalloc(int size)
          allocate and instantly free an array with approximately "size" bytes, in order to bypass the inefficient JVM allocation scheme.
 void doMirrorXObject()
           
 void doMirrorYObject()
           
 void doMoveSelection()
           
 void doNothing()
           
 void doOpenDesign(Design tmp, boolean checkUnsavedChanges)
           
 void doOpenDesign(java.lang.String resourcename)
           
 void doOpenDesign(java.lang.String resourcename, boolean checkUnsavedChanges)
          try to load and open the Design specified via "resourcename".
 void doOpenFile()
           
 void doOpenRecentFile(java.lang.String arg)
           
 void doOpenURL()
           
 void doPauseSimulation()
           
 void doPopupAutoconnect()
           
 void doPopupCopy()
           
 void doPopupCreate(java.lang.String s)
           
 void doPopupCreate7400()
           
 void doPopupCreate7400pinout()
           
 void doPopupCreate7405pinout()
           
 void doPopupCreate7408()
           
 void doPopupCreate7408pinout()
           
 void doPopupCreate74107pinout()
           
 void doPopupCreate74138pinout()
           
 void doPopupCreate7432pinout()
           
 void doPopupCreate74375pinout()
           
 void doPopupCreate7449()
           
 void doPopupCreate7449pinout()
           
 void doPopupCreate7483()
           
 void doPopupCreate7483pinout()
           
 void doPopupCreate7486pinout()
           
 void doPopupCreateAnd2()
           
 void doPopupCreateAnd3()
           
 void doPopupCreateAnd4()
           
(package private)  void doPopupCreateAOI21()
           
(package private)  void doPopupCreateAOI22()
           
(package private)  void doPopupCreateAOI31()
           
(package private)  void doPopupCreateAOI32()
           
(package private)  void doPopupCreateAOI33()
           
 void doPopupCreateAsciiDisplay()
           
 void doPopupCreateBuffer()
           
 void doPopupCreateByName()
           
 void doPopupCreateClock()
           
 void doPopupCreateDcf77Clock()
           
 void doPopupCreateDcf77Sender()
           
 void doPopupCreateDemux14()
           
 void doPopupCreateDff()
           
 void doPopupCreateDffMetastable()
           
 void doPopupCreateDffr()
           
 void doPopupCreateDffre()
           
 void doPopupCreateDffrs()
           
 void doPopupCreateFigObject()
           
 void doPopupCreateFsm()
           
 void doPopupCreateGnd()
           
 void doPopupCreateHexDisplay()
           
 void doPopupCreateHexSwitch()
           
 void doPopupCreateInv()
           
 void doPopupCreateIpin()
           
 void doPopupCreateJkff()
           
 void doPopupCreateKvd()
           
 void doPopupCreateLatch()
           
 void doPopupCreateLatchMetastable()
           
 void doPopupCreateLatchr()
           
 void doPopupCreateLED()
           
 void doPopupCreateMux161()
           
 void doPopupCreateMux21()
           
 void doPopupCreateMux41()
           
 void doPopupCreateMux81()
           
 void doPopupCreateNand2()
           
 void doPopupCreateNand3()
           
 void doPopupCreateNand4()
           
 void doPopupCreateNor2()
           
 void doPopupCreateNor3()
           
 void doPopupCreateNor4()
           
(package private)  void doPopupCreateOAI21()
           
(package private)  void doPopupCreateOAI22()
           
(package private)  void doPopupCreateOAI31()
           
(package private)  void doPopupCreateOAI32()
           
(package private)  void doPopupCreateOAI33()
           
 void doPopupCreateOpin()
           
 void doPopupCreateOr2()
           
 void doPopupCreateOr3()
           
 void doPopupCreateOr4()
           
 void doPopupCreatePowerOnReset()
           
 void doPopupCreatePullup()
           
 void doPopupCreatePulseSwitch()
           
 void doPopupCreateRAM()
           
 void doPopupCreateReg4()
           
 void doPopupCreateReg8()
           
 void doPopupCreateROM()
           
 void doPopupCreateSevenSegment()
           
 void doPopupCreateSignal()
           
 void doPopupCreateSmallInv()
           
 void doPopupCreateSubDesign()
           
 void doPopupCreateSubDesign(java.lang.String designname)
           
 void doPopupCreateSwatch()
           
 void doPopupCreateTri()
           
 void doPopupCreateVcc()
           
 void doPopupCreateXnor2()
           
 void doPopupCreateXor2()
           
 void doPopupDelete()
          delete the object at/nearest to the Popup-Menu position.
 void doPopupDeselectAll()
           
 void doPopupDisconnect()
           
 void doPopupDisconnectPort()
           
 void doPopupEdit()
           
 void doPopupMove()
           
 void doPopupName()
           
 void doPopupSelectAll()
           
 void doPopupSelectObject()
           
 void doPopupSelectRegion()
           
 void doPopupSignalAddProbe()
           
 void doPopupSignalAddSegment()
           
 void doPopupSignalChangeName()
           
 void doPopupSignalDeleteProbe()
           
 void doPopupSignalDeleteSegment()
           
 void doPopupSignalInsertVertex()
           
 void doPopupSignalMovePoint()
           
 void doPrintAllObjects()
           
 void doPrintAllSignals()
           
 void doPrintDesign()
           
 void doPrintEditorTable()
           
 void doPrintEventList()
           
 void doPrintObjects()
           
 void doPrintRedrawStats()
           
 void doPrintSimulatorStats()
           
 void doPrintSymbols()
           
 void doPrintToplevelSignals()
           
 void doPrintUndoStack()
           
 void doPrintWireSegmentInfo()
           
 void doRebuildObjectList()
          external callback hook to rebuild the current top-level design
 void doRedo()
           
 void doRedraw()
           
 void doRedrawStressTest()
          try to kill the Java VM by doing a legal sequence of as much repaints as possible...
 void doRunSimulation()
           
 void doSave(java.io.OutputStream fs)
          save the current Design to it's filename.
 void doSaveConfiguration()
           
 void doSaveFile()
           
 void doSaveFileAs()
          select a new filename, then save the current Design (renaming it to the new filename!).
 void doSelectAllObjects()
           
 void doSelectObject()
           
 void doSelectRegion()
           
 void doSelectVHDLOptions()
           
 void doSetCoarseGrid()
           
 void doSetCoarseSnap()
           
 void doSetDesignName()
           
 void doSetFineGrid()
           
 void doSetFineSnap()
           
 void doSetFramerate(double framerate)
          specify the target repaint frequency (frames per second) for synchronous repaints during simulation.
 void doSetFramerate(java.lang.String s)
           
 void doSetMediumGrid()
           
 void doSetMediumSnap()
           
 void doSetNoGrid()
           
 void doSetNoSnap()
           
 void doSetTinySnap()
           
 void doShowAbout()
           
 void doShowAllLayers()
           
 void doShowBindkeys()
           
 void doShowBusPortSymbols(java.lang.Object arg)
           
 void doShowChanges()
           
 void doShowClassLabels(java.lang.Object arg)
           
 void doShowDefaultLayers()
           
 void doShowExportOptions()
           
 void doShowFAQ()
           
 void doShowGlowMode(java.lang.Object arg)
          callback from "glow mode" menu item
 void doShowGreenStdLogic1164_0()
           
 void doShowInstanceBorder(java.lang.Object arg)
           
 void doShowInstanceLabels(java.lang.Object arg)
           
 void doShowInverseCanvas(java.lang.Object arg)
           
 void doShowMemoryInfo()
           
 void doShowMessages()
           
 void doShowNoLayers()
           
 void doShowPortLabels(java.lang.Object arg)
           
 void doShowPortSymbols(java.lang.Object arg)
           
 void doShowProperties()
          display the current set of Java and Hades SetupManager properties, and allow the user to edit and save them.
 void doShowRtlibAnimation(java.lang.Object arg)
           
 void doShowTipOfTheDay()
           
 void doShowToolTips(java.lang.Object arg)
          callback from "enable tool tips" menu item on Editor menu bar
 void doShowViewMode(java.lang.Object arg)
           
 void doShowWaves()
           
 void doSignalSetOne()
           
 void doSignalSetX()
           
 void doSignalSetZero()
           
 void doStartCopy()
           
 void doStartEdit()
           
 void doStartMove()
           
 void doStartNewDesign()
           
 void doStartNewDesign(boolean checkUnsavedChanges)
           
 void doStopSimulation()
           
 void doTestTiming()
           
 void doToggleAntiAliasing()
           
 void doToggleEditorDebug(java.lang.Object arg)
           
 void doToggleGlowMode()
           
 void doToggleSimControlPanel()
           
 void doToggleToolTips()
           
 void doTraceCanvas(java.lang.Object arg)
           
 void doTraceEvents(java.lang.Object arg)
           
 void doTraceMouseClicks(java.lang.Object arg)
           
 void doTraceSignals(java.lang.Object arg)
           
 void doTraceSimKernel(java.lang.Object arg)
           
 void doTraceSimObjects(java.lang.Object arg)
           
 void doUndo()
           
 void doWindow640x480()
           
 void doZoom11()
           
 void doZoomFactor(double factor)
           
 void doZoomFit()
           
 void doZoomIn()
           
 void doZoomIn11()
           
 void doZoomIn14()
           
 void doZoomLandscapeA4()
           
 void doZoomOut()
           
 void doZoomOut07()
           
 void doZoomOut09()
           
 void doZoomRegion()
           
 void doZoomRegion(int wx, int wy, int wx2, int wy2)
           
 void dummyCallback()
           
static void dumpSystemProperties()
           
 FigObject findNearestWireSegment(java.awt.Point WP)
          search for a Signal nearest to (world-coordinate) position WP
 FigObject findNearestWireSegment(java.awt.Point WP, int radius)
          search for a Signal nearest to (world-coordinate) position WP and nearer than distance (if any).
 FigObject findObjectAt(java.awt.Point wp)
           
 Port findPort(java.awt.Point WP)
          try to find a Port on a SimObject from a given world-coordinate position in the current Editor schematic.
 SimObject findSimObject(java.awt.Point WP)
          search for a SimObject's Symbol at or near world-coordinate point WP, then lookup the corresponding SimObject and return a reference to it.
 Symbol findSymbol(java.awt.Point WP)
          search for a SimObject (that is, it's Symbol) at (world-coordinate) position WP in the current design.
 FigObject findSymbolOrSignal(java.awt.Point WP)
          search for a Symbol or a Signal near (world-coordinate) position WP
static Editor getActiveEditor()
           
 java.util.Hashtable getCallbackTable()
           
 Command getCommand()
           
static boolean getDebug()
           
 Design getDesign()
           
 FigBbox getDesignBoundingBox()
          construct and return the bounding box of all visible elements in the current Design.
 DesignManager getDesignManager()
           
 java.awt.Frame getDialogParentFrame()
          return a reference to a Frame that may be used for image loading and as a parent for Dialog windows.
 java.util.Enumeration getDrawableObjects()
          return an Enumeration of all drawable objects
static java.util.Enumeration getEditors()
           
 java.lang.String getFilename()
           
 java.awt.Frame getFrame()
           
 boolean getGlowMode()
           
 java.awt.Frame getJythonConsole()
           
 LogManager getLogManager()
           
 ObjectCanvas getObjectCanvas()
           
 FigObjectList getObjectList()
           
 Selection getSelection()
           
 SimControlPanel getSimControlPanel()
           
 SimKernel getSimulator()
          return a reference to the currently active SimKernel
 FigDrawable getTmpObject()
          return a reference to the current 'active' (temporary) object
 java.lang.String getToolTip(java.awt.Point mouse_pos, long millis)
          get the message to display as a tool tip, depending on the current position of the cursor, and the elapsed idle time in milliseconds.
 UndoStack getUndoStack()
           
 WaveformViewer getWaveformViewer()
           
 boolean HasFileAccess()
           
 boolean hasUnsavedChanges()
           
 void highlightComponent(java.lang.String name)
          highlight a component (=SimObject) with name 'name' in the current Design, if this is visible.
 void highlightSignal(java.lang.String name)
           
 void initSignals(int choice)
          initialize (all) signals.
 void initToolTips()
          initialize tool tip support on our object canvas, using either our own hades.utils.ToolTipManager (AWT mode), or the Swing javax.swing.ToolTipManager (Swing mode).
 void insertIntoObjectList(FigObject obj)
           
 void insertIntoObjectList(FigObject obj, FigObjectList OL)
           
 void insertIntoObjectList(Signal signal)
           
 void insertIntoObjectList(Signal signal, FigObjectList OL)
           
 void insertIntoObjectList(Symbol symbol)
           
 void insertIntoObjectList(Symbol symbol, FigObjectList OL)
           
 void insertIntoObjectList(WireSegment ws)
           
 void insertIntoObjectList(WireSegment ws, FigObjectList OL)
           
 boolean isInsideObject(java.awt.Point WP)
          check whether point WP lies inside a SimObject's Symbol.
 boolean isOnBorder(FigDrawable obj, java.awt.Point WP)
          check whether the position WP (world coordinates) in on the border, that is, within snap-distance of the object bounding box, of object 'obj'.
 boolean isOnPort(java.awt.Point WP)
          check whether position WP is on a Port of a SimObject's Symbol
 boolean isReady()
           
 boolean isViewMode()
           
 void itemStateChanged(java.awt.event.ItemEvent e)
           
 void keyPressed(java.awt.event.KeyEvent evt)
           
 void keyReleased(java.awt.event.KeyEvent evt)
           
 void keyTyped(java.awt.event.KeyEvent evt)
           
 SimObject lookupSimObject(Symbol symbol)
          given a reference to a Symbol, search the corresponding SimObject in this Design.
static void main(java.lang.String[] argv)
           
 void message(java.lang.String msg)
           
 void mouseClicked(FigCanvasEvent ME)
           
 void mouseClicked(java.awt.event.MouseEvent ME)
           
 void mouseEntered(java.awt.event.MouseEvent ME)
           
 void mouseExited(java.awt.event.MouseEvent ME)
           
 void mousePressed(FigCanvasEvent ME)
          process a mouse event ME at world coordinates WP and screen coords SP
 void mousePressed(java.awt.event.MouseEvent ME)
           
 void mouseReleased(java.awt.event.MouseEvent ME)
           
static void msg(java.lang.String msg)
           
static void parseArgs(java.lang.String[] argv)
           
 void printSelection()
           
 void rebuildObjectList(Design design)
          rebuild the object list (that is, the graphical representation) of Design 'design'.
static void registerNewEditor(Editor ed)
           
static void removeEditor(Editor ed)
           
 void removeHighlightMarkers()
           
 void removeProbeFromSignal(Signal signal)
           
 void removeProbesFromAllSignals()
           
 void removeProbesFromToplevelIO()
           
 void removeProbesFromToplevelSignals()
           
 void renameToplevelSignalsAfterDrivers()
          change the names of all default-named signals on the editor's toplevel design hiearchy level.
static void setActiveEditor(Editor ed)
           
 void setAutoStartSimulation(boolean b)
           
 void setCanvasDebug(boolean b)
           
 void setCommand(Command c)
           
static void setDebug(boolean d)
           
 void setDesign(Design d)
           
 void setEnableToolTips(boolean enable)
          enable or disable the context-sensitive "tool"-tips in the editor
 void setExitOnLastWindowClose(boolean b)
           
 void setGlowMode(boolean b)
          set 'glow mode' ('a la DIGLOG) for all Signals in this Design.
 void setInverseCanvasMode(boolean invert)
          set normal (black on white) or inverse (white on black) object canvas color.
 void setRtlibAnimationStatus(boolean b)
           
 void setSelection(Selection s)
           
 void setSimulator(SimKernel simKernel)
          set a new SimKernel.
 void setTmpObject(FigDrawable obj)
           
 void setTraceMouseClicks(boolean d)
           
 void setViewMode(boolean b)
           
 void setWaveformViewer(WaveformViewer wv)
           
 void showHelp(java.lang.String resourcename)
           
 void statusMessage(java.lang.String msg)
           
 void tearDown()
          utility method to release as many resources held by this editor as possible.
 void toggleGlowModeForOneSignal()
          toggle the 'glow mode' status for the signal under the mouse cursor
 java.lang.String toString()
           
static void updateEditorCloseMenuItems()
           
 void updateWindowTitle()
           
static void usage()
           
 void windowActivated(java.awt.event.WindowEvent we)
           
 void windowClosed(java.awt.event.WindowEvent we)
           
 void windowClosing(java.awt.event.WindowEvent we)
           
 void windowDeactivated(java.awt.event.WindowEvent we)
           
 void windowDeiconified(java.awt.event.WindowEvent we)
           
 void windowIconified(java.awt.event.WindowEvent we)
           
 void windowOpened(java.awt.event.WindowEvent we)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__callbackMethodTable

protected java.util.Hashtable __callbackMethodTable

__callbackArgTable

protected java.util.Hashtable __callbackArgTable
Constructor Detail

Editor

public Editor()

Editor

public Editor(boolean createAndShowWindow)

Editor

public Editor(Design design)
Method Detail

createGUIFactory

public void createGUIFactory()

createConsole

public void createConsole()

createEditFrame

public void createEditFrame()

createObjectCanvas

public void createObjectCanvas()

createStatusPanel

public void createStatusPanel()

createSimControlPanel

public void createSimControlPanel()

createEditFrameLayout

public java.awt.Container createEditFrameLayout()

updateWindowTitle

public void updateWindowTitle()

doToggleSimControlPanel

public void doToggleSimControlPanel()

getDesign

public Design getDesign()

setDesign

public void setDesign(Design d)

getDesignManager

public DesignManager getDesignManager()

getSimulator

public SimKernel getSimulator()
return a reference to the currently active SimKernel


doStopSimulation

public void doStopSimulation()

doPauseSimulation

public void doPauseSimulation()

doRunSimulation

public void doRunSimulation()

setSimulator

public void setSimulator(SimKernel simKernel)
set a new SimKernel. This method registers the simulation engine with the GUI console, the GUI SimControlPanel (if any), and the current design (if any).


createNewSimulator

public void createNewSimulator()
create a new simulator and register it with the editor and the GUI (SimControlPanel). If the SimControlPanel is initialized, we try to get the SimKernel type selected by the user (that is, either 'real time' or 'interactive' or 'batch). Note that a simple simulator restart does not change the simulator type.


checkAutoStartSimulation

public void checkAutoStartSimulation()
read the SetupManager property "Hades.Editor.AutoStartSimulation" and check whether to start the simulation. Default is true.


setAutoStartSimulation

public void setAutoStartSimulation(boolean b)

isViewMode

public boolean isViewMode()

getLogManager

public LogManager getLogManager()

getObjectCanvas

public ObjectCanvas getObjectCanvas()

getFrame

public java.awt.Frame getFrame()

getSimControlPanel

public SimControlPanel getSimControlPanel()

getDialogParentFrame

public java.awt.Frame getDialogParentFrame()
return a reference to a Frame that may be used for image loading and as a parent for Dialog windows.


getUndoStack

public UndoStack getUndoStack()

getSelection

public Selection getSelection()

setSelection

public void setSelection(Selection s)

setDebug

public static void setDebug(boolean d)

getDebug

public static boolean getDebug()

setTraceMouseClicks

public void setTraceMouseClicks(boolean d)

setCanvasDebug

public void setCanvasDebug(boolean b)

getWaveformViewer

public WaveformViewer getWaveformViewer()

setWaveformViewer

public void setWaveformViewer(WaveformViewer wv)

HasFileAccess

public boolean HasFileAccess()

getFilename

public java.lang.String getFilename()

isReady

public boolean isReady()

setCommand

public void setCommand(Command c)

getCommand

public Command getCommand()

doCancel

public void doCancel()
interrupt and cancel the current Editor Command, whatever it is.


doCancelAndEnablePopupOnNextMouseRelease

public void doCancelAndEnablePopupOnNextMouseRelease()
interrupt and cancel the current Editor Command, whatever it is. However, don't re-enable the object canvas popup menu right away but on the next mouse-release event on the canvas. This is sometimes better to avoid annoying popup menu behaviour on Windows.


getDrawableObjects

public java.util.Enumeration getDrawableObjects()
Description copied from interface: FigDrawableEnumerator
return an Enumeration of all drawable objects

Specified by:
getDrawableObjects in interface FigDrawableEnumerator

getTmpObject

public FigDrawable getTmpObject()
Description copied from interface: FigDrawableEnumerator
return a reference to the current 'active' (temporary) object

Specified by:
getTmpObject in interface FigDrawableEnumerator

setTmpObject

public void setTmpObject(FigDrawable obj)

getObjectList

public FigObjectList getObjectList()

rebuildObjectList

public void rebuildObjectList(Design design)
rebuild the object list (that is, the graphical representation) of Design 'design'. This method will typically be called after reading in a new Design or manipulations of an existing Design, in order to update its graphical representation.


insertIntoObjectList

public void insertIntoObjectList(Symbol symbol,
                                 FigObjectList OL)

insertIntoObjectList

public void insertIntoObjectList(Symbol symbol)

insertIntoObjectList

public void insertIntoObjectList(Signal signal)

insertIntoObjectList

public void insertIntoObjectList(WireSegment ws)

insertIntoObjectList

public void insertIntoObjectList(FigObject obj)

insertIntoObjectList

public void insertIntoObjectList(Signal signal,
                                 FigObjectList OL)

insertIntoObjectList

public void insertIntoObjectList(WireSegment ws,
                                 FigObjectList OL)

insertIntoObjectList

public void insertIntoObjectList(FigObject obj,
                                 FigObjectList OL)

deleteFromObjectList

public void deleteFromObjectList(Signal signal)

doInitSignals

public void doInitSignals(java.lang.String choice)

initSignals

public void initSignals(int choice)
initialize (all) signals. The choice value should be 0, 1, 2 ("U") or -1 (random values)


renameToplevelSignalsAfterDrivers

public void renameToplevelSignalsAfterDrivers()
change the names of all default-named signals on the editor's toplevel design hiearchy level. The new name for the signal consists of the short name of the component driving this signal, a dot, and the components port name. For example, a signal driven by a flipflop named "S3" will be renamed to "S3.Q". This method is useful to improve the meaningless names like n_137 created automatically by the editor, especially when watching the signal in the waveform viewer.

Note that calling this method will *NOT* rename signals, whose name is already different from the n pattern. You should rename such signals manually.


addProbes

public void addProbes(int mode)

createWaveformViewer

public void createWaveformViewer()

addProbeToSignal

public void addProbeToSignal(Signal signal)

addProbeToSignal

public void addProbeToSignal(java.lang.String name)

addProbesToAllSignals

public void addProbesToAllSignals()

addProbesToToplevelSignals

public void addProbesToToplevelSignals()

addProbesToToplevelIO

public void addProbesToToplevelIO()

removeProbeFromSignal

public void removeProbeFromSignal(Signal signal)

removeProbesFromAllSignals

public void removeProbesFromAllSignals()

removeProbesFromToplevelSignals

public void removeProbesFromToplevelSignals()

removeProbesFromToplevelIO

public void removeProbesFromToplevelIO()

doShowWaves

public void doShowWaves()

doClearWaveData

public void doClearWaveData()

doSelectObject

public void doSelectObject()

doSelectRegion

public void doSelectRegion()

doSelectAllObjects

public void doSelectAllObjects()

doDeselectAllObjects

public void doDeselectAllObjects()

doDeleteSelection

public void doDeleteSelection()

doMoveSelection

public void doMoveSelection()

doCopySelection

public void doCopySelection()

doDeleteAll

public void doDeleteAll()

doFitPositive

public void doFitPositive()

doAutoconnect

public void doAutoconnect()

doDisconnect

public void doDisconnect()

doMirrorXObject

public void doMirrorXObject()

doMirrorYObject

public void doMirrorYObject()

doMalloc

public void doMalloc(int size)
allocate and instantly free an array with approximately "size" bytes, in order to bypass the inefficient JVM allocation scheme.


doShowMemoryInfo

public void doShowMemoryInfo()

doGarbageCollect

public void doGarbageCollect()

doTestTiming

public void doTestTiming()

findSymbolOrSignal

public FigObject findSymbolOrSignal(java.awt.Point WP)
search for a Symbol or a Signal near (world-coordinate) position WP


findObjectAt

public FigObject findObjectAt(java.awt.Point wp)

findNearestWireSegment

public FigObject findNearestWireSegment(java.awt.Point WP)
search for a Signal nearest to (world-coordinate) position WP


findNearestWireSegment

public FigObject findNearestWireSegment(java.awt.Point WP,
                                        int radius)
search for a Signal nearest to (world-coordinate) position WP and nearer than distance (if any). This method uses the euclidean distance from the wire segments to point WP and is computationally intensive. To save computer time, only those WireSegments with their bounding box within 600 units (0.25 inches) of WP are checked.


lookupSimObject

public SimObject lookupSimObject(Symbol symbol)
given a reference to a Symbol, search the corresponding SimObject in this Design.


findSymbol

public Symbol findSymbol(java.awt.Point WP)
search for a SimObject (that is, it's Symbol) at (world-coordinate) position WP in the current design. If a Symbol is found inside the current objectCanvas snap-distance from the position, return a reference to the nearest SimObject, null otherwise. Note that the object list is sorted by layers, with the lowest layer on top. To find the topmost object, we have to search backwards...


findSimObject

public SimObject findSimObject(java.awt.Point WP)
search for a SimObject's Symbol at or near world-coordinate point WP, then lookup the corresponding SimObject and return a reference to it. If no object is found at the given position, this method returns null.


isInsideObject

public boolean isInsideObject(java.awt.Point WP)
check whether point WP lies inside a SimObject's Symbol.

In order to get this method working as expected, we have to correct the typical SimObject's Symbol bounding box, because the PortSymbol extend a little (currently 50 units) to the outside of the user 'visible' symbol.


isOnBorder

public boolean isOnBorder(FigDrawable obj,
                          java.awt.Point WP)
check whether the position WP (world coordinates) in on the border, that is, within snap-distance of the object bounding box, of object 'obj'.

Note that this method may return false for a position inside an object (if the object is larger than 2 snap-distances).


isOnPort

public boolean isOnPort(java.awt.Point WP)
check whether position WP is on a Port of a SimObject's Symbol


findPort

public Port findPort(java.awt.Point WP)
try to find a Port on a SimObject from a given world-coordinate position in the current Editor schematic.

This method duplicates much of the code of the 'isOnPort()' method.


getDesignBoundingBox

public FigBbox getDesignBoundingBox()
construct and return the bounding box of all visible elements in the current Design. This method is used e.g. by the 'zoom fit' command.


mousePressed

public void mousePressed(FigCanvasEvent ME)
Description copied from interface: FigCanvasListener
process a mouse event ME at world coordinates WP and screen coords SP

Specified by:
mousePressed in interface FigCanvasListener

mouseClicked

public void mouseClicked(FigCanvasEvent ME)

keyPressed

public void keyPressed(java.awt.event.KeyEvent evt)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent evt)
Specified by:
keyTyped in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent evt)
Specified by:
keyReleased in interface java.awt.event.KeyListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent ME)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent ME)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent ME)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent ME)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent ME)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

getCallbackTable

public java.util.Hashtable getCallbackTable()

addCallback

public void addCallback(java.lang.Object key,
                        java.lang.String methodname,
                        java.lang.Object argument)
add a callback for "identifying" String key to method "methodname" and an "argument" String. Note that neither argument may be null, because we use Java Hashtables internally, which don't allow neither null keys nor null values. Simply use the empty String "" to specify an unused "argument". Also note that this method intentionally does no error checking...


checkAllCallbacks

public void checkAllCallbacks()
for all registered callbacks, check that a callback method of the correct name and with either no arguments or a single String argument exists. This method does NOT call the callbacks...


__call

public void __call(java.lang.String methodname,
                   java.lang.Object argument)

createCommandByName

public Command createCommandByName(java.lang.String className)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed(): dispatch Button and MenuItem events

Specified by:
actionPerformed in interface java.awt.event.ActionListener

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent we)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent we)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent we)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent we)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent we)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent we)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent we)
Specified by:
windowOpened in interface java.awt.event.WindowListener

dummyCallback

public void dummyCallback()

doEnableJava2DRenderQuality

public void doEnableJava2DRenderQuality(java.lang.Object arg)
callback to toggle Java2D rendering quality on object canvas


doEnableJava2DAntiAliasing

public void doEnableJava2DAntiAliasing(java.lang.Object arg)

doShowViewMode

public void doShowViewMode(java.lang.Object arg)

doShowGlowMode

public void doShowGlowMode(java.lang.Object arg)
callback from "glow mode" menu item


doShowRtlibAnimation

public void doShowRtlibAnimation(java.lang.Object arg)

doShowInverseCanvas

public void doShowInverseCanvas(java.lang.Object arg)

doShowToolTips

public void doShowToolTips(java.lang.Object arg)
callback from "enable tool tips" menu item on Editor menu bar


doEnableCreateSignals

public void doEnableCreateSignals(java.lang.Object arg)
callback from "diable create signals" menu item


doEnableSplitSignals

public void doEnableSplitSignals(java.lang.Object arg)

doTraceSimKernel

public void doTraceSimKernel(java.lang.Object arg)

doTraceEvents

public void doTraceEvents(java.lang.Object arg)

doTraceSimObjects

public void doTraceSimObjects(java.lang.Object arg)

doTraceSignals

public void doTraceSignals(java.lang.Object arg)

doTraceMouseClicks

public void doTraceMouseClicks(java.lang.Object arg)

doTraceCanvas

public void doTraceCanvas(java.lang.Object arg)

doToggleEditorDebug

public void doToggleEditorDebug(java.lang.Object arg)

doShowDefaultLayers

public void doShowDefaultLayers()

doShowAllLayers

public void doShowAllLayers()

doShowNoLayers

public void doShowNoLayers()

doShowInstanceLabels

public void doShowInstanceLabels(java.lang.Object arg)

doShowClassLabels

public void doShowClassLabels(java.lang.Object arg)

doShowPortLabels

public void doShowPortLabels(java.lang.Object arg)

doShowPortSymbols

public void doShowPortSymbols(java.lang.Object arg)

doShowBusPortSymbols

public void doShowBusPortSymbols(java.lang.Object arg)

doShowInstanceBorder

public void doShowInstanceBorder(java.lang.Object arg)

doShowExportOptions

public void doShowExportOptions()

doExportFig2dev

public void doExportFig2dev()

doExportPPM

public void doExportPPM()

doExportGIF

public void doExportGIF()

doExportPostscript

public void doExportPostscript()

doSelectVHDLOptions

public void doSelectVHDLOptions()

doExportVHDL

public void doExportVHDL()

doEditSymbol

public void doEditSymbol()

hasUnsavedChanges

public boolean hasUnsavedChanges()

doNothing

public void doNothing()

doCallMethod

public void doCallMethod()
This is a fun method. It is called via the __call callback mechanism. When called, it will create and display a StringDialog and query the user for a methodname space arguments String. Finally, it will separate methodname and arguments, and use __call to execute the specified method :-)


doClose

public boolean doClose()
close the current Editor, release all resources. This method returns true on success, and false if the user canceled the operation.


doExit

public void doExit()

setExitOnLastWindowClose

public void setExitOnLastWindowClose(boolean b)

doStartNewDesign

public void doStartNewDesign()

doStartNewDesign

public void doStartNewDesign(boolean checkUnsavedChanges)

tearDown

public void tearDown()
utility method to release as many resources held by this editor as possible. Required to help applet usage, as (1) total memory size for applets is limited to 64 MBytes by the Java plugin, and (2) the plugin keeps references to (at least) ten applet instances via old zombie AWT EventQueue threads on Linux.

Note that the editor cannot be used after this method has been called.


closeAllPropertySheets

public void closeAllPropertySheets()

doOpenURL

public void doOpenURL()

doOpenFile

public void doOpenFile()

_doOpenFileOrURL

public void _doOpenFileOrURL(java.lang.String filename)

doOpenDesign

public void doOpenDesign(java.lang.String resourcename)

doOpenDesign

public void doOpenDesign(java.lang.String resourcename,
                         boolean checkUnsavedChanges)
try to load and open the Design specified via "resourcename". The second argument controls whether the editor should check for unsaved changes in the current Design.


doOpenDesign

public void doOpenDesign(Design tmp,
                         boolean checkUnsavedChanges)

doOpenRecentFile

public void doOpenRecentFile(java.lang.String arg)

doCloseDesign

public void doCloseDesign()
close the editor's current design: remove all probes, stop the simulation, free some resources... This method is called whenever the user opens a new design.


doSave

public void doSave(java.io.OutputStream fs)
save the current Design to it's filename.


doSaveFile

public void doSaveFile()

doSaveFileAs

public void doSaveFileAs()
select a new filename, then save the current Design (renaming it to the new filename!). The code prints a lot of diagnostic messages when the "Hades.DesignManager.VerboseMessages" property is set to true.


doSaveConfiguration

public void doSaveConfiguration()

doPrintDesign

public void doPrintDesign()

doStartMove

public void doStartMove()

doStartCopy

public void doStartCopy()

doStartEdit

public void doStartEdit()

doUndo

public void doUndo()

doRedo

public void doRedo()

doRebuildObjectList

public void doRebuildObjectList()
external callback hook to rebuild the current top-level design


showHelp

public void showHelp(java.lang.String resourcename)

doCreateNewEditorWithDesign

public Editor doCreateNewEditorWithDesign(java.lang.String resourcename)

doCreateNewEmptyEditor

public Editor doCreateNewEmptyEditor()

doPopupMove

public void doPopupMove()

doPopupCopy

public void doPopupCopy()

doPopupEdit

public void doPopupEdit()

doPopupName

public void doPopupName()

doPopupDelete

public void doPopupDelete()
delete the object at/nearest to the Popup-Menu position. Note that objects have to lie within snap-grid distance to the mouse position to get deleted.


doPopupCreate

public void doPopupCreate(java.lang.String s)

doPopupCreateIpin

public void doPopupCreateIpin()

doPopupCreatePulseSwitch

public void doPopupCreatePulseSwitch()

doPopupCreateHexSwitch

public void doPopupCreateHexSwitch()

doPopupCreateSevenSegment

public void doPopupCreateSevenSegment()

doPopupCreateHexDisplay

public void doPopupCreateHexDisplay()

doPopupCreateAsciiDisplay

public void doPopupCreateAsciiDisplay()

doPopupCreateClock

public void doPopupCreateClock()

doPopupCreatePowerOnReset

public void doPopupCreatePowerOnReset()

doPopupCreateLED

public void doPopupCreateLED()

doPopupCreateOpin

public void doPopupCreateOpin()

doPopupCreateVcc

public void doPopupCreateVcc()

doPopupCreateGnd

public void doPopupCreateGnd()

doPopupCreatePullup

public void doPopupCreatePullup()

doPopupCreateBuffer

public void doPopupCreateBuffer()

doPopupCreateAnd2

public void doPopupCreateAnd2()

doPopupCreateAnd3

public void doPopupCreateAnd3()

doPopupCreateAnd4

public void doPopupCreateAnd4()

doPopupCreateDemux14

public void doPopupCreateDemux14()

doPopupCreateInv

public void doPopupCreateInv()

doPopupCreateSmallInv

public void doPopupCreateSmallInv()

doPopupCreateTri

public void doPopupCreateTri()

doPopupCreateOr2

public void doPopupCreateOr2()

doPopupCreateOr3

public void doPopupCreateOr3()

doPopupCreateOr4

public void doPopupCreateOr4()

doPopupCreateMux21

public void doPopupCreateMux21()

doPopupCreateMux41

public void doPopupCreateMux41()

doPopupCreateNand2

public void doPopupCreateNand2()

doPopupCreateNand3

public void doPopupCreateNand3()

doPopupCreateNand4

public void doPopupCreateNand4()

doPopupCreateNor2

public void doPopupCreateNor2()

doPopupCreateNor3

public void doPopupCreateNor3()

doPopupCreateNor4

public void doPopupCreateNor4()

doPopupCreateXor2

public void doPopupCreateXor2()

doPopupCreateXnor2

public void doPopupCreateXnor2()

doPopupCreateAOI21

void doPopupCreateAOI21()

doPopupCreateAOI22

void doPopupCreateAOI22()

doPopupCreateAOI31

void doPopupCreateAOI31()

doPopupCreateAOI32

void doPopupCreateAOI32()

doPopupCreateAOI33

void doPopupCreateAOI33()

doPopupCreateOAI21

void doPopupCreateOAI21()

doPopupCreateOAI22

void doPopupCreateOAI22()

doPopupCreateOAI31

void doPopupCreateOAI31()

doPopupCreateOAI32

void doPopupCreateOAI32()

doPopupCreateOAI33

void doPopupCreateOAI33()

doPopupCreateLatch

public void doPopupCreateLatch()

doPopupCreateLatchr

public void doPopupCreateLatchr()

doPopupCreateDff

public void doPopupCreateDff()

doPopupCreateDffr

public void doPopupCreateDffr()

doPopupCreateDffre

public void doPopupCreateDffre()

doPopupCreateDffrs

public void doPopupCreateDffrs()

doPopupCreateLatchMetastable

public void doPopupCreateLatchMetastable()

doPopupCreateDffMetastable

public void doPopupCreateDffMetastable()

doPopupCreateJkff

public void doPopupCreateJkff()

doPopupCreate7400

public void doPopupCreate7400()

doPopupCreate7408

public void doPopupCreate7408()

doPopupCreate7449

public void doPopupCreate7449()

doPopupCreate7400pinout

public void doPopupCreate7400pinout()

doPopupCreate7405pinout

public void doPopupCreate7405pinout()

doPopupCreate7408pinout

public void doPopupCreate7408pinout()

doPopupCreate7432pinout

public void doPopupCreate7432pinout()

doPopupCreate7449pinout

public void doPopupCreate7449pinout()

doPopupCreate7483pinout

public void doPopupCreate7483pinout()

doPopupCreate7486pinout

public void doPopupCreate7486pinout()

doPopupCreate74107pinout

public void doPopupCreate74107pinout()

doPopupCreate74138pinout

public void doPopupCreate74138pinout()

doPopupCreate74375pinout

public void doPopupCreate74375pinout()

doPopupCreate7483

public void doPopupCreate7483()

doPopupCreateReg4

public void doPopupCreateReg4()

doPopupCreateReg8

public void doPopupCreateReg8()

doPopupCreateMux81

public void doPopupCreateMux81()

doPopupCreateMux161

public void doPopupCreateMux161()

doPopupCreateROM

public void doPopupCreateROM()

doPopupCreateRAM

public void doPopupCreateRAM()

doPopupCreateSwatch

public void doPopupCreateSwatch()

doPopupCreateDcf77Clock

public void doPopupCreateDcf77Clock()

doPopupCreateDcf77Sender

public void doPopupCreateDcf77Sender()

doPopupCreateSubDesign

public void doPopupCreateSubDesign(java.lang.String designname)

doPopupCreateSubDesign

public void doPopupCreateSubDesign()

doPopupCreateByName

public void doPopupCreateByName()

doPopupCreateFsm

public void doPopupCreateFsm()

doPopupCreateKvd

public void doPopupCreateKvd()

doPopupCreateFigObject

public void doPopupCreateFigObject()

doPopupSelectObject

public void doPopupSelectObject()

doPopupSelectRegion

public void doPopupSelectRegion()

doPopupSelectAll

public void doPopupSelectAll()

doPopupDeselectAll

public void doPopupDeselectAll()

doPopupCreateSignal

public void doPopupCreateSignal()

doPopupSignalMovePoint

public void doPopupSignalMovePoint()

doPopupSignalAddSegment

public void doPopupSignalAddSegment()

doPopupSignalInsertVertex

public void doPopupSignalInsertVertex()

doPopupSignalDeleteSegment

public void doPopupSignalDeleteSegment()

doPopupSignalChangeName

public void doPopupSignalChangeName()

doPopupAutoconnect

public void doPopupAutoconnect()

doPopupDisconnect

public void doPopupDisconnect()

doPopupDisconnectPort

public void doPopupDisconnectPort()

doPopupSignalAddProbe

public void doPopupSignalAddProbe()

doPopupSignalDeleteProbe

public void doPopupSignalDeleteProbe()

doSignalSetZero

public void doSignalSetZero()

doSignalSetOne

public void doSignalSetOne()

doSignalSetX

public void doSignalSetX()

doSetNoGrid

public void doSetNoGrid()

doSetCoarseGrid

public void doSetCoarseGrid()

doSetMediumGrid

public void doSetMediumGrid()

doSetFineGrid

public void doSetFineGrid()

doSetNoSnap

public void doSetNoSnap()

doSetCoarseSnap

public void doSetCoarseSnap()

doSetMediumSnap

public void doSetMediumSnap()

doSetFineSnap

public void doSetFineSnap()

doSetTinySnap

public void doSetTinySnap()

doSetFramerate

public void doSetFramerate(double framerate)
specify the target repaint frequency (frames per second) for synchronous repaints during simulation. A value of 0.0 means no repaint, -1 implies to use the default from the .hadesrc file.


doSetFramerate

public void doSetFramerate(java.lang.String s)

doFullRedraw

public void doFullRedraw()

doZoomRegion

public void doZoomRegion()

doZoomRegion

public void doZoomRegion(int wx,
                         int wy,
                         int wx2,
                         int wy2)

doZoomIn

public void doZoomIn()

doZoomIn14

public void doZoomIn14()

doZoomOut

public void doZoomOut()

doZoomOut07

public void doZoomOut07()

doZoomIn11

public void doZoomIn11()

doZoomOut09

public void doZoomOut09()

doZoomFactor

public void doZoomFactor(double factor)

doZoomFit

public void doZoomFit()

doZoom11

public void doZoom11()

doZoomLandscapeA4

public void doZoomLandscapeA4()

doRedraw

public void doRedraw()

doRedrawStressTest

public void doRedrawStressTest()
try to kill the Java VM by doing a legal sequence of as much repaints as possible...


doFlushSymbolCache

public void doFlushSymbolCache()

doSetDesignName

public void doSetDesignName()

doCheckDesign

public void doCheckDesign()

doCheckDesignAndHighlightErrors

public void doCheckDesignAndHighlightErrors()

doCreateSymbol

public void doCreateSymbol()

doCreateThumbnail

public java.awt.Image doCreateThumbnail(int width,
                                        int height)

doCreateThumbnail

public java.awt.Image doCreateThumbnail()

setViewMode

public void setViewMode(boolean b)

getGlowMode

public boolean getGlowMode()

setGlowMode

public void setGlowMode(boolean b)
set 'glow mode' ('a la DIGLOG) for all Signals in this Design. As this method may be called from scripts and other external programs, we also check for the current value of our GUI "glow mode" checkbox menu item, and set this menu item state if necessary.


doToggleGlowMode

public void doToggleGlowMode()

toggleGlowModeForOneSignal

public void toggleGlowModeForOneSignal()
toggle the 'glow mode' status for the signal under the mouse cursor


doShowGreenStdLogic1164_0

public void doShowGreenStdLogic1164_0()

highlightComponent

public void highlightComponent(java.lang.String name)
highlight a component (=SimObject) with name 'name' in the current Design, if this is visible. Highlighting is done by using the highlighting color (see HADES configuration) to draw the components Symbol. Call removeHighlightMarkers() to restore the Symbol colors.


highlightSignal

public void highlightSignal(java.lang.String name)

removeHighlightMarkers

public void removeHighlightMarkers()

checkCreateHighlightTable

protected void checkCreateHighlightTable()

setRtlibAnimationStatus

public void setRtlibAnimationStatus(boolean b)

initToolTips

public void initToolTips()
initialize tool tip support on our object canvas, using either our own hades.utils.ToolTipManager (AWT mode), or the Swing javax.swing.ToolTipManager (Swing mode).


setEnableToolTips

public void setEnableToolTips(boolean enable)
enable or disable the context-sensitive "tool"-tips in the editor


doToggleToolTips

public void doToggleToolTips()

doToggleAntiAliasing

public void doToggleAntiAliasing()

setInverseCanvasMode

public void setInverseCanvasMode(boolean invert)
set normal (black on white) or inverse (white on black) object canvas color.


doPrintObjects

public void doPrintObjects()

doPrintAllObjects

public void doPrintAllObjects()

doPrintToplevelSignals

public void doPrintToplevelSignals()

doPrintAllSignals

public void doPrintAllSignals()

doPrintSymbols

public void doPrintSymbols()

doPrintWireSegmentInfo

public void doPrintWireSegmentInfo()

doPrintUndoStack

public void doPrintUndoStack()

doPrintEventList

public void doPrintEventList()

doPrintEditorTable

public void doPrintEditorTable()

doPrintRedrawStats

public void doPrintRedrawStats()

doPrintSimulatorStats

public void doPrintSimulatorStats()

doShowMessages

public void doShowMessages()

doShowProperties

public void doShowProperties()
display the current set of Java and Hades SetupManager properties, and allow the user to edit and save them.


doShowBindkeys

public void doShowBindkeys()

doShowChanges

public void doShowChanges()

doShowFAQ

public void doShowFAQ()

createAndShowTextViewer

public java.awt.Component createAndShowTextViewer(java.lang.String title,
                                                  int rows,
                                                  int cols,
                                                  java.lang.String resource)

doShowAbout

public void doShowAbout()

message

public void message(java.lang.String msg)

msg

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

dbg

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

statusMessage

public void statusMessage(java.lang.String msg)

printSelection

public void printSelection()

doShowTipOfTheDay

public void doShowTipOfTheDay()

getToolTip

public java.lang.String getToolTip(java.awt.Point mouse_pos,
                                   long millis)
Description copied from interface: ContextToolTip
get the message to display as a tool tip, depending on the current position of the cursor, and the elapsed idle time in milliseconds.

Naturally, both the position and millis parameters simply may be ignored by classes implementing this interface.

Specified by:
getToolTip in interface ContextToolTip

toString

public java.lang.String toString()

registerNewEditor

public static void registerNewEditor(Editor ed)

removeEditor

public static void removeEditor(Editor ed)

updateEditorCloseMenuItems

public static void updateEditorCloseMenuItems()

setActiveEditor

public static void setActiveEditor(Editor ed)

getActiveEditor

public static Editor getActiveEditor()

getEditors

public static java.util.Enumeration getEditors()

doFullScreen

public void doFullScreen()

doWindow640x480

public void doWindow640x480()

doCreateJythonConsole

public void doCreateJythonConsole()
check and create a Jyhton/JPythonShell. We only want one Shell per Editor...


getJythonConsole

public java.awt.Frame getJythonConsole()

parseArgs

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

usage

public static void usage()

dumpSystemProperties

public static void dumpSystemProperties()

main

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