Class BreakpointColumn
- java.lang.Object
-
- net.emustudio.emulib.runtime.interaction.debugger.BreakpointColumn
-
- All Implemented Interfaces:
DebuggerColumn<java.lang.Boolean>
public class BreakpointColumn extends java.lang.Object implements DebuggerColumn<java.lang.Boolean>
-
-
Constructor Summary
Constructors Constructor Description BreakpointColumn(CPU cpu)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<java.lang.Boolean>getClassType()Gets class type of the column.intgetDefaultWidth()Get default width of the column in pixels.java.lang.StringgetTitle()Gets title of the column.java.lang.BooleangetValue(int location)Determine if a breakpoint is set at specific location.booleanisEditable()Determines whether this column is editable by user.voidsetValue(int location, java.lang.Object shouldSetObject)Set or unset breakpoint to specific location.
-
-
-
Constructor Detail
-
BreakpointColumn
public BreakpointColumn(CPU cpu)
-
-
Method Detail
-
getClassType
public java.lang.Class<java.lang.Boolean> getClassType()
Description copied from interface:DebuggerColumnGets class type of the column.- Specified by:
getClassTypein interfaceDebuggerColumn<java.lang.Boolean>- Returns:
- Java type of this column
-
getTitle
public java.lang.String getTitle()
Description copied from interface:DebuggerColumnGets title of the column.- Specified by:
getTitlein interfaceDebuggerColumn<java.lang.Boolean>- Returns:
- title of this column
-
isEditable
public boolean isEditable()
Description copied from interface:DebuggerColumnDetermines whether this column is editable by user. For example, a "mnemo" column shouldn't be editable, but "breakpoint" column can (and should). Note that the returned value holds to all cells in the column.- Specified by:
isEditablein interfaceDebuggerColumn<java.lang.Boolean>- Returns:
- true if the column is editable, false otherwise
-
getValue
public java.lang.Boolean getValue(int location)
Determine if a breakpoint is set at specific location.- Specified by:
getValuein interfaceDebuggerColumn<java.lang.Boolean>- Parameters:
location- memory address (not row in debug table)- Returns:
- boolean value (true/false) if breakpoint is set/unset at the location
-
setValue
public void setValue(int location, java.lang.Object shouldSetObject) throws CannotSetDebuggerValueExceptionSet or unset breakpoint to specific location.- Specified by:
setValuein interfaceDebuggerColumn<java.lang.Boolean>- Parameters:
location- memory address (not row in debug table)shouldSetObject- boolean value (set/unset breakpoint)- Throws:
CannotSetDebuggerValueException- if the value cannot be assigned, for any reason
-
getDefaultWidth
public int getDefaultWidth()
Description copied from interface:DebuggerColumnGet default width of the column in pixels. If it is not known, this method should return -1.- Specified by:
getDefaultWidthin interfaceDebuggerColumn<java.lang.Boolean>- Returns:
- default width of the column in pixels or -1 if it is not known
-
-