diff --git a/com.minres.scviewer.ui/src/com/minres/scviewer/ui/swt/Track.java b/com.minres.scviewer.ui/src/com/minres/scviewer/ui/swt/Track.java index dabe4ad..7eec62f 100644 --- a/com.minres.scviewer.ui/src/com/minres/scviewer/ui/swt/Track.java +++ b/com.minres.scviewer.ui/src/com/minres/scviewer/ui/swt/Track.java @@ -114,11 +114,11 @@ public class Track extends Composite implements IWaveformWidget, MouseListener { gc.setForeground(lineColor); gc.setFillRule(SWT.FILL_EVEN_ODD); gc.setBackground(trackBgColor); - gc.setLineWidth(1); + gc.setLineWidth(3); gc.setLineStyle(SWT.LINE_SOLID); gc.fillRectangle(new Rectangle(e.x, e.y, e.width, e.height)); - for(int offset=e.y+trackHeight/2; offset){ + @SuppressWarnings("unchecked") ISignal isignal = (ISignal) wave; SignalWidget signal = new SignalWidget(trackList, SWT.NONE); signal.setTransactions(isignal); @@ -277,11 +274,8 @@ public class TxDisplay implements PropertyChangeListener, ISelectionProvider, Mo protected void recalculateValueBounds() { if(streams.size()>0){ - Rectangle bounds = valueListScrolled.getParent().getBounds(); Point size = valueList.computeSize(SWT.DEFAULT, SWT.DEFAULT); -// System.out.println("Value calc: "+bounds+" / "+size); - int corr = (int) (2.35*valueListScrolled.getHorizontalBar().getSize().y); - valueListScrolled.setMinSize(Math.max(bounds.width, size.x), Math.max(bounds.height-corr, size.y)); + valueListScrolled.setMinSize(size); valueListScrolled.setAlwaysShowScrollBars(true); valueListScrolled.getVerticalBar().setVisible(false); } @@ -289,11 +283,8 @@ public class TxDisplay implements PropertyChangeListener, ISelectionProvider, Mo protected void recalculateNameBounds() { if(streams.size()>0){ - Rectangle bounds = nameListScrolled.getParent().getBounds(); Point size = nameList.computeSize(SWT.DEFAULT, SWT.DEFAULT); -// System.out.println("Name calc: "+bounds+" / "+size); - int corr = (int) (2.35*valueListScrolled.getHorizontalBar().getSize().y); - nameListScrolled.setMinSize(Math.max(bounds.width, size.x), Math.max(bounds.height-corr, size.y)); + nameListScrolled.setMinSize(size); nameListScrolled.setAlwaysShowScrollBars(true); nameListScrolled.getVerticalBar().setVisible(false); }