x
y
Note that the receiver's line attributes do not affect this operation.
830831832833834835836837838839840
gc.drawLine(0, 0, p.x-2, 0); } else { gc.drawLine(1, 0, 1, p.y-1); gc.drawPoint(0, p.y-1); gc.setForeground(highlight); gc.drawLine(0, 0, 0, p.y-2); } break; }
843844845846847848849850851852853
{ case SWT.SHADOW_IN: gc.setForeground(highlight); if(vertical) { gc.drawPoint(p.x-1, p.y-1); gc.setForeground(shadow); gc.drawLine(0, p.y-1, p.x-2, p.y-1); } else {
849850851852853854855856857858859
gc.setForeground(shadow); gc.drawLine(0, p.y-1, p.x-2, p.y-1); } else { gc.drawPoint(p.x-1, p.y-1); gc.setForeground(shadow); gc.drawLine(p.x-1, 0, p.x-1, p.y-2); } break;
859860861862863864865866867868869
case SWT.SHADOW_OUT: gc.setForeground(shadow); if(vertical) { gc.drawPoint(p.x-1, p.y-1); gc.setForeground(highlight); gc.drawLine(0, p.y-1, p.x-2, p.y-1); } else {
865866867868869870871872873874875
gc.setForeground(highlight); gc.drawLine(0, p.y-1, p.x-2, p.y-1); } else { gc.drawPoint(p.x-1, p.y-1); gc.setForeground(highlight); gc.drawLine(p.x-1, 0, p.x-1, p.y-2); } break;
879880881882883884885886887888889
{ 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(shadow); 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);
880881882883884885886887888889890
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(shadow); 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);
888889890891892893894895896897898
{ 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(shadow); 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; case SWT.SHADOW_ETCHED_OUT:
889890891892893894895896897898899
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(shadow); 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; case SWT.SHADOW_ETCHED_OUT: gc.setForeground(shadow);
901902903904905906907908909910911
{ 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);