| Modifier and Type | Field and Description |
|---|---|
| private static final double | MAX_TX_ERROR
Utilities The following methods are used by the public methods above for performing various operations |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | blitSurfaceData(SunGraphics2D sg, Region clip, SurfaceData srcData, SurfaceData dstData, int sx, int sy, int dx, int dy, int w, int h, Color bgColor)
|
| public static boolean | |
| public boolean | |
| public boolean | |
| public boolean | copyImage(SunGraphics2D sg, Image img, int x, int y, Color bgColor, ImageObserver observer)
Implements sun.
|
| public boolean | copyImage(SunGraphics2D sg, Image img, int dx, int dy, int sx, int sy, int w, int h, Color bgColor, ImageObserver observer)
Implements sun.
|
| protected BufferedImage | |
| private ColorModel | |
| protected static boolean | |
| protected static boolean | |
| public static boolean | |
| private BufferedImage | makeBufferedImage(Image img, Color bgColor, int type, int sx1, int sy1, int sx2, int sy2)
Return a non-accelerated BufferedImage of the requested type with the indicated subimage of the original image located at 0,0 in the new image. |
| protected boolean | renderImageCopy(SunGraphics2D sg, Image img, Color bgColor, int dx, int dy, int sx, int sy, int w, int h)
|
| protected boolean | renderImageScale(SunGraphics2D sg, Image img, Color bgColor, int interpType, int sx1, int sy1, int sx2, int sy2, double dx1, double dy1, double dx2, double dy2)
|
| protected void | renderImageXform(SunGraphics2D sg, Image img, AffineTransform tx, int interpType, int sx1, int sy1, int sx2, int sy2, Color bgColor)
|
| public boolean | |
| public boolean | scaleImage(SunGraphics2D sg, Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgColor)
|
| public boolean | scaleImage(SunGraphics2D sg, Image img, int x, int y, int width, int height, Color bgColor, ImageObserver observer)
Implements sun.
|
| public boolean | scaleImage(SunGraphics2D sg, Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgColor, ImageObserver observer)
Implements sun.
|
| protected boolean | scaleSurfaceData(SunGraphics2D sg, Region clipRegion, SurfaceData srcData, SurfaceData dstData, SurfaceType srcType, SurfaceType dstType, int sx1, int sy1, int sx2, int sy2, double dx1, double dy1, double dx2, double dy2)
|
| protected void | |
| protected void | transformImage(SunGraphics2D sg, Image img, AffineTransform tx, int interpType, int sx1, int sy1, int sx2, int sy2, Color bgColor)
|
| public boolean | transformImage(SunGraphics2D sg, Image img, AffineTransform atfm, ImageObserver observer)
Implements sun.
|
| public void | transformImage(SunGraphics2D sg, BufferedImage img, BufferedImageOp op, int x, int y)
Implements sun.
|
| protected boolean | tryCopyOrScale(SunGraphics2D sg, Image img, int sx1, int sy1, int sx2, int sy2, Color bgColor, int interpType, double[] coords)
|
| MAX_TX_ERROR | back to summary |
|---|---|
| private static final double MAX_TX_ERROR Utilities The following methods are used by the public methods above for performing various operations | |
| DrawImage | back to summary |
|---|---|
| public DrawImage() | |
| blitSurfaceData | back to summary |
|---|---|
| private static void blitSurfaceData(SunGraphics2D sg, Region clip, SurfaceData srcData, SurfaceData dstData, int sx, int sy, int dx, int dy, int w, int h, Color bgColor) | |
| closeToInteger | back to summary |
|---|---|
| public static boolean closeToInteger(int i, double d) | |
| copyImage | back to summary |
|---|---|
| public boolean copyImage(SunGraphics2D sg, Image img, int x, int y, Color bgColor) | |
| copyImage | back to summary |
|---|---|
| public boolean copyImage(SunGraphics2D sg, Image img, int dx, int dy, int sx, int sy, int w, int h, Color bgColor) | |
| copyImage | back to summary |
|---|---|
| public boolean copyImage(SunGraphics2D sg, Image img, int x, int y, Color bgColor, ImageObserver observer) Implements sun. | |
| copyImage | back to summary |
|---|---|
| public boolean copyImage(SunGraphics2D sg, Image img, int dx, int dy, int sx, int sy, int w, int h, Color bgColor, ImageObserver observer) Implements sun. | |
| getBufferedImage | back to summary |
|---|---|
| protected BufferedImage getBufferedImage(Image img) | |
| getTransformColorModel | back to summary |
|---|---|
| private ColorModel getTransformColorModel(SunGraphics2D sg, BufferedImage bImg, AffineTransform tx) | |
| imageReady | back to summary |
|---|---|
| protected static boolean imageReady(ToolkitImage sunimg, ImageObserver observer) | |
| isBgOperation | back to summary |
|---|---|
| protected static boolean isBgOperation(SurfaceData srcData, Color bgColor) | |
| isSimpleTranslate | back to summary |
|---|---|
| public static boolean isSimpleTranslate(SunGraphics2D sg) | |
| makeBufferedImage | back to summary |
|---|---|
| private BufferedImage makeBufferedImage(Image img, Color bgColor, int type, int sx1, int sy1, int sx2, int sy2) Return a non-accelerated BufferedImage of the requested type with the indicated subimage of the original image located at 0,0 in the new image. If a bgColor is supplied, composite the original image over that color with a SrcOver operation, otherwise make a SrcNoEa copy. Returned BufferedImage is not accelerated for two reasons:
| |
| renderImageCopy | back to summary |
|---|---|
| protected boolean renderImageCopy(SunGraphics2D sg, Image img, Color bgColor, int dx, int dy, int sx, int sy, int w, int h) | |
| renderImageScale | back to summary |
|---|---|
| protected boolean renderImageScale(SunGraphics2D sg, Image img, Color bgColor, int interpType, int sx1, int sy1, int sx2, int sy2, double dx1, double dy1, double dx2, double dy2) | |
| renderImageXform | back to summary |
|---|---|
| protected void renderImageXform(SunGraphics2D sg, Image img, AffineTransform tx, int interpType, int sx1, int sy1, int sx2, int sy2, Color bgColor) | |
| scaleImage | back to summary |
|---|---|
| public boolean scaleImage(SunGraphics2D sg, Image img, int x, int y, int width, int height, Color bgColor) | |
| scaleImage | back to summary |
|---|---|
| public boolean scaleImage(SunGraphics2D sg, Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgColor) | |
| scaleImage | back to summary |
|---|---|
| public boolean scaleImage(SunGraphics2D sg, Image img, int x, int y, int width, int height, Color bgColor, ImageObserver observer) Implements sun. | |
| scaleImage | back to summary |
|---|---|
| public boolean scaleImage(SunGraphics2D sg, Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgColor, ImageObserver observer) Implements sun. | |
| scaleSurfaceData | back to summary |
|---|---|
| protected boolean scaleSurfaceData(SunGraphics2D sg, Region clipRegion, SurfaceData srcData, SurfaceData dstData, SurfaceType srcType, SurfaceType dstType, int sx1, int sy1, int sx2, int sy2, double dx1, double dy1, double dx2, double dy2) | |
| transformImage | back to summary |
|---|---|
| protected void transformImage(SunGraphics2D sg, Image img, int x, int y, AffineTransform extraAT, int interpType) | |
| transformImage | back to summary |
|---|---|
| protected void transformImage(SunGraphics2D sg, Image img, AffineTransform tx, int interpType, int sx1, int sy1, int sx2, int sy2, Color bgColor) | |
| transformImage | back to summary |
|---|---|
| public boolean transformImage(SunGraphics2D sg, Image img, AffineTransform atfm, ImageObserver observer) Implements sun. | |
| transformImage | back to summary |
|---|---|
| public void transformImage(SunGraphics2D sg, BufferedImage img, BufferedImageOp op, int x, int y) Implements sun. | |
| tryCopyOrScale | back to summary |
|---|---|
| protected boolean tryCopyOrScale(SunGraphics2D sg, Image img, int sx1, int sy1, int sx2, int sy2, Color bgColor, int interpType, double[] coords) | |