home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / sun / java2d / loops / ImageData.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  6.5 KB  |  442 lines

  1. package sun.java2d.loops;
  2.  
  3. import java.awt.image.ColorModel;
  4. import java.awt.image.IndexColorModel;
  5. import java.awt.image.Raster;
  6.  
  7. public final class ImageData {
  8.    private static final boolean debug = false;
  9.    private static final boolean debugTrace = false;
  10.    private int theDataPointer;
  11.    private int theLutData;
  12.    private int theType;
  13.    private int theLutDataLength;
  14.    private int thePixelStride;
  15.    private int theScanlineStride;
  16.    private int theNumChannels;
  17.    private int thePixelsPerDataUnit;
  18.    private int theBytePerChannel;
  19.    private int theXSize;
  20.    private int theYSize;
  21.    private int theXViewArea;
  22.    private int theYViewArea;
  23.    private int theDXViewArea;
  24.    private int theDYViewArea;
  25.    private int theXDeviceArea;
  26.    private int theYDeviceArea;
  27.    private int theDXDeviceArea;
  28.    private int theDYDeviceArea;
  29.    private int theXOutputArea;
  30.    private int theYOutputArea;
  31.    private int theDXOutputArea;
  32.    private int theDYOutputArea;
  33.    private int offsetX;
  34.    private int offsetY;
  35.    private int originX;
  36.    private int originY;
  37.    private double theResRatio = (double)1.0F;
  38.    private double theScaleFactorX = (double)1.0F;
  39.    private double theScaleFactorY = (double)1.0F;
  40.    private int thePlatformInfo;
  41.    private int theDeviceInfo;
  42.    private int theLockMethod;
  43.    private int theLockFunction;
  44.    private int[] naData;
  45.    private byte[] baData;
  46.    private short[] saData;
  47.    private int[] naLutData;
  48.    private int theTransparency;
  49.    private ColorModel theColorModel;
  50.    private Raster theRaster;
  51.    private int theLockCount;
  52.    private int theGrayInverseLutData;
  53.  
  54.    public ImageData() {
  55.       this.theType = 0;
  56.       this.theLockMethod = 3;
  57.    }
  58.  
  59.    public ImageData(int var1, int var2) {
  60.       this.theType = var1;
  61.       this.theLockMethod = var2;
  62.    }
  63.  
  64.    public final void setDataPointer(int var1) {
  65.       this.theDataPointer = var1;
  66.    }
  67.  
  68.    public final void setLutData(int var1) {
  69.       this.theLutData = var1;
  70.    }
  71.  
  72.    public final void setType(int var1) {
  73.       this.theType = var1;
  74.    }
  75.  
  76.    public final void setLutDataLength(int var1) {
  77.       this.theLutDataLength = var1;
  78.    }
  79.  
  80.    public final void setPixelStride(int var1) {
  81.       this.thePixelStride = var1;
  82.    }
  83.  
  84.    public final void setScanlineStride(int var1) {
  85.       this.theScanlineStride = var1;
  86.    }
  87.  
  88.    public final void setNumChannels(int var1) {
  89.       this.theNumChannels = var1;
  90.    }
  91.  
  92.    public final void setPixelsPerDataUnit(int var1) {
  93.       this.thePixelsPerDataUnit = var1;
  94.    }
  95.  
  96.    public final void setBytePerChannel(int var1) {
  97.       this.theBytePerChannel = var1;
  98.    }
  99.  
  100.    public final void setXSize(int var1) {
  101.       this.theXSize = var1;
  102.    }
  103.  
  104.    public final void setYSize(int var1) {
  105.       this.theYSize = var1;
  106.    }
  107.  
  108.    public void setViewArea(int var1, int var2, int var3, int var4) {
  109.       this.theXViewArea = var1;
  110.       this.theYViewArea = var2;
  111.       this.theDXViewArea = var3;
  112.       this.theDYViewArea = var4;
  113.    }
  114.  
  115.    public void setXViewArea(int var1) {
  116.       this.theXViewArea = var1;
  117.    }
  118.  
  119.    public void setYViewArea(int var1) {
  120.       this.theYViewArea = var1;
  121.    }
  122.  
  123.    public void setDXViewArea(int var1) {
  124.       this.theDXViewArea = var1;
  125.    }
  126.  
  127.    public void setDYViewArea(int var1) {
  128.       this.theDYViewArea = var1;
  129.    }
  130.  
  131.    public void setDeviceArea(int var1, int var2, int var3, int var4) {
  132.       this.theXDeviceArea = var1;
  133.       this.theYDeviceArea = var2;
  134.       this.theDXDeviceArea = var3;
  135.       this.theDYDeviceArea = var4;
  136.    }
  137.  
  138.    public void setXDeviceArea(int var1) {
  139.       this.theXDeviceArea = var1;
  140.    }
  141.  
  142.    public void setYDeviceArea(int var1) {
  143.       this.theYDeviceArea = var1;
  144.    }
  145.  
  146.    public void setDXDeviceArea(int var1) {
  147.       this.theDXDeviceArea = var1;
  148.    }
  149.  
  150.    public void setDYDeviceArea(int var1) {
  151.       this.theDYDeviceArea = var1;
  152.    }
  153.  
  154.    public void moveOutputArea(int var1, int var2) {
  155.       this.theXOutputArea += var1;
  156.       this.theYOutputArea += var2;
  157.       this.theDXOutputArea -= var1;
  158.       this.theDYOutputArea -= var2;
  159.    }
  160.  
  161.    public void setOutputArea(int var1, int var2, int var3, int var4) {
  162.       this.theXOutputArea = var1;
  163.       this.theYOutputArea = var2;
  164.       this.theDXOutputArea = var3;
  165.       this.theDYOutputArea = var4;
  166.    }
  167.  
  168.    public void setXOutputArea(int var1) {
  169.       this.theXOutputArea = var1;
  170.    }
  171.  
  172.    public void setYOutputArea(int var1) {
  173.       this.theYOutputArea = var1;
  174.    }
  175.  
  176.    public void setDXOutputArea(int var1) {
  177.       this.theDXOutputArea = var1;
  178.    }
  179.  
  180.    public void setDYOutputArea(int var1) {
  181.       this.theDYOutputArea = var1;
  182.    }
  183.  
  184.    public final void setTransparency(int var1) {
  185.       this.theTransparency = var1;
  186.    }
  187.  
  188.    public final void setColorModel(ColorModel var1) {
  189.       this.theColorModel = var1;
  190.    }
  191.  
  192.    public final void setRaster(Raster var1) {
  193.       this.theRaster = var1;
  194.    }
  195.  
  196.    public final void setLockMethod(int var1) {
  197.       this.theLockMethod = var1;
  198.    }
  199.  
  200.    public final void setPlatformInfo(int var1) {
  201.       this.thePlatformInfo = var1;
  202.    }
  203.  
  204.    public final void setIntDataArray(int[] var1) {
  205.       this.naData = var1;
  206.    }
  207.  
  208.    public final void setByteDataArray(byte[] var1) {
  209.       this.baData = var1;
  210.    }
  211.  
  212.    public final void setShortDataArray(short[] var1) {
  213.       this.saData = var1;
  214.    }
  215.  
  216.    public final void setIntLutDataArray(int[] var1) {
  217.       this.naLutData = var1;
  218.    }
  219.  
  220.    public final void setOffsetX(int var1) {
  221.       this.offsetX = var1;
  222.    }
  223.  
  224.    public final void setOffsetY(int var1) {
  225.       this.offsetY = var1;
  226.    }
  227.  
  228.    public final void setOriginX(int var1) {
  229.       this.originX = var1;
  230.    }
  231.  
  232.    public final void setOriginY(int var1) {
  233.       this.originY = var1;
  234.    }
  235.  
  236.    public final void setResRatio(double var1) {
  237.       this.theResRatio = var1;
  238.    }
  239.  
  240.    public final void setScaleFactorX(double var1) {
  241.       this.theScaleFactorX = var1;
  242.    }
  243.  
  244.    public final void setScaleFactorY(double var1) {
  245.       this.theScaleFactorY = var1;
  246.    }
  247.  
  248.    public final void setGrayInverseLutData(int var1) {
  249.       this.theGrayInverseLutData = var1;
  250.    }
  251.  
  252.    public final int getData() {
  253.       return this.theDataPointer;
  254.    }
  255.  
  256.    public final int getDataPointer() {
  257.       return this.theDataPointer;
  258.    }
  259.  
  260.    public final int getLutData() {
  261.       return this.theLutData;
  262.    }
  263.  
  264.    public final int getType() {
  265.       return this.theType;
  266.    }
  267.  
  268.    public final int getLutDataLength() {
  269.       return this.theLutDataLength;
  270.    }
  271.  
  272.    public final int getPixelStride() {
  273.       return this.thePixelStride;
  274.    }
  275.  
  276.    public final int getScanlineStride() {
  277.       return this.theScanlineStride;
  278.    }
  279.  
  280.    public final int getNumChannels() {
  281.       return this.theNumChannels;
  282.    }
  283.  
  284.    public final int getPixelsPerDataUnit() {
  285.       return this.thePixelsPerDataUnit;
  286.    }
  287.  
  288.    public final int getBytePerChannel() {
  289.       return this.theBytePerChannel;
  290.    }
  291.  
  292.    public final int getXSize() {
  293.       return this.theXSize;
  294.    }
  295.  
  296.    public final int getYSize() {
  297.       return this.theYSize;
  298.    }
  299.  
  300.    public int getXViewArea() {
  301.       return this.theXViewArea;
  302.    }
  303.  
  304.    public int getYViewArea() {
  305.       return this.theYViewArea;
  306.    }
  307.  
  308.    public int getDXViewArea() {
  309.       return this.theDXViewArea;
  310.    }
  311.  
  312.    public int getDYViewArea() {
  313.       return this.theDYViewArea;
  314.    }
  315.  
  316.    public int getXDeviceArea() {
  317.       return this.theXDeviceArea;
  318.    }
  319.  
  320.    public int getYDeviceArea() {
  321.       return this.theYDeviceArea;
  322.    }
  323.  
  324.    public int getDXDeviceArea() {
  325.       return this.theDXDeviceArea;
  326.    }
  327.  
  328.    public int getDYDeviceArea() {
  329.       return this.theDYDeviceArea;
  330.    }
  331.  
  332.    public int getXOutputArea() {
  333.       return this.theXOutputArea;
  334.    }
  335.  
  336.    public int getYOutputArea() {
  337.       return this.theYOutputArea;
  338.    }
  339.  
  340.    public int getDXOutputArea() {
  341.       return this.theDXOutputArea;
  342.    }
  343.  
  344.    public int getDYOutputArea() {
  345.       return this.theDYOutputArea;
  346.    }
  347.  
  348.    public final int getXView() {
  349.       return this.getXOutputArea();
  350.    }
  351.  
  352.    public final int getYView() {
  353.       return this.getYOutputArea();
  354.    }
  355.  
  356.    public final int getDXView() {
  357.       return this.getDXOutputArea();
  358.    }
  359.  
  360.    public final int getDYView() {
  361.       return this.getDYOutputArea();
  362.    }
  363.  
  364.    public final int getLockMethod() {
  365.       return this.theLockMethod;
  366.    }
  367.  
  368.    public final int getPlatformInfo() {
  369.       return this.thePlatformInfo;
  370.    }
  371.  
  372.    public final int[] getIntDataArray() {
  373.       return this.naData;
  374.    }
  375.  
  376.    public final byte[] getByteDataArray() {
  377.       return this.baData;
  378.    }
  379.  
  380.    public final short[] getShortDataArray() {
  381.       return this.saData;
  382.    }
  383.  
  384.    public final int[] getIntLutDataArray() {
  385.       return this.naLutData;
  386.    }
  387.  
  388.    public final int getTransparency() {
  389.       return this.theTransparency;
  390.    }
  391.  
  392.    public final ColorModel getColorModel() {
  393.       return this.theColorModel;
  394.    }
  395.  
  396.    public final Raster getRaster() {
  397.       return this.theRaster;
  398.    }
  399.  
  400.    public final int getOffsetX() {
  401.       return this.offsetX;
  402.    }
  403.  
  404.    public final int getOffsetY() {
  405.       return this.offsetY;
  406.    }
  407.  
  408.    public final int getGrayInverseLutData() {
  409.       return this.theGrayInverseLutData;
  410.    }
  411.  
  412.    public final boolean amILocked() {
  413.       return 0 < this.theLockCount;
  414.    }
  415.  
  416.    public final void incLockCount() {
  417.       ++this.theLockCount;
  418.    }
  419.  
  420.    public final void decLockCount() {
  421.       if (this.theLockCount > 0) {
  422.          --this.theLockCount;
  423.       }
  424.  
  425.    }
  426.  
  427.    public void printContent() {
  428.    }
  429.  
  430.    private static native void initIDs();
  431.  
  432.    public static native boolean isAllOpaqueGrayICM(IndexColorModel var0);
  433.  
  434.    public static native void allocNativeICMData(IndexColorModel var0, int[] var1, int var2, boolean var3);
  435.  
  436.    public static native void freeNativeICMData(IndexColorModel var0);
  437.  
  438.    static {
  439.       initIDs();
  440.    }
  441. }
  442.