API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.image. BandedSampleModel View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      SampleModel
          ComponentSampleModel
              BandedSampleModel
Implements
Subclasses
Description
publicfinal class BandedSampleModel
  This class represents image data which is stored in a band interleaved fashion and for which each sample of a pixel occupies one data element of the DataBuffer.
See also:   
Constructors
public BandedSampleModel (int dataType, int w, int h, int numBands)
  Constructs a BandedSampleModel with the specified parameters.
public BandedSampleModel (int dataType, int w, int h, int scanlineStride, int[] bankIndices, int[] bandOffsets)
  Constructs a BandedSampleModel with the specified parameters.
Methods
Hide/Show inherited methods
public SampleModel createCompatibleSampleModel (int w, int h) [Overrides ComponentSampleModel] [Specified in SampleModel]
  Creates a new BandedSampleModel with the specified width and height.
public DataBuffer createDataBuffer () [Overrides ComponentSampleModel] [Specified in SampleModel]
  Creates a DataBuffer that corresponds to this BandedSampleModel, The DataBuffer's data type, number of banks, and size will be consistent with this BandedSampleModel.
public SampleModel createSubsetSampleModel (int[] bands) [Overrides ComponentSampleModel] [Specified in SampleModel]
  Creates a new BandedSampleModel with a subset of the bands of this BandedSampleModel.
public boolean equals (Object o) [Inherited From ComponentSampleModel]
publicfinal int getBandOffsets () [Inherited From ComponentSampleModel]
  Returns the band offset for all bands.
publicfinal int getBankIndices () [Inherited From ComponentSampleModel]
  Returns the bank indices for all bands.
public Object getDataElements (int x, int y, int w, int h, Object obj, DataBuffer data) [Inherited From SampleModel]
  Returns the pixel data for the specified rectangle of pixels in a primitive array of type TransferType.
public Object getDataElements (int x, int y, Object obj, DataBuffer data) [Overrides ComponentSampleModel] [Specified in SampleModel]
  Returns data for a single pixel in a primitive array of type TransferType.
publicfinal int getDataType () [Inherited From SampleModel]
  Returns the data type of the DataBuffer storing the pixel data.
publicfinal int getHeight () [Inherited From SampleModel]
  Returns the height in pixels.
publicfinal int getNumBands () [Inherited From SampleModel]
  Returns the total number of bands of image data.
publicfinal int getNumDataElements () [Inherited From ComponentSampleModel] [Specified in SampleModel]
  Returns the number of data elements needed to transfer a pixel with the ComponentSampleModel.getDataElements(int, int, Object, DataBuffer) and ComponentSampleModel.setDataElements(int, int, Object, DataBuffer) methods.
public int getOffset (int x, int y) [Inherited From ComponentSampleModel]
  Gets the offset for the first band of pixel (x,y).
public int getOffset (int x, int y, int b) [Inherited From ComponentSampleModel]
  Gets the offset for band b of pixel (x,y).
public double getPixel (int x, int y, double[] dArray, DataBuffer data) [Inherited From SampleModel]
  Returns the samples for the specified pixel in an array of double.
public float getPixel (int x, int y, float[] fArray, DataBuffer data) [Inherited From SampleModel]
  Returns the samples for the specified pixel in an array of float.
public int getPixel (int x, int y, int[] iArray, DataBuffer data) [Overrides ComponentSampleModel]
  Returns all samples for the specified pixel in an int array.
public double getPixels (int x, int y, int w, int h, double[] dArray, DataBuffer data) [Inherited From SampleModel]
  Returns all samples for a rectangle of pixels in a double array, one sample per array element.
public float getPixels (int x, int y, int w, int h, float[] fArray, DataBuffer data) [Inherited From SampleModel]
  Returns all samples for a rectangle of pixels in a float array, one sample per array element.
public int getPixels (int x, int y, int w, int h, int[] iArray, DataBuffer data) [Overrides ComponentSampleModel]
  Returns all samples for the specified rectangle of pixels in an int array, one sample per data array element.
publicfinal int getPixelStride () [Inherited From ComponentSampleModel]
  Returns the pixel stride of this ComponentSampleModel.
public int getSample (int x, int y, int b, DataBuffer data) [Overrides ComponentSampleModel] [Specified in SampleModel]
  Returns as int the sample in a specified band for the pixel located at (x,y).
public double getSampleDouble (int x, int y, int b, DataBuffer data) [Overrides ComponentSampleModel]
  Returns the sample in a specified band for a pixel located at (x,y) as a double.
public float getSampleFloat (int x, int y, int b, DataBuffer data) [Overrides ComponentSampleModel]
  Returns the sample in a specified band for the pixel located at (x,y) as a float.
public double getSamples (int x, int y, int w, int h, int b, double[] dArray, DataBuffer data) [Inherited From SampleModel]
  Returns the samples for a specified band for a specified rectangle of pixels in a double array, one sample per array element.
