public SwingDirectGC(Graphics2D gc, Rectangle2D rect, int iconsize, int xOffset, int yOffset) throws KettleException { this.image = null; this.gc = gc; this.observer = null; this.stepImages = SwingGUIResource.getInstance().getStepImages(); this.entryImages = SwingGUIResource.getInstance().getEntryImages(); this.iconsize = iconsize; this.area = new Point((int) rect.getWidth(), (int) rect.getHeight()); this.xOffset = xOffset; this.yOffset = yOffset; init(); }
public SwingDirectGC(ImageObserver observer, Point area, int iconsize, int xOffset, int yOffset) throws KettleException { this.image = new BufferedImage(area.x, area.y, BufferedImage.TYPE_INT_RGB); this.gc = image.createGraphics(); this.observer = observer; this.stepImages = SwingGUIResource.getInstance().getStepImages(); this.entryImages = SwingGUIResource.getInstance().getEntryImages(); this.iconsize = iconsize; this.area = area; this.xOffset = xOffset; this.yOffset = yOffset; init(); }