- fixed scrolling sync issue

- fixed duplicate db entries
This commit is contained in:
ejentzsx
2015-02-04 16:20:59 +01:00
parent 310c9bbb8f
commit ac942481e3
11 changed files with 849 additions and 844 deletions

View File

@ -8,12 +8,15 @@ class TxEvent implements ITxEvent {
final ITxEvent.Type type;
Tx transaction;
final Tx transaction;
final Long time
TxEvent(ITxEvent.Type type, ITx transaction) {
super();
this.type = type;
this.transaction = transaction;
this.time = type==ITxEvent.Type.BEGIN?transaction.beginTime:transaction.endTime
}
@Override
@ -23,15 +26,11 @@ class TxEvent implements ITxEvent {
@Override
int compareTo(IWaveformEvent o) {
time.compareTo(o.getTime())
time.compareTo(o.time)
}
Long getTime(){
type==ITxEvent.Type.BEGIN?transaction.beginTime:transaction.endTime
}
@Override
@Override
String toString() {
type.toString()+"@"+getTime()+" of tx #"+transaction.id;
type.toString()+"@"+time+" of tx #"+transaction.id;
}
}