Lines Matching refs:delegate

45  * by calls to methods of the same name in this delegate class.
60 // ---- delegate manager ----
64 // ---- delegate helper data ----
66 // ---- delegate data ----
77 * Returns the native delegate associated to a given {@link Bitmap_Delegate} object.
84 * Returns the native delegate associated to a given an int referencing a {@link Bitmap} object.
117 // create a delegate with the content of the file.
118 Bitmap_Delegate delegate = new Bitmap_Delegate(ImageIO.read(input), Config.ARGB_8888);
120 return createBitmap(delegate, createFlags, density.getDpiValue());
151 // create a delegate with the content of the stream.
152 Bitmap_Delegate delegate = new Bitmap_Delegate(ImageIO.read(input), Config.ARGB_8888);
154 return createBitmap(delegate, createFlags, density.getDpiValue());
185 // create a delegate with the given image.
186 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888);
188 return createBitmap(delegate, createFlags, density.getDpiValue());
192 * Returns the {@link BufferedImage} used by the delegate of the given {@link Bitmap}.
195 // get the delegate from the native int.
196 Bitmap_Delegate delegate = sManager.getDelegate(bitmap.mNativeBitmap);
197 if (delegate == null) {
201 return delegate.mImage;
220 * Returns the {@link BufferedImage} used by the delegate of the given {@link Bitmap}.
269 // create a delegate with the content of the stream.
270 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig));
272 return createBitmap(delegate, getPremultipliedBitmapCreateFlags(isMutable),
298 // create a delegate with the content of the stream.
299 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig));
301 return createBitmap(delegate, getPremultipliedBitmapCreateFlags(isMutable),
326 // get the delegate from the native int.
327 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
328 if (delegate == null) {
332 BufferedImage image = delegate.mImage;
346 // get the delegate from the native int.
347 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
348 if (delegate == null) {
352 return delegate.mImage.getWidth();
357 // get the delegate from the native int.
358 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
359 if (delegate == null) {
363 return delegate.mImage.getHeight();
368 // get the delegate from the native int.
369 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
370 if (delegate == null) {
374 return delegate.mImage.getWidth();
379 // get the delegate from the native int.
380 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
381 if (delegate == null) {
385 return delegate.mConfig.nativeInt;
390 // get the delegate from the native int.
391 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
392 if (delegate == null) {
396 return delegate.mHasAlpha;
401 // get the delegate from the native int.
402 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
403 if (delegate == null) {
407 return delegate.mHasMipMap;
412 // get the delegate from the native int.
413 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
414 if (delegate == null) {
418 return delegate.mImage.getRGB(x, y);
424 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
425 if (delegate == null) {
429 delegate.getImage().getRGB(x, y, width, height, pixels, offset, stride);
435 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
436 if (delegate == null) {
440 delegate.getImage().setRGB(x, y, color);
446 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
447 if (delegate == null) {
451 delegate.getImage().setRGB(x, y, width, height, colors, offset, stride);
456 // FIXME implement native delegate
463 // FIXME implement native delegate
470 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
471 if (delegate == null) {
475 return delegate.mGenerationId;
519 // create the delegate. The actual Bitmap config is only an alpha channel
520 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ALPHA_8);
523 return createBitmap(delegate, EnumSet.of(BitmapCreateFlags.MUTABLE),
534 // get the delegate from the native int.
535 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
536 if (delegate == null) {
540 delegate.mHasAlpha = hasAlpha;
545 // get the delegate from the native int.
546 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
547 if (delegate == null) {
551 delegate.mHasMipMap = hasMipMap;
598 // ---- Private delegate/helper methods ----
605 private static Bitmap createBitmap(Bitmap_Delegate delegate,
608 int nativeInt = sManager.addNewDelegate(delegate);
610 int width = delegate.mImage.getWidth();
611 int height = delegate.mImage.getHeight();