229230231232233234235236237238239
if (displayImage != null) displayImage.dispose(); if (printerGC != null) printerGC.dispose(); if (printerTransform != null) printerTransform.dispose(); } } private static final int PAPER_MARGIN = 10; private static final int PAPER_BORDER_WIDTH = 1;
6869707172737475767778
gc.setForeground(fore); gc.drawFocus(-1, -1, 12, 12); } gc.setTransform(null); transform.dispose(); } public Point computeSize(GC gc, int wHint, int hHint, Object value) { // TODO Auto-generated method stub
6465666768697071727374
gc.drawRectangle(4, 3, 9, 9); gc.drawLine(4, 5, 13, 5); } gc.setTransform(null); transform.dispose(); } public Point computeSize(GC gc, int wHint, int hHint, Object value) {
7071727374757677787980
gc.setForeground(fore); gc.drawFocus(2, 2, 13, 12); } gc.setTransform(null); transform.dispose(); } public Point computeSize(GC gc, int wHint, int hHint, Object value) {
5960616263646566676869
gc.setForeground(fore); gc.drawFocus(-1, -1, 11, 11); } gc.setTransform(null); transform.dispose(); } public Point computeSize(GC gc, int wHint, int hHint, Object value) { // TODO Auto-generated method stub
605606607608609610611612613614615
gc.setTransform(transform); gc.drawImage(image, imageBounds.x, imageBounds.y); gc.setTransform(null); transform.dispose(); } private void paintText(GC gc, StripItem item) { if (!hasText(item)) { return;
448449450451452453454455456457458
Image image = stripItem.getImage(); gc.drawImage(image, imageBounds.x, imageBounds.y); gc.setTransform(null); transform.dispose(); } private void paintStripItemText(GC gc, StripItem stripItem) { if (!stripItem.hasText()) { return;
639640641642643644645646647648649
gc.setTransform(transform); gc.drawText(text, textBounds.x, textBounds.y, true); gc.setTransform(null); transform.dispose(); } private void paintCloseButton(GC gc, StripItem item) { Display display = getDisplay(); Image closeButtonImage = getCloseButtonImage(false);
669670671672673674675676677678679
gc.setTransform(transform); gc.drawImage(closeButtonImage, closeButtonBounds.x, closeButtonBounds.y); gc.setTransform(null); transform.dispose(); } private void paintBorder(GC gc, StripItem item) { Display display = Display.getDefault(); Color oldFore = gc.getForeground();
104105106107108109110111112113114
tr.translate((int) (-((double) bounds.width / 2 + x)), (int) (-((double) bounds.height / 2 + y))); gc.setTransform(tr); gc.drawImage(robot.getImage(), x, y); tr.dispose(); } } gc.dispose(); } });