x
y
Note that the receiver's line attributes do not affect this operation.
133134135136137138139140141142143
for (int y = 0; y < mapInstance.height; y++) { Location kdTreeNearest = mapInstance.kdTreeNearest(x, y); Location naiveNearest = mapInstance.naiveNearest(x, y); if (naiveNearest.equals(kdTreeNearest)) continue; gc.drawPoint(x, y); // assertEquals(naiveNearest, kdTreeNearest); } } // gc.setForeground(new Color(gc.getDevice(), 123, 0, 0));
4344454647484950515253
descriptor = AbstractUIPlugin.imageDescriptorFromPlugin(WorkbenchPlugin.PI_WORKBENCH, "icons/misc/handle.gif"); //$NON-NLS-1$ handleImage = new Image(parent.getDisplay(), 4, 4); GC context = new GC(handleImage); context.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND)); context.drawPoint(0,0); context.drawPoint(2,0); context.drawPoint(3,0); context.drawPoint(3,1); context.drawPoint(0,2); context.drawPoint(3,2);
4445464748495051525354
handleImage = new Image(parent.getDisplay(), 4, 4); GC context = new GC(handleImage); context.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND)); context.drawPoint(0,0); context.drawPoint(2,0); context.drawPoint(3,0); context.drawPoint(3,1); context.drawPoint(0,2); context.drawPoint(3,2); context.drawPoint(0,3);
4546474849505152535455
handleImage = new Image(parent.getDisplay(), 4, 4); GC context = new GC(handleImage); context.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND)); context.drawPoint(0,0); context.drawPoint(2,0); context.drawPoint(3,0); context.drawPoint(3,1); context.drawPoint(0,2); context.drawPoint(3,2); context.drawPoint(0,3); context.drawPoint(1,3);
4647484950515253545556
GC context = new GC(handleImage); context.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND)); context.drawPoint(0,0); context.drawPoint(2,0); context.drawPoint(3,0); context.drawPoint(3,1); context.drawPoint(0,2); context.drawPoint(3,2); context.drawPoint(0,3); context.drawPoint(1,3); context.drawPoint(2,3);
4748495051525354555657
context.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND)); context.drawPoint(0,0); context.drawPoint(2,0); context.drawPoint(3,0); context.drawPoint(3,1); context.drawPoint(0,2); context.drawPoint(3,2); context.drawPoint(0,3); context.drawPoint(1,3); context.drawPoint(2,3); context.drawPoint(3,3);
4849505152535455565758
context.drawPoint(0,0); context.drawPoint(2,0); context.drawPoint(3,0); context.drawPoint(3,1); context.drawPoint(0,2); context.drawPoint(3,2); context.drawPoint(0,3); context.drawPoint(1,3); context.drawPoint(2,3); context.drawPoint(3,3);
4950515253545556575859
context.drawPoint(2,0); context.drawPoint(3,0); context.drawPoint(3,1); context.drawPoint(0,2); context.drawPoint(3,2); context.drawPoint(0,3); context.drawPoint(1,3); context.drawPoint(2,3); context.drawPoint(3,3); context.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW));
5051525354555657585960
context.drawPoint(3,0); context.drawPoint(3,1); context.drawPoint(0,2); context.drawPoint(3,2); context.drawPoint(0,3); context.drawPoint(1,3); context.drawPoint(2,3); context.drawPoint(3,3); context.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW)); context.drawPoint(1,0);
5152535455565758596061
context.drawPoint(3,1); context.drawPoint(0,2); context.drawPoint(3,2); context.drawPoint(0,3); context.drawPoint(1,3); context.drawPoint(2,3); context.drawPoint(3,3); context.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW)); context.drawPoint(1,0); context.drawPoint(0,1);