adds binary render option
This commit is contained in:
@ -18,7 +18,7 @@ public class TrackEntry {
|
||||
IWaveformStyleProvider styleProvider;
|
||||
|
||||
public enum ValueDisplay {
|
||||
DEFAULT, SIGNED, UNSIGNED
|
||||
DEFAULT, BINARY, SIGNED, UNSIGNED
|
||||
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user