/** * Turns off xor mode. */ public void xorOff() { offscreen.setPaintMode(); }
@Override public void setPaintMode() { groupG2D.setPaintMode(); alphaG2D.setPaintMode(); }
public void setPaintMode() { delegate.setPaintMode(); }
static void renderSplashFrame(Graphics2D g) { g.setComposite(AlphaComposite.Clear); g.fillRect(120, 140, 200, 40); g.setPaintMode(); g.setColor(Color.white); g.drawString("Version 0.6.1", 560, 460); }
/** * Create the tiled image and the associated graphics object that we will be used to draw the * vector features into a raster. * * <p>Note, the graphics objects will be an instance of TiledImageGraphics which is a sub-class * of Graphics2D. */ private void createImage(Dimension gridDim) { ColorModel cm = ColorModel.getRGBdefault(); SampleModel sm = cm.createCompatibleSampleModel(gridDim.width, gridDim.height); image = new TiledImage(0, 0, gridDim.width, gridDim.height, 0, 0, sm, cm); graphics = image.createGraphics(); graphics.setPaintMode(); graphics.setComposite(AlphaComposite.Src); }
/** * Turns off xor mode. */ public void xorOff() { offscreen.setPaintMode(); }
@Override public void setPaintMode() { groupG2D.setPaintMode(); alphaG2D.setPaintMode(); }
@Override public final void setPaintMode() { xOrModeColor = null; offScreenGraphics2D.setPaintMode(); }
/** * Method used to initialize drawer to DEFAULT values */ public void initGraphics(Graphics2D _comp2D) { comp2D = _comp2D; comp2D.setPaintMode(); }
/** * Turns off xor mode. */ public void xorOff() { offscreen.setPaintMode(); }
/** {@inheritDoc} */ @Override public void setPaintMode() { g2d.setPaintMode(); }
/** * Sets the paint mode of this graphics context to overwrite the destination with this graphics context's current * color. This sets the logical pixel operation function to the paint or overwrite mode. All subsequent rendering * operations will overwrite the destination with the current color. */ public void setPaintMode() { parent.setPaintMode(); }
@Override public void setPaintMode() { g.setPaintMode(); }
@Override public void setPaintMode () { _copy.setPaintMode(); _primary.setPaintMode(); }
public void setPaintMode() { System.out.println( "setPaintMode():" ); g2D.setPaintMode(); }
public void setPaintMode() { System.out.println( "setPaintMode():" ); g2D.setPaintMode(); }
public void setPaintMode() { System.out.println( "setPaintMode():" ); g2D.setPaintMode(); }
private void teardown(Graphics2D graphics) { graphics.setPaintMode(); graphics.setColor(originalColor); graphics.setStroke(originalStroke); graphics.setFont(originalFont); }
public void show () { int frame = 20; final String[] comps = {"foo", "bar", "baz"}; graphics.setComposite(AlphaComposite.Clear); graphics.fillRect(120,140,200,40); graphics.setPaintMode(); graphics.setColor(Color.BLACK); graphics.drawString("Loading "+comps[(frame/5)%3]+"...", 120, 150); } }
private void checkReset(int type) { if (resetRaster) { raster = RasterFactory.createBandedRaster(type, width, height, 1, null); bimage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); bimage.setAccelerationPriority(1.0f); graphics = bimage.createGraphics(); graphics.setPaintMode(); graphics.setComposite(AlphaComposite.Src); resetRaster = false; } }