java.awt
Class TexturePaintContext.Any

java.lang.Object
  extended byjava.awt.TexturePaintContext
      extended byjava.awt.TexturePaintContext.Any
All Implemented Interfaces:
PaintContext
Enclosing class:
TexturePaintContext

static class TexturePaintContext.Any
extends TexturePaintContext


Nested Class Summary
(package private) static class TexturePaintContext.Any
           
(package private) static class TexturePaintContext.Byte
           
(package private) static class TexturePaintContext.ByteFilter
           
(package private) static class TexturePaintContext.Int
           
 
Field Summary
static ColorModel argbmodel
           
(package private)  int bHeight
           
(package private)  int bWidth
           
(package private)  int colincx
           
(package private)  int colincxerr
           
(package private)  int colincy
           
(package private)  int colincyerr
           
(package private)  ColorModel colorModel
           
(package private)  boolean filter
           
(package private)  double incXAcross
           
(package private)  double incXDown
           
(package private)  double incYAcross
           
(package private)  double incYDown
           
(package private)  int maxWidth
           
(package private)  WritableRaster outRas
           
(package private)  int rowincx
           
(package private)  int rowincxerr
           
(package private)  int rowincy
           
(package private)  int rowincyerr
           
(package private)  WritableRaster srcRas
           
(package private)  double xOrg
           
static ColorModel xrgbmodel
           
(package private)  double yOrg
           
 
Constructor Summary
TexturePaintContext.Any(WritableRaster srcRas, ColorModel cm, AffineTransform xform, int maxw, boolean filter)
           
 
Method Summary
static int blend(int[] rgbs, int xmul, int ymul)
           
 void dispose()
          Release the resources allocated for the operation.
(package private) static void dropByteRaster(Raster outRas)
           
(package private) static void dropRaster(ColorModel cm, Raster outRas)
           
(package private) static int fractAsInt(double d)
           
 ColorModel getColorModel()
          Return the ColorModel of the output.
static PaintContext getContext(BufferedImage bufImg, AffineTransform xform, RenderingHints hints, Rectangle devBounds)
           
static ColorModel getInternedColorModel(ColorModel cm)
           
 Raster getRaster(int x, int y, int w, int h)
          Return a Raster containing the colors generated for the graphics operation.
static boolean isFilterableDCM(ColorModel cm)
           
static boolean isFilterableICM(ColorModel cm)
           
static boolean isMaskOK(int mask, boolean canbezero)
           
(package private) static WritableRaster makeByteRaster(Raster srcRas, int w, int h)
           
(package private) static WritableRaster makeRaster(ColorModel cm, Raster srcRas, int w, int h)
           
 WritableRaster makeRaster(int w, int h)
           
(package private) static double mod(double num, double den)
           
 void setRaster(int x, int y, int xerr, int yerr, int w, int h, int bWidth, int bHeight, int colincx, int colincxerr, int colincy, int colincyerr, int rowincx, int rowincxerr, int rowincy, int rowincyerr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

srcRas

WritableRaster srcRas

filter

boolean filter

xrgbmodel

public static ColorModel xrgbmodel

argbmodel

public static ColorModel argbmodel

colorModel

ColorModel colorModel

bWidth

int bWidth

bHeight

int bHeight

maxWidth

int maxWidth

outRas

WritableRaster outRas

xOrg

double xOrg

yOrg

double yOrg

incXAcross

double incXAcross

incYAcross

double incYAcross

incXDown

double incXDown

incYDown

double incYDown

colincx

int colincx

colincy

int colincy

colincxerr

int colincxerr

colincyerr

int colincyerr

rowincx

int rowincx

rowincy

int rowincy

rowincxerr

int rowincxerr

rowincyerr

int rowincyerr
Constructor Detail

TexturePaintContext.Any

public TexturePaintContext.Any(WritableRaster srcRas,
                               ColorModel cm,
                               AffineTransform xform,
                               int maxw,
                               boolean filter)
Method Detail

makeRaster

public WritableRaster makeRaster(int w,
                                 int h)
Specified by:
makeRaster in class TexturePaintContext

setRaster

public void setRaster(int x,
                      int y,
                      int xerr,
                      int yerr,
                      int w,
                      int h,
                      int bWidth,
                      int bHeight,
                      int colincx,
                      int colincxerr,
                      int colincy,
                      int colincyerr,
                      int rowincx,
                      int rowincxerr,
                      int rowincy,
                      int rowincyerr)
Specified by:
setRaster in class TexturePaintContext

getContext

public static PaintContext getContext(BufferedImage bufImg,
                                      AffineTransform xform,
                                      RenderingHints hints,
                                      Rectangle devBounds)

isFilterableICM

public static boolean isFilterableICM(ColorModel cm)

isFilterableDCM

public static boolean isFilterableDCM(ColorModel cm)

isMaskOK

public static boolean isMaskOK(int mask,
                               boolean canbezero)

getInternedColorModel

public static ColorModel getInternedColorModel(ColorModel cm)

fractAsInt

static int fractAsInt(double d)

mod

static double mod(double num,
                  double den)

dispose

public void dispose()
Release the resources allocated for the operation.

Specified by:
dispose in interface PaintContext

getColorModel

public ColorModel getColorModel()
Return the ColorModel of the output.

Specified by:
getColorModel in interface PaintContext
Returns:
the ColorModel of the output.

getRaster

public Raster getRaster(int x,
                        int y,
                        int w,
                        int h)
Return a Raster containing the colors generated for the graphics operation.

Specified by:
getRaster in interface PaintContext
Parameters:
x - the x coordinate of the area in device space for which colors are generated.
y - the y coordinate of the area in device space for which colors are generated.
w - the width of the area in device space
h - the height of the area in device space
Returns:
a Raster representing the specified rectangular area and containing the colors generated for the graphics operation.

makeRaster

static WritableRaster makeRaster(ColorModel cm,
                                 Raster srcRas,
                                 int w,
                                 int h)

dropRaster

static void dropRaster(ColorModel cm,
                       Raster outRas)

makeByteRaster

static WritableRaster makeByteRaster(Raster srcRas,
                                     int w,
                                     int h)

dropByteRaster

static void dropByteRaster(Raster outRas)

blend

public static int blend(int[] rgbs,
                        int xmul,
                        int ymul)