+
+ if (logicSwitch != null && logicWidth > 1 && heightMiniButtons > 0 && visibleRegion.y < getPosY() + heightMiniButtons)
+ {
+ double x = getPosX();
+ double y = getPosY();
+ gc.drawLine(x, y + heightMiniButtons, x + width, y + heightMiniButtons);
+ Color c = gc.getBackground();
+ gc.setBackground(gc.getForeground());
+ BitVector bv = logicSwitch.getValues();
+ double part = width / bv.length();
+ for (int i = 0; i < bv.length(); i++)
+ {
+ double start = x + part * i;
+ if (i != 0)
+ gc.drawLine(start, y, start, y + heightMiniButtons);
+ if (bv.getMSBit(i) == Bit.ONE)
+ {
+// gc.fillRectangle(start, y, part, heightMiniButtons); // alternative, but not always visible what Bit is where
+ gc.drawLine(start, y, start + part, y + heightMiniButtons);
+ gc.drawLine(start + part, y, start, y + heightMiniButtons);
+ }
+ }
+ gc.setBackground(c);
+ }