adds binary render option

This commit is contained in:
2023-02-28 07:06:48 +01:00
parent b268b4b677
commit ec471348f6
6 changed files with 48 additions and 17 deletions

View File

@ -18,7 +18,7 @@ public class TrackEntry {
IWaveformStyleProvider styleProvider;
public enum ValueDisplay {
DEFAULT, SIGNED, UNSIGNED
DEFAULT, BINARY, SIGNED, UNSIGNED
}

View File

@ -219,6 +219,9 @@ public class SignalPainter extends TrackPainter {
case UNSIGNED:
label=Long.toString(last.toUnsignedValue());
break;
case BINARY:
label=last.toString();
break;
default:
label="h'"+last.toHexString();
}

View File

@ -617,6 +617,9 @@ public class WaveformView implements IWaveformView {
case UNSIGNED:
entry.currentValue = Long.toString(bv.toUnsignedValue());
break;
case BINARY:
entry.currentValue=bv.toString();
break;
default:
entry.currentValue = "h'" + bv.toHexString();
}