misim
Interface ProcessorView
- All Known Implementing Classes:
- ViewPanel
- public interface ProcessorView
The ProcessorView interface is implemented by the ViewWindow, and allows
other classes to control the display of the Processor's state. It is
mainly used by the BreakpointManager.
- See Also:
ViewPanel
,
BreakpointManager
Method Summary |
int |
getSelectedAddress(int defaultAddr)
Return the address of the currently selected line in the processor view |
void |
selectAddress(int address)
Select the line that represents the given address, and make sure that
line is visible. |
void |
setBreakpoint(int address,
boolean setBreak)
Set the given address to have a breakpoint, or remove a set breakpoint |
selectAddress
public void selectAddress(int address)
- Select the line that represents the given address, and make sure that
line is visible.
- Parameters:
address
- The address to select
getSelectedAddress
public int getSelectedAddress(int defaultAddr)
- Return the address of the currently selected line in the processor view
- Parameters:
defaultAddr
- The default address to return if no valid line is selected- Returns:
- The currently selected address, or the default if none
setBreakpoint
public void setBreakpoint(int address,
boolean setBreak)
- Set the given address to have a breakpoint, or remove a set breakpoint
- Parameters:
address
- The address to set or clear a breakpointsetBreak
- True if a breakpoint is to be set, false otherwise