modules/graphics/src/main/java/com/sun/prism/impl/BaseGraphics.java
Print this page
@@ -66,11 +66,11 @@
private Rectangle clipRect;
private int clipRectIndex;
private boolean hasPreCullingBits = false;
private float extraAlpha = 1f;
private CompositeMode compMode;
-
+ private boolean antialiasedShape = true;
private boolean depthBuffer = false;
private boolean depthTest = false;
protected Paint paint = DEFAULT_PAINT;
protected BasicStroke stroke = DEFAULT_STROKE;
@@ -262,10 +262,18 @@
// Currently it is required when depth testing is in use.
public boolean isAlphaTestShader() {
return (PrismSettings.forceAlphaTestShader || (isDepthTest() && isDepthBuffer()));
}
+ public void setAntialiasedShape(boolean aa) {
+ antialiasedShape = aa;
+ }
+
+ public boolean isAntialiasedShape() {
+ return (!PrismSettings.forceNonAntialiasedShape && antialiasedShape);
+ }
+
public void setCamera(NGCamera camera) {
this.camera = camera;
}
public Rectangle getClipRect() {