Lines Matching defs:delegate

45  * by calls to methods of the same name in this delegate class.
61 // ---- delegate manager ----
65 // ---- delegate helper data ----
67 // ---- delegate data ----
79 * Returns the native delegate associated to a given {@link Bitmap_Delegate} object.
86 * Returns the native delegate associated to a given an int referencing a {@link Bitmap} object.
119 // create a delegate with the content of the file.
120 Bitmap_Delegate delegate = new Bitmap_Delegate(ImageIO.read(input), Config.ARGB_8888);
122 return createBitmap(delegate, createFlags, density.getDpiValue());
152 // create a delegate with the content of the stream.
153 Bitmap_Delegate delegate = new Bitmap_Delegate(ImageIO.read(input), Config.ARGB_8888);
155 return createBitmap(delegate, createFlags, density.getDpiValue());
184 // create a delegate with the given image.
185 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888);
187 return createBitmap(delegate, createFlags, density.getDpiValue());
191 * Returns the {@link BufferedImage} used by the delegate of the given {@link Bitmap}.
194 // get the delegate from the native int.
195 Bitmap_Delegate delegate = sManager.getDelegate(bitmap.mNativeBitmap);
196 if (delegate == null) {
200 return delegate.mImage;
219 * Returns the {@link BufferedImage} used by the delegate of the given {@link Bitmap}.
268 // create a delegate with the content of the stream.
269 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig));
271 return createBitmap(delegate, getPremultipliedBitmapCreateFlags(isMutable),
297 // create a delegate with the content of the stream.
298 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig));
300 return createBitmap(delegate, getPremultipliedBitmapCreateFlags(isMutable),
332 // get the delegate from the native int.
333 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
334 if (delegate == null) {
338 BufferedImage image = delegate.mImage;
352 // get the delegate from the native int.
353 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
354 if (delegate == null) {
358 return delegate.mImage.getWidth();
363 // get the delegate from the native int.
364 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
365 if (delegate == null) {
369 return delegate.mConfig.nativeInt;
374 // get the delegate from the native int.
375 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
376 if (delegate == null) {
380 return delegate.mHasAlpha;
385 // get the delegate from the native int.
386 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
387 if (delegate == null) {
391 return delegate.mHasMipMap;
396 // get the delegate from the native int.
397 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
398 if (delegate == null) {
402 return delegate.mImage.getRGB(x, y);
408 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
409 if (delegate == null) {
413 delegate.getImage().getRGB(x, y, width, height, pixels, offset, stride);
419 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
420 if (delegate == null) {
424 delegate.getImage().setRGB(x, y, color);
430 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
431 if (delegate == null) {
435 delegate.getImage().setRGB(x, y, width, height, colors, offset, stride);
440 // FIXME implement native delegate
447 // FIXME implement native delegate
454 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
455 if (delegate == null) {
459 return delegate.mGenerationId;
503 // create the delegate. The actual Bitmap config is only an alpha channel
504 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ALPHA_8);
507 return createBitmap(delegate, EnumSet.of(BitmapCreateFlags.MUTABLE),
518 // get the delegate from the native int.
519 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
520 return delegate != null && delegate.mIsPremultiplied;
526 // get the delegate from the native int.
527 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
528 if (delegate == null) {
532 delegate.mIsPremultiplied = isPremul;
538 // get the delegate from the native int.
539 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
540 if (delegate == null) {
544 delegate.mHasAlpha = hasAlpha;
549 // get the delegate from the native int.
550 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
551 if (delegate == null) {
555 delegate.mHasMipMap = hasMipMap;
602 // ---- Private delegate/helper methods ----
609 private static Bitmap createBitmap(Bitmap_Delegate delegate,
612 long nativeInt = sManager.addNewDelegate(delegate);
614 int width = delegate.mImage.getWidth();
615 int height = delegate.mImage.getHeight();