279280281282283284285286287288289
// setupPersonalityComp(personalityComp); scrolledComp.setContent(sheet); scrolledComp.setExpandHorizontal(true); scrolledComp.setExpandVertical(true); scrolledComp.setMinSize(sheet.computeSize(SWT.DEFAULT, SWT.DEFAULT)); } /** * @param personalityComp */
323334353637383940
e.gc.drawImage (image, 0, 0, imgBounds.width, imgBounds.height, imgBounds.x, imgBounds.y, imgBounds.width, imgBounds.height); } }); canvas.computeSize(SWT.DEFAULT, SWT.DEFAULT); return canvas; } }
333435363738394041