|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.apps.Viewers.ViewManager
Field Summary | |
GenericFrame |
gFrame
|
boolean |
stepButtonVisible
|
static java.lang.Object |
viewLock
|
boolean |
window
|
Constructor Summary | |
ViewManager(BrowserCore bCore)
ViewManager with BrowserCore support |
|
ViewManager(HWSystem hwSystem)
ViewManager without BrowserCore support |
|
ViewManager(HWSystem hwSystem,
Node rNode)
ViewManager without BrowserCore support |
Method Summary | |
boolean |
addCircuitView(Cell cCell)
addCircuitView, create a new circuit view and register it |
boolean |
addCircuitView(Cell cCell,
int locx,
int locy,
int sizex,
int sizey)
|
boolean |
addCircuitView(java.lang.String cellName)
addCircuitView, create a new circuit view and register it |
boolean |
addCircuitView(java.lang.String cellName,
int locx,
int locy,
int sizex,
int sizey)
addCircuitView, create a new circuit view and register it |
boolean |
addClassView(CLInterpreter interp,
java.lang.Object toView)
addClassview, create new ClassInfo viewer and register it |
boolean |
addClassView(java.lang.Object toView)
addClassview, create new ClassInfo viewer and register it |
void |
addFormat(java.lang.String newFormat)
|
boolean |
addLayoutView(Cell c)
|
boolean |
addLayoutView(java.lang.String cellName)
addLayoutView, add new Layout viewer and register it |
boolean |
addMemoryView(java.lang.String cellName)
addMemoryView, create a new memory view and register it |
boolean |
addMemoryView(java.lang.String memName,
int locx,
int locy,
int sizex,
int sizey)
addMemoryView, create a new memory view and register it |
void |
addStepButton()
|
boolean |
addWatch(java.lang.String wireName)
addWatch |
boolean |
addWatch(Wire toAdd)
addWatch |
void |
CLICommandEventFired(CLICommandEvent evt)
CLICommandEventFired.. |
void |
destroyClassView(java.lang.String cellName)
destroyClassView, kill and unregister classViewx |
ConsoleFrame |
getConsoleFrame()
|
int |
getCurrentCycle()
getCurrentCycle, return current simulation cycle |
int |
getCurrentStep()
|
boolean |
getHardwareMode()
|
CLInterpreter |
getInterp()
|
java.util.Vector |
getOldFormats()
This method gets the recently used costom formats from the BrowserCore |
HWSystem |
getSystem()
|
boolean |
getWavesSelect()
|
boolean |
isWatched(java.lang.String wireName)
isWatched, see if the given wire is watched or not |
void |
quit()
|
void |
removeCircuitView(Cell cell)
removeCircuitView, unregister circuit view |
void |
removeCircuitView(java.lang.String cellName)
removeCircuitView, unregister circuit view |
void |
removeClassView(java.lang.String cellName)
removeClassView, unregister classView |
void |
removeLayoutView(Cell c)
|
void |
removeLayoutView(java.lang.String cellName)
|
void |
removeMemoryView(java.lang.String cellName)
removeMemoryView, unregister memory view |
void |
removeStepButton()
|
void |
removeTool(Tool expiredTool)
addCircuitView, create a new circuit view and register it |
boolean |
removeWatch(java.lang.String wireName)
removeWatch, remove the given wire from the watch list |
void |
removeWaveView()
|
void |
setGenericFrame(GenericFrame gFrame)
|
void |
setHWSystem(HWSystem hws)
sets the hardware system. |
void |
setWavesType(boolean newValue)
setWavesType |
void |
setWin(boolean v)
|
boolean |
stepButtonIsVisible()
|
void |
systemReset()
systemReset Called when the the user resets the system |
void |
updateBrowser()
updateUserStep, called when the user wants to update the views.. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public GenericFrame gFrame
public boolean window
public boolean stepButtonVisible
public static java.lang.Object viewLock
Constructor Detail |
public ViewManager(BrowserCore bCore)
public ViewManager(HWSystem hwSystem)
hwSystem
- Reference to HWSystem which provides
access to all essencial system commandspublic ViewManager(HWSystem hwSystem, Node rNode)
hwSystem
- Reference to HWSystem which provides
access to all essencial system commandsrNode
- A Node in the circuit you want to use the
View Manager with.Method Detail |
public void CLICommandEventFired(CLICommandEvent evt)
CLICommandEventFired
in interface CLICommandListener
public void removeTool(Tool expiredTool)
public boolean addCircuitView(java.lang.String cellName, int locx, int locy, int sizex, int sizey)
cellName
- The Cell to viewlocx
- Initial x-axis location of the windowlocy
- Initial y-axis location of the windowsizex
- x-axis sizesizey
- y-axis sizepublic boolean addCircuitView(Cell cCell, int locx, int locy, int sizex, int sizey)
public boolean addCircuitView(Cell cCell)
cCell
- The Cell to viewpublic boolean addCircuitView(java.lang.String cellName)
cellName
- The Cell to viewpublic void removeCircuitView(java.lang.String cellName)
cellName
- The cell to removepublic void removeCircuitView(Cell cell)
cell
- The cell to removepublic boolean addMemoryView(java.lang.String memName, int locx, int locy, int sizex, int sizey)
locx
- Initial x-axis location of the windowlocy
- Initial y-axis location of the windowsizex
- x-axis sizesizey
- y-axis sizepublic boolean addMemoryView(java.lang.String cellName)
cellName
- The Cell to viewpublic void removeMemoryView(java.lang.String cellName)
cellName
- Cell to unregisterpublic boolean addClassView(java.lang.Object toView)
public boolean addClassView(CLInterpreter interp, java.lang.Object toView)
interp
- Interpreter to allow the class access to Jab commandspublic void removeClassView(java.lang.String cellName)
cellName
- Cell to unregisterpublic void destroyClassView(java.lang.String cellName)
cellName
- Cell to kill and unregisterpublic boolean addLayoutView(java.lang.String cellName)
cellName
- The cell to view
public boolean addLayoutView(Cell c)
addLayoutView
in interface LayoutViewListener
public void removeLayoutView(Cell c)
removeLayoutView
in interface LayoutViewListener
public void removeLayoutView(java.lang.String cellName)
public boolean addWatch(java.lang.String wireName)
wireName
-
public boolean addWatch(Wire toAdd)
toAdd
-
public boolean removeWatch(java.lang.String wireName)
wireName
- the wire to remove
public boolean isWatched(java.lang.String wireName)
wireName
- the wire to check
public void removeWaveView()
public void setWavesType(boolean newValue)
newValue
- true for standard waves view, false for table wavespublic boolean getWavesSelect()
public java.util.Vector getOldFormats()
public void addFormat(java.lang.String newFormat)
public int getCurrentCycle()
public int getCurrentStep()
public boolean getHardwareMode()
public HWSystem getSystem()
public CLInterpreter getInterp()
public void setHWSystem(HWSystem hws)
hws
- The new hardwareSystempublic void updateBrowser()
public void systemReset()
public void setWin(boolean v)
public ConsoleFrame getConsoleFrame()
public void setGenericFrame(GenericFrame gFrame)
public boolean stepButtonIsVisible()
public void quit()
public void removeStepButton()
public void addStepButton()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |