home *** CD-ROM | disk | FTP | other *** search
- package sun.java2d.loops;
-
- import java.awt.image.ColorModel;
- import java.awt.image.IndexColorModel;
- import java.awt.image.Raster;
-
- public final class ImageData {
- private static final boolean debug = false;
- private static final boolean debugTrace = false;
- private int theDataPointer;
- private int theLutData;
- private int theType;
- private int theLutDataLength;
- private int thePixelStride;
- private int theScanlineStride;
- private int theNumChannels;
- private int thePixelsPerDataUnit;
- private int theBytePerChannel;
- private int theXSize;
- private int theYSize;
- private int theXViewArea;
- private int theYViewArea;
- private int theDXViewArea;
- private int theDYViewArea;
- private int theXDeviceArea;
- private int theYDeviceArea;
- private int theDXDeviceArea;
- private int theDYDeviceArea;
- private int theXOutputArea;
- private int theYOutputArea;
- private int theDXOutputArea;
- private int theDYOutputArea;
- private int offsetX;
- private int offsetY;
- private int originX;
- private int originY;
- private double theResRatio = (double)1.0F;
- private double theScaleFactorX = (double)1.0F;
- private double theScaleFactorY = (double)1.0F;
- private int thePlatformInfo;
- private int theDeviceInfo;
- private int theLockMethod;
- private int theLockFunction;
- private int[] naData;
- private byte[] baData;
- private short[] saData;
- private int[] naLutData;
- private int theTransparency;
- private ColorModel theColorModel;
- private Raster theRaster;
- private int theLockCount;
- private int theGrayInverseLutData;
-
- public ImageData() {
- this.theType = 0;
- this.theLockMethod = 3;
- }
-
- public ImageData(int var1, int var2) {
- this.theType = var1;
- this.theLockMethod = var2;
- }
-
- public final void setDataPointer(int var1) {
- this.theDataPointer = var1;
- }
-
- public final void setLutData(int var1) {
- this.theLutData = var1;
- }
-
- public final void setType(int var1) {
- this.theType = var1;
- }
-
- public final void setLutDataLength(int var1) {
- this.theLutDataLength = var1;
- }
-
- public final void setPixelStride(int var1) {
- this.thePixelStride = var1;
- }
-
- public final void setScanlineStride(int var1) {
- this.theScanlineStride = var1;
- }
-
- public final void setNumChannels(int var1) {
- this.theNumChannels = var1;
- }
-
- public final void setPixelsPerDataUnit(int var1) {
- this.thePixelsPerDataUnit = var1;
- }
-
- public final void setBytePerChannel(int var1) {
- this.theBytePerChannel = var1;
- }
-
- public final void setXSize(int var1) {
- this.theXSize = var1;
- }
-
- public final void setYSize(int var1) {
- this.theYSize = var1;
- }
-
- public void setViewArea(int var1, int var2, int var3, int var4) {
- this.theXViewArea = var1;
- this.theYViewArea = var2;
- this.theDXViewArea = var3;
- this.theDYViewArea = var4;
- }
-
- public void setXViewArea(int var1) {
- this.theXViewArea = var1;
- }
-
- public void setYViewArea(int var1) {
- this.theYViewArea = var1;
- }
-
- public void setDXViewArea(int var1) {
- this.theDXViewArea = var1;
- }
-
- public void setDYViewArea(int var1) {
- this.theDYViewArea = var1;
- }
-
- public void setDeviceArea(int var1, int var2, int var3, int var4) {
- this.theXDeviceArea = var1;
- this.theYDeviceArea = var2;
- this.theDXDeviceArea = var3;
- this.theDYDeviceArea = var4;
- }
-
- public void setXDeviceArea(int var1) {
- this.theXDeviceArea = var1;
- }
-
- public void setYDeviceArea(int var1) {
- this.theYDeviceArea = var1;
- }
-
- public void setDXDeviceArea(int var1) {
- this.theDXDeviceArea = var1;
- }
-
- public void setDYDeviceArea(int var1) {
- this.theDYDeviceArea = var1;
- }
-
- public void moveOutputArea(int var1, int var2) {
- this.theXOutputArea += var1;
- this.theYOutputArea += var2;
- this.theDXOutputArea -= var1;
- this.theDYOutputArea -= var2;
- }
-
- public void setOutputArea(int var1, int var2, int var3, int var4) {
- this.theXOutputArea = var1;
- this.theYOutputArea = var2;
- this.theDXOutputArea = var3;
- this.theDYOutputArea = var4;
- }
-
- public void setXOutputArea(int var1) {
- this.theXOutputArea = var1;
- }
-
- public void setYOutputArea(int var1) {
- this.theYOutputArea = var1;
- }
-
- public void setDXOutputArea(int var1) {
- this.theDXOutputArea = var1;
- }
-
- public void setDYOutputArea(int var1) {
- this.theDYOutputArea = var1;
- }
-
- public final void setTransparency(int var1) {
- this.theTransparency = var1;
- }
-
- public final void setColorModel(ColorModel var1) {
- this.theColorModel = var1;
- }
-
- public final void setRaster(Raster var1) {
- this.theRaster = var1;
- }
-
- public final void setLockMethod(int var1) {
- this.theLockMethod = var1;
- }
-
- public final void setPlatformInfo(int var1) {
- this.thePlatformInfo = var1;
- }
-
- public final void setIntDataArray(int[] var1) {
- this.naData = var1;
- }
-
- public final void setByteDataArray(byte[] var1) {
- this.baData = var1;
- }
-
- public final void setShortDataArray(short[] var1) {
- this.saData = var1;
- }
-
- public final void setIntLutDataArray(int[] var1) {
- this.naLutData = var1;
- }
-
- public final void setOffsetX(int var1) {
- this.offsetX = var1;
- }
-
- public final void setOffsetY(int var1) {
- this.offsetY = var1;
- }
-
- public final void setOriginX(int var1) {
- this.originX = var1;
- }
-
- public final void setOriginY(int var1) {
- this.originY = var1;
- }
-
- public final void setResRatio(double var1) {
- this.theResRatio = var1;
- }
-
- public final void setScaleFactorX(double var1) {
- this.theScaleFactorX = var1;
- }
-
- public final void setScaleFactorY(double var1) {
- this.theScaleFactorY = var1;
- }
-
- public final void setGrayInverseLutData(int var1) {
- this.theGrayInverseLutData = var1;
- }
-
- public final int getData() {
- return this.theDataPointer;
- }
-
- public final int getDataPointer() {
- return this.theDataPointer;
- }
-
- public final int getLutData() {
- return this.theLutData;
- }
-
- public final int getType() {
- return this.theType;
- }
-
- public final int getLutDataLength() {
- return this.theLutDataLength;
- }
-
- public final int getPixelStride() {
- return this.thePixelStride;
- }
-
- public final int getScanlineStride() {
- return this.theScanlineStride;
- }
-
- public final int getNumChannels() {
- return this.theNumChannels;
- }
-
- public final int getPixelsPerDataUnit() {
- return this.thePixelsPerDataUnit;
- }
-
- public final int getBytePerChannel() {
- return this.theBytePerChannel;
- }
-
- public final int getXSize() {
- return this.theXSize;
- }
-
- public final int getYSize() {
- return this.theYSize;
- }
-
- public int getXViewArea() {
- return this.theXViewArea;
- }
-
- public int getYViewArea() {
- return this.theYViewArea;
- }
-
- public int getDXViewArea() {
- return this.theDXViewArea;
- }
-
- public int getDYViewArea() {
- return this.theDYViewArea;
- }
-
- public int getXDeviceArea() {
- return this.theXDeviceArea;
- }
-
- public int getYDeviceArea() {
- return this.theYDeviceArea;
- }
-
- public int getDXDeviceArea() {
- return this.theDXDeviceArea;
- }
-
- public int getDYDeviceArea() {
- return this.theDYDeviceArea;
- }
-
- public int getXOutputArea() {
- return this.theXOutputArea;
- }
-
- public int getYOutputArea() {
- return this.theYOutputArea;
- }
-
- public int getDXOutputArea() {
- return this.theDXOutputArea;
- }
-
- public int getDYOutputArea() {
- return this.theDYOutputArea;
- }
-
- public final int getXView() {
- return this.getXOutputArea();
- }
-
- public final int getYView() {
- return this.getYOutputArea();
- }
-
- public final int getDXView() {
- return this.getDXOutputArea();
- }
-
- public final int getDYView() {
- return this.getDYOutputArea();
- }
-
- public final int getLockMethod() {
- return this.theLockMethod;
- }
-
- public final int getPlatformInfo() {
- return this.thePlatformInfo;
- }
-
- public final int[] getIntDataArray() {
- return this.naData;
- }
-
- public final byte[] getByteDataArray() {
- return this.baData;
- }
-
- public final short[] getShortDataArray() {
- return this.saData;
- }
-
- public final int[] getIntLutDataArray() {
- return this.naLutData;
- }
-
- public final int getTransparency() {
- return this.theTransparency;
- }
-
- public final ColorModel getColorModel() {
- return this.theColorModel;
- }
-
- public final Raster getRaster() {
- return this.theRaster;
- }
-
- public final int getOffsetX() {
- return this.offsetX;
- }
-
- public final int getOffsetY() {
- return this.offsetY;
- }
-
- public final int getGrayInverseLutData() {
- return this.theGrayInverseLutData;
- }
-
- public final boolean amILocked() {
- return 0 < this.theLockCount;
- }
-
- public final void incLockCount() {
- ++this.theLockCount;
- }
-
- public final void decLockCount() {
- if (this.theLockCount > 0) {
- --this.theLockCount;
- }
-
- }
-
- public void printContent() {
- }
-
- private static native void initIDs();
-
- public static native boolean isAllOpaqueGrayICM(IndexColorModel var0);
-
- public static native void allocNativeICMData(IndexColorModel var0, int[] var1, int var2, boolean var3);
-
- public static native void freeNativeICMData(IndexColorModel var0);
-
- static {
- initIDs();
- }
- }
-