Examples of createChild()


Examples of java.awt.image.Raster.createChild()

     int endY = YToTileY(bounds.y + bounds.height - 1);
     Raster tile;

     if ((startX == endX) && (startY == endY)) {
         tile = getTile(startX, startY);
         return tile.createChild(bounds.x, bounds.y,
                                 bounds.width, bounds.height,
                                 bounds.x, bounds.y, null);
     } else {
         // Create a WritableRaster of the desired size
         SampleModel sm =
View Full Code Here

Examples of java.awt.image.Raster.createChild()

        Raster tile = getSourceImage(0).getTile(tileX, tileY);

        if(areDataCopied) {
            // Copy the data as there is no concrete ColorModel for
            // a SinglePixelPackedSampleModel with numBands < 3.
            tile = tile.createChild(tile.getMinX(), tile.getMinY(),
                                    tile.getWidth(), tile.getHeight(),
                                    tile.getMinX(), tile.getMinY(),
                                    bandIndices);
            WritableRaster raster = createTile(tileX, tileY);
            raster.setRect(tile);
View Full Code Here

Examples of java.awt.image.Raster.createChild()

            raster.setRect(tile);

            return raster;
        } else {
            // Simply return a child of the corresponding source tile.
            return tile.createChild(tile.getMinX(), tile.getMinY(),
                                    tile.getWidth(), tile.getHeight(),
                                    tile.getMinX(), tile.getMinY(),
                                    bandIndices);
        }
    }
View Full Code Here

Examples of java.awt.image.Raster.createChild()

        }

        // For sub-banded image return appropriate band subset.
        Raster r = (Raster)tiles[tileX - minTileX][tileY - minTileY];

        return r.createChild(r.getMinX(), r.getMinY(),
                             r.getWidth(), r.getHeight(),
                             r.getMinX(), r.getMinY(),
                             bandList);
    }
View Full Code Here

Examples of java.awt.image.Raster.createChild()

                // Ensure that the source tile doesn't lie outside the
                // destination tile.
                if(!dstRect.contains(srcRect)) {
                    srcRect = dstRect.intersection(srcRect);
                    srcTile =
                        srcTile.createChild(srcTile.getMinX(),
                                            srcTile.getMinY(),
                                            srcRect.width,
                                            srcRect.height,
                                            srcRect.x,
                                            srcRect.y,
View Full Code Here

Examples of java.awt.image.Raster.createChild()

        // Save a reference to the source Raster.
        Raster source = sources[0];

        // Ensure the source Raster has the same bounds as the destination.
        if(!destRect.equals(source.getBounds())) {
            source = source.createChild(destRect.x, destRect.y,
                                        destRect.width, destRect.height,
                                        destRect.x, destRect.y,
                                        null);
        }
View Full Code Here

Examples of java.awt.image.Raster.createChild()

            Raster s = src;
            if (s.getMinX() != destRect.x ||
                s.getMinY() != destRect.y ||
                s.getWidth() != destRect.width ||
                s.getHeight() != destRect.height) {
                s = s.createChild(destRect.x, destRect.y,
                                  destRect.width, destRect.height,
                                  destRect.x, destRect.y, null);
            }
            WritableRaster d = dest;
            if (d.getMinX() != destRect.x ||
View Full Code Here

Examples of java.awt.image.WritableRaster.createChild()

            // Extend the data.
            extend(wr, im);

            // Create a child with same bounds as the target Raster.
            Raster child =
                wr.createChild(raster.getMinX(), raster.getMinY(),
                               raster.getWidth(), raster.getHeight(),
                               raster.getMinX(), raster.getMinY(), null);

            // Copy the data from the child.
            JDKWorkarounds.setRect(raster, child, 0, 0);
View Full Code Here

Examples of java.awt.image.WritableRaster.createChild()

            // Extend the data.
            extend(wr, im);

            // Create a child with same bounds as the target Raster.
            Raster child =
                wr.createChild(raster.getMinX(), raster.getMinY(),
                               raster.getWidth(), raster.getHeight(),
                               raster.getMinX(), raster.getMinY(), null);

            // Copy the data from the child.
            JDKWorkarounds.setRect(raster, child, 0, 0);
View Full Code Here

Examples of net.jmesnil.jmx.core.util.XMLMemento.createChild()

    while(i.hasNext()) {
       wrapper = connections.get(i.next());
      if( wrapper != null ) {
        descriptor = wrapper.getDescriptor();
        if( descriptor != null ) {
          IMemento child = root.createChild(CONNECTION);
          child.putString(ID, descriptor.getID());
          child.putString(URL, descriptor.getURL());
          child.putString(USERNAME, descriptor.getUserName());
          child.putString(PASSWORD, descriptor.getPassword());
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.