Lines Matching refs:delegate

43  * by calls to methods of the same name in this delegate class.
54 // ---- delegate manager ----
58 // ---- delegate helper data ----
60 // ---- delegate data ----
71 * Returns the native delegate associated to a given {@link Bitmap_Delegate} object.
78 * Returns the native delegate associated to a given an int referencing a {@link Bitmap} object.
96 // create a delegate with the content of the file.
97 Bitmap_Delegate delegate = new Bitmap_Delegate(ImageIO.read(input), Config.ARGB_8888);
99 return createBitmap(delegate, isMutable, density.getDpiValue());
114 // create a delegate with the content of the stream.
115 Bitmap_Delegate delegate = new Bitmap_Delegate(ImageIO.read(input), Config.ARGB_8888);
117 return createBitmap(delegate, isMutable, density.getDpiValue());
132 // create a delegate with the given image.
133 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888);
135 return createBitmap(delegate, isMutable, density.getDpiValue());
139 * Returns the {@link BufferedImage} used by the delegate of the given {@link Bitmap}.
142 // get the delegate from the native int.
143 Bitmap_Delegate delegate = sManager.getDelegate(bitmap.mNativeBitmap);
144 if (delegate == null) {
148 return delegate.mImage;
167 * Returns the {@link BufferedImage} used by the delegate of the given {@link Bitmap}.
216 // create a delegate with the content of the stream.
217 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig));
219 return createBitmap(delegate, mutable, Bitmap.getDefaultDensity());
244 // create a delegate with the content of the stream.
245 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig));
247 return createBitmap(delegate, isMutable, Bitmap.getDefaultDensity());
270 // get the delegate from the native int.
271 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
272 if (delegate == null) {
276 BufferedImage image = delegate.mImage;
290 // get the delegate from the native int.
291 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
292 if (delegate == null) {
296 return delegate.mImage.getWidth();
301 // get the delegate from the native int.
302 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
303 if (delegate == null) {
307 return delegate.mImage.getHeight();
312 // get the delegate from the native int.
313 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
314 if (delegate == null) {
318 return delegate.mImage.getWidth();
323 // get the delegate from the native int.
324 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
325 if (delegate == null) {
329 return delegate.mConfig.nativeInt;
334 // get the delegate from the native int.
335 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
336 if (delegate == null) {
340 return delegate.mHasAlpha;
345 // get the delegate from the native int.
346 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
347 if (delegate == null) {
351 return delegate.mHasMipMap;
356 // get the delegate from the native int.
357 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
358 if (delegate == null) {
362 return delegate.mImage.getRGB(x, y);
368 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
369 if (delegate == null) {
373 delegate.getImage().getRGB(x, y, width, height, pixels, offset, stride);
379 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
380 if (delegate == null) {
384 delegate.getImage().setRGB(x, y, color);
390 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
391 if (delegate == null) {
395 delegate.getImage().setRGB(x, y, width, height, colors, offset, stride);
400 // FIXME implement native delegate
407 // FIXME implement native delegate
414 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
415 if (delegate == null) {
419 return delegate.mGenerationId;
463 // create the delegate. The actual Bitmap config is only an alpha channel
464 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ALPHA_8);
467 return createBitmap(delegate, false /*isMutable*/,
478 // get the delegate from the native int.
479 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
480 if (delegate == null) {
484 delegate.mHasAlpha = hasAlpha;
489 // get the delegate from the native int.
490 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap);
491 if (delegate == null) {
495 delegate.mHasMipMap = hasMipMap;
542 // ---- Private delegate/helper methods ----
549 private static Bitmap createBitmap(Bitmap_Delegate delegate, boolean isMutable, int density) {
551 int nativeInt = sManager.addNewDelegate(delegate);