public Point computeSize(int wHint, int hHint, boolean changed) { javax.microedition.lcdui.Image tmp = DeviceFactory.getDevice().getNormalImage(); return new Point(tmp.getWidth(), tmp.getHeight()); }
public Dimension getPreferredSize() { Device device = DeviceFactory.getDevice(); if (device == null) { return new Dimension(0, 0); } DeviceDisplayImpl deviceDisplay = (DeviceDisplayImpl) DeviceFactory.getDevice().getDeviceDisplay(); if (deviceDisplay.isResizable()) { return new Dimension(deviceDisplay.getFullWidth(), deviceDisplay.getFullHeight()); } else { javax.microedition.lcdui.Image img = device.getNormalImage(); return new Dimension(img.getWidth(), img.getHeight()); } }
offg.drawImage(((J2SEImmutableImage) device.getNormalImage()).getImage(), 0, 0, this); drawImageInShape(offg, ((J2SEImmutableImage) device.getNormalImage()).getImage(), shape);
Device device = DeviceFactory.getDevice(); gc.drawImage(((SwtImmutableImage) device.getNormalImage()).getImage() , 0, 0); drawImageInShape( gc, ((SwtImmutableImage) device.getNormalImage()).getImage(), shape); rect = prevOverButton.getShape().getBounds(); if (rect != null) { gc.drawImage(((SwtImmutableImage) DeviceFactory.getDevice().getNormalImage()).getImage(), rect.x, rect.y, rect.width, rect.height, rect.x, rect.y, rect.width, rect.height);