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.int
getDefaultWidth()
Get default width of the column in pixels.java.lang.String
getTitle()
Gets title of the column.java.lang.Boolean
getValue(int location)
Determine if a breakpoint is set at specific location.boolean
isEditable()
Determines whether this column is editable by user.void
setValue(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:DebuggerColumn
Gets class type of the column.- Specified by:
getClassType
in interfaceDebuggerColumn<java.lang.Boolean>
- Returns:
- Java type of this column
-
getTitle
public java.lang.String getTitle()
Description copied from interface:DebuggerColumn
Gets title of the column.- Specified by:
getTitle
in interfaceDebuggerColumn<java.lang.Boolean>
- Returns:
- title of this column
-
isEditable
public boolean isEditable()
Description copied from interface:DebuggerColumn
Determines 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:
isEditable
in 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:
getValue
in 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 CannotSetDebuggerValueException
Set or unset breakpoint to specific location.- Specified by:
setValue
in 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:DebuggerColumn
Get default width of the column in pixels. If it is not known, this method should return -1.- Specified by:
getDefaultWidth
in interfaceDebuggerColumn<java.lang.Boolean>
- Returns:
- default width of the column in pixels or -1 if it is not known
-
-