public float getSamples (int x, int y, int w, int h, int b, float[] fArray, DataBuffer data) [Inherited From SampleModel]
  Returns the samples for a specified band for the specified rectangle of pixels in a float array, one sample per array element.
public int getSamples (int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) [Overrides ComponentSampleModel]
  Returns the samples in a specified band for the specified rectangle of pixels in an int array, one sample per data array element.
publicfinal int getSampleSize () [Inherited From ComponentSampleModel] [Specified in SampleModel]
  Returns the number of bits per sample for all bands.
publicfinal int getSampleSize (int band) [Inherited From ComponentSampleModel] [Specified in SampleModel]
  Returns the number of bits per sample for the specified band.
publicfinal int getScanlineStride () [Inherited From ComponentSampleModel]
  Returns the scanline stride of this ComponentSampleModel.
public int getTransferType () [Inherited From SampleModel]
  Returns the TransferType used to transfer pixels via the getDataElements and setDataElements methods.
publicfinal int getWidth () [Inherited From SampleModel]
  Returns the width in pixels.
public int hashCode () [Overrides ComponentSampleModel]
pack-private int orderBands (int[] orig, int step) [Inherited From ComponentSampleModel]
Preserves band ordering with new step factor...
public void setDataElements (int x, int y, int w, int h, Object obj, DataBuffer data) [Inherited From SampleModel]
  Sets the data for a rectangle of pixels in the specified DataBuffer from a primitive array of type TransferType.
public void setDataElements (int x, int y, Object obj, DataBuffer data) [Overrides ComponentSampleModel] [Specified in SampleModel]
  Sets the data for a single pixel in the specified DataBuffer from a primitive array of type TransferType.
public void setPixel (int x, int y, double[] dArray, DataBuffer data) [Inherited From SampleModel]
  Sets a pixel in the DataBuffer using a double array of samples for input.
public void setPixel (int x, int y, float[] fArray, DataBuffer data) [Inherited From SampleModel]
  Sets a pixel in the DataBuffer using a float array of samples for input.
public void setPixel (int x, int y, int[] iArray, DataBuffer data) [Overrides ComponentSampleModel]
  Sets a pixel in the DataBuffer using an int array of samples for input.
public void setPixels (int x, int y, int w, int h, double[] dArray, DataBuffer data) [Inherited From SampleModel]
  Sets all samples for a rectangle of pixels from a double array containing one sample per array element.
public void setPixels (int x, int y, int w, int h, float[] fArray, DataBuffer data) [Inherited From SampleModel]
  Sets all samples for a rectangle of pixels from a float array containing one sample per array element.
public void setPixels (int x, int y, int w, int h, int[] iArray, DataBuffer data) [Overrides ComponentSampleModel]
  Sets all samples for a rectangle of pixels from an int array containing one sample per array element.
public void setSample (int x, int y, int b, double s, DataBuffer data) [Overrides ComponentSampleModel]
  Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using a double for input.
public void setSample (int x, int y, int b, float s, DataBuffer data) [Overrides ComponentSampleModel]
  Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using a float for input.
public void setSample (int x, int y, int b, int s, DataBuffer data) [Overrides ComponentSampleModel] [Specified in SampleModel]
  Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using an int for input.
public void setSamples (int x, int y, int w, int h, int b, double[] dArray, DataBuffer data) [Inherited From SampleModel]
  Sets the samples in the specified band for the specified rectangle of pixels from a double array containing one sample per array element.
public void setSamples (int x, int y, int w, int h, int b, float[] fArray, DataBuffer data) [Inherited From SampleModel]
  Sets the samples in the specified band for the specified rectangle of pixels from a float array containing one sample per array element.
public void setSamples (int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) [Overrides ComponentSampleModel]
  Sets the samples in the specified band for the specified rectangle of pixels from an int array containing one sample per data array element.
Fields
Hide/Show inherited fields
protected int bandOffsets [Inherited From ComponentSampleModel]
Offsets for all bands in data array elements.
protected int bankIndices [Inherited From ComponentSampleModel]
Index for each bank storing a band of image data.
protected int dataType [Inherited From SampleModel]
  Data type of the DataBuffer storing the pixel data.
protected int height [Inherited From SampleModel]
Height in pixels of the region of image data that this SampleModel describes.
protected int numBands [Inherited From ComponentSampleModel]
The number of bands in this ComponentSampleModel.
protected int numBanks [Inherited From ComponentSampleModel]
The number of banks in this ComponentSampleModel.
protected int pixelStride [Inherited From ComponentSampleModel]
Pixel stride (in data array elements) of the region of image data described by this ComponentSampleModel.
protected int scanlineStride [Inherited From ComponentSampleModel]
Line stride (in data array elements) of the region of image data described by this ComponentSampleModel.
protected int width [Inherited From SampleModel]
Width in pixels of the region of image data that this SampleModel describes.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar