@Test public void isTransparentTest() { Paint paint = new AwtPaint(); Assert.assertFalse(paint.isTransparent()); paint.setColor(Color.TRANSPARENT); Assert.assertTrue(paint.isTransparent()); Bitmap bitmap = org.mapsforge.map.awt.graphics.AwtGraphicFactory.INSTANCE.createBitmap(1, 1); paint.setBitmapShader(bitmap); Assert.assertFalse(paint.isTransparent()); }
@Override public boolean isTransparent() { return this.texturePaint == null && this.color.getAlpha() == 0; }
AwtPaint implements Paint { @Override public boolean isTransparent() { return this.texturePaint == null && this.color.getAlpha() == 0; } }
AwtPaint implements Paint { @Override public boolean isTransparent() { return this.texturePaint == null && this.color.getAlpha() == 0; } AwtPaint();   AwtPaint(Paint paint); }
AwtPaint implements Paint { @Override public boolean isTransparent() { return this.texturePaint == null && this.color.getAlpha() == 0; } AwtPaint();   AwtPaint(Paint paint); @Override int getColor(); @Override float getStrokeWidth(); @Override int getTextHeight(String text); @Override int getTextWidth(String text); @Override boolean isTransparent(); @Override void setBitmapShader(Bitmap bitmap); @Override void setBitmapShaderShift(Point origin); @Override void setColor(Color color); @Override void setColor(int color); @Override void setDashPathEffect(float[] strokeDasharray); @Override void setStrokeCap(Cap cap); @Override void setStrokeJoin(Join join); @Override void setStrokeWidth(float strokeWidth); @Override void setStyle(Style style); @Override void setTextAlign(Align align); @Override void setTextSize(float textSize); @Override void setTypeface(FontFamily fontFamily, FontStyle fontStyle); void setStroke(Stroke stroke); }
AwtPaint implements Paint { @Override public boolean isTransparent() { return this.texturePaint == null && this.color.getAlpha() == 0; } AwtPaint();   AwtPaint(Paint paint); @Override int getColor(); @Override float getStrokeWidth(); @Override int getTextHeight(String text); @Override int getTextWidth(String text); @Override boolean isTransparent(); @Override void setBitmapShader(Bitmap bitmap); @Override void setBitmapShaderShift(Point origin); @Override void setColor(Color color); @Override void setColor(int color); @Override void setDashPathEffect(float[] strokeDasharray); @Override void setStrokeCap(Cap cap); @Override void setStrokeJoin(Join join); @Override void setStrokeWidth(float strokeWidth); @Override void setStyle(Style style); @Override void setTextAlign(Align align); @Override void setTextSize(float textSize); @Override void setTypeface(FontFamily fontFamily, FontStyle fontStyle); void setStroke(Stroke stroke);  }