src/share/classes/sun/java2d/SunGraphics2D.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 90,155 ****
import java.util.Map;
import java.util.Iterator;
import sun.java2d.DestSurfaceProvider;
import sun.misc.PerformanceLogger;
! import javax.tools.annotation.GenerateNativeHeader;
/**
* This is a the master Graphics2D superclass for all of the Sun
* Graphics implementations. This class relies on subclasses to
* manage the various device information, but provides an overall
* general framework for performing all of the requests in the
* Graphics and Graphics2D APIs.
*
* @author Jim Graham
*/
- /* No native methods here, but the constants are needed in the supporting JNI code */
- @GenerateNativeHeader
public final class SunGraphics2D
extends Graphics2D
implements ConstrainableGraphics, Cloneable, DestSurfaceProvider
{
/*
* Attribute States
*/
/* Paint */
! public static final int PAINT_CUSTOM = 6; /* Any other Paint object */
! public static final int PAINT_TEXTURE = 5; /* Tiled Image */
! public static final int PAINT_RAD_GRADIENT = 4; /* Color RadialGradient */
! public static final int PAINT_LIN_GRADIENT = 3; /* Color LinearGradient */
! public static final int PAINT_GRADIENT = 2; /* Color Gradient */
! public static final int PAINT_ALPHACOLOR = 1; /* Non-opaque Color */
! public static final int PAINT_OPAQUECOLOR = 0; /* Opaque Color */
/* Composite*/
! public static final int COMP_CUSTOM = 3;/* Custom Composite */
! public static final int COMP_XOR = 2;/* XOR Mode Composite */
! public static final int COMP_ALPHA = 1;/* AlphaComposite */
! public static final int COMP_ISCOPY = 0;/* simple stores into destination,
* i.e. Src, SrcOverNoEa, and other
* alpha modes which replace
* the destination.
*/
/* Stroke */
! public static final int STROKE_CUSTOM = 3; /* custom Stroke */
! public static final int STROKE_WIDE = 2; /* BasicStroke */
! public static final int STROKE_THINDASHED = 1; /* BasicStroke */
! public static final int STROKE_THIN = 0; /* BasicStroke */
/* Transform */
! public static final int TRANSFORM_GENERIC = 4; /* any 3x2 */
! public static final int TRANSFORM_TRANSLATESCALE = 3; /* scale XY */
! public static final int TRANSFORM_ANY_TRANSLATE = 2; /* non-int translate */
! public static final int TRANSFORM_INT_TRANSLATE = 1; /* int translate */
! public static final int TRANSFORM_ISIDENT = 0; /* Identity */
/* Clipping */
! public static final int CLIP_SHAPE = 2; /* arbitrary clip */
! public static final int CLIP_RECTANGULAR = 1; /* rectangular clip */
! public static final int CLIP_DEVICE = 0; /* no clipping set */
/* The following fields are used when the current Paint is a Color. */
public int eargb; // ARGB value with ExtraAlpha baked in
public int pixel; // pixel value for eargb
--- 90,153 ----
import java.util.Map;
import java.util.Iterator;
import sun.java2d.DestSurfaceProvider;
import sun.misc.PerformanceLogger;
! import java.lang.annotation.Native;
/**
* This is a the master Graphics2D superclass for all of the Sun
* Graphics implementations. This class relies on subclasses to
* manage the various device information, but provides an overall
* general framework for performing all of the requests in the
* Graphics and Graphics2D APIs.
*
* @author Jim Graham
*/
public final class SunGraphics2D
extends Graphics2D
implements ConstrainableGraphics, Cloneable, DestSurfaceProvider
{
/*
* Attribute States
*/
/* Paint */
! @Native public static final int PAINT_CUSTOM = 6; /* Any other Paint object */
! @Native public static final int PAINT_TEXTURE = 5; /* Tiled Image */
! @Native public static final int PAINT_RAD_GRADIENT = 4; /* Color RadialGradient */
! @Native public static final int PAINT_LIN_GRADIENT = 3; /* Color LinearGradient */
! @Native public static final int PAINT_GRADIENT = 2; /* Color Gradient */
! @Native public static final int PAINT_ALPHACOLOR = 1; /* Non-opaque Color */
! @Native public static final int PAINT_OPAQUECOLOR = 0; /* Opaque Color */
/* Composite*/
! @Native public static final int COMP_CUSTOM = 3;/* Custom Composite */
! @Native public static final int COMP_XOR = 2;/* XOR Mode Composite */
! @Native public static final int COMP_ALPHA = 1;/* AlphaComposite */
! @Native public static final int COMP_ISCOPY = 0;/* simple stores into destination,
* i.e. Src, SrcOverNoEa, and other
* alpha modes which replace
* the destination.
*/
/* Stroke */
! @Native public static final int STROKE_CUSTOM = 3; /* custom Stroke */
! @Native public static final int STROKE_WIDE = 2; /* BasicStroke */
! @Native public static final int STROKE_THINDASHED = 1; /* BasicStroke */
! @Native public static final int STROKE_THIN = 0; /* BasicStroke */
/* Transform */
! @Native public static final int TRANSFORM_GENERIC = 4; /* any 3x2 */
! @Native public static final int TRANSFORM_TRANSLATESCALE = 3; /* scale XY */
! @Native public static final int TRANSFORM_ANY_TRANSLATE = 2; /* non-int translate */
! @Native public static final int TRANSFORM_INT_TRANSLATE = 1; /* int translate */
! @Native public static final int TRANSFORM_ISIDENT = 0; /* Identity */
/* Clipping */
! @Native public static final int CLIP_SHAPE = 2; /* arbitrary clip */
! @Native public static final int CLIP_RECTANGULAR = 1; /* rectangular clip */
! @Native public static final int CLIP_DEVICE = 0; /* no clipping set */
/* The following fields are used when the current Paint is a Color. */
public int eargb; // ARGB value with ExtraAlpha baked in
public int pixel; // pixel value for eargb