x
y
Note that the receiver's line attributes do not affect this operation.
902903904905906907908909910911912
gc.drawLine(p.x-1, p.y-2, p.x-1, p.y-1); gc.drawLine(1, p.y-1, p.x-3, p.y-1); gc.setForeground(highlight); gc.drawLine(0, p.y-2, p.x-2, p.y-2); gc.drawPoint(0, p.y-1); gc.drawPoint(p.x-2, p.y-1); } else { gc.drawLine(p.x-2, p.y-1, p.x-1, p.y-1); gc.drawLine(p.x-1, 1, p.x-1, p.y-3);
910911912913914915916917918919920
{ gc.drawLine(p.x-2, p.y-1, p.x-1, p.y-1); gc.drawLine(p.x-1, 1, p.x-1, p.y-3); gc.setForeground(highlight); gc.drawLine(p.x-2, 0, p.x-2, p.y-2); gc.drawPoint(p.x-1, 0); gc.drawPoint(p.x-1, p.y-2); } break; }
911912913914915916917918919920921
gc.drawLine(p.x-2, p.y-1, p.x-1, p.y-1); gc.drawLine(p.x-1, 1, p.x-1, p.y-3); gc.setForeground(highlight); gc.drawLine(p.x-2, 0, p.x-2, p.y-2); gc.drawPoint(p.x-1, 0); gc.drawPoint(p.x-1, p.y-2); } break; } gc.dispose();
6465666768697071727374
paintListener = new PaintListener() { @Override public void paintControl( PaintEvent event ) { GC gc = event.gc; processClientDrawings( gc ); gc.drawPoint( -1, -1 ); //TODO: This is a workaround to force updates, see RAP bug 377070 } }; super.addPaintListener( paintListener ); }
7273747576777879808182
166167168169170171172173174175176
private void fixRegion(GC gc, Rectangle clArea) { gc.setForeground(color.getBorder()); /* Fill Top Left */ gc.drawPoint(2, 0); gc.drawPoint(3, 0); gc.drawPoint(1, 1); gc.drawPoint(0, 2); gc.drawPoint(0, 3);
167168169170171172173174175176177
private void fixRegion(GC gc, Rectangle clArea) { gc.setForeground(color.getBorder()); /* Fill Top Left */ gc.drawPoint(2, 0); gc.drawPoint(3, 0); gc.drawPoint(1, 1); gc.drawPoint(0, 2); gc.drawPoint(0, 3); /* Fill Top Right */
168169170171172173174175176177178
gc.setForeground(color.getBorder()); /* Fill Top Left */ gc.drawPoint(2, 0); gc.drawPoint(3, 0); gc.drawPoint(1, 1); gc.drawPoint(0, 2); gc.drawPoint(0, 3); /* Fill Top Right */ gc.drawPoint(clArea.width - 4, 0);
169170171172173174175176177178179
/* Fill Top Left */ gc.drawPoint(2, 0); gc.drawPoint(3, 0); gc.drawPoint(1, 1); gc.drawPoint(0, 2); gc.drawPoint(0, 3); /* Fill Top Right */ gc.drawPoint(clArea.width - 4, 0); gc.drawPoint(clArea.width - 3, 0);
170171172173174175176177178179180
/* Fill Top Left */ gc.drawPoint(2, 0); gc.drawPoint(3, 0); gc.drawPoint(1, 1); gc.drawPoint(0, 2); gc.drawPoint(0, 3); /* Fill Top Right */ gc.drawPoint(clArea.width - 4, 0); gc.drawPoint(clArea.width - 3, 0); gc.drawPoint(clArea.width - 2, 1);