Lines Matching defs:paint

85         void draw(Graphics2D graphics, Paint_Delegate paint);
231 return new GcSnapshot(this, null /*layerbounds*/, null /*paint*/, flags);
240 * @param paint the Paint information used to blit the layer back into the layers underneath
247 public GcSnapshot saveLayer(RectF layerBounds, Paint_Delegate paint, int flags) {
248 return new GcSnapshot(this, layerBounds, paint, flags);
269 * @param paint the Paint information used to blit the layer back into the layers underneath
273 private GcSnapshot(GcSnapshot previous, RectF layerBounds, Paint_Delegate paint, int flags) {
349 mLocalLayerPaint = paint;
559 * Executes the Drawable's draw method, with a null paint delegate.
571 * @param compositeOnly whether the paint is used for composite only. This is typically
575 public void draw(Drawable drawable, Paint_Delegate paint, boolean compositeOnly,
583 drawInLayer(mLayers.get(0), drawable, paint, compositeOnly, forceMode);
593 drawInLayer(layer, drawable, paint, compositeOnly, forceMode);
603 private void drawInLayer(Layer layer, Drawable drawable, Paint_Delegate paint,
606 if (paint == null) {
608 null /*paint*/, layer);
610 ColorFilter_Delegate filter = paint.getColorFilter();
613 Graphics2D configuredGraphics = createCustomGraphics(originalGraphics, paint,
615 drawOnGraphics(configuredGraphics, drawable, paint, layer);
626 // Clip is 0 so no need to paint anything.
646 imageBaseGraphics, paint, compositeOnly,
649 Graphics2D configuredGraphics = createCustomGraphics(originalGraphics, paint,
656 drawable.draw(imageGraphics, paint);
677 private void drawOnGraphics(Graphics2D g, Drawable drawable, Paint_Delegate paint,
680 drawable.draw(g, paint);
752 // using the paint information
769 private Graphics2D createCustomGraphics(Graphics2D original, Paint_Delegate paint,
776 if (paint.isAntiAliased()) {
786 customShader = setShader(g, paint);
788 g.setStroke(paint.getJavaStroke());
791 setComposite(g, paint, compositeOnly || customShader, forceMode);
796 private boolean setShader(Graphics2D g, Paint_Delegate paint) {
797 Shader_Delegate shaderDelegate = paint.getShader();
813 // if no shader, use the paint color
814 g.setColor(new Color(paint.getColor(), true /*hasAlpha*/));
819 private void setComposite(Graphics2D g, Paint_Delegate paint, boolean usePaintAlpha,
821 // the alpha for the composite. Always opaque if the normal paint color is used since
823 int alpha = usePaintAlpha ? paint.getAlpha() : 0xFF;
828 Xfermode_Delegate xfermodeDelegate = paint.getXfermode();
844 // opaque alpha channel in the paint color), then we create an AlphaComposite anyway