Lines Matching refs:delegate

44  * by calls to methods of the same name in this delegate class.
63 // ---- delegate manager ----
67 // ---- delegate helper data ----
72 // ---- delegate data ----
205 * Returns the {@link Xfermode} delegate or null if none have been set
207 * @return the delegate or null.
214 * Returns the {@link ColorFilter} delegate or null if none have been set
216 * @return the delegate or null.
223 * Returns the {@link Shader} delegate or null if none have been set
225 * @return the delegate or null.
232 * Returns the {@link MaskFilter} delegate or null if none have been set
234 * @return the delegate or null.
241 * Returns the {@link Rasterizer} delegate or null if none have been set
243 * @return the delegate or null.
253 // get the delegate from the native int.
254 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
255 if (delegate == null) {
259 return delegate.mFlags;
266 // get the delegate from the native int.
267 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
268 if (delegate == null) {
272 delegate.mFlags = flags;
282 // get the delegate from the native int.
283 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
284 if (delegate == null) {
288 return delegate.mHintingMode;
293 // get the delegate from the native int.
294 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
295 if (delegate == null) {
299 delegate.mHintingMode = mode;
339 // get the delegate from the native int.
340 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
341 if (delegate == null) {
345 return delegate.mColor;
350 // get the delegate from the native int.
351 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
352 if (delegate == null) {
356 delegate.mColor = color;
361 // get the delegate from the native int.
362 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
363 if (delegate == null) {
367 return delegate.getAlpha();
372 // get the delegate from the native int.
373 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
374 if (delegate == null) {
378 delegate.setAlpha(a);
383 // get the delegate from the native int.
384 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
385 if (delegate == null) {
389 return delegate.mStrokeWidth;
394 // get the delegate from the native int.
395 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
396 if (delegate == null) {
400 delegate.mStrokeWidth = width;
405 // get the delegate from the native int.
406 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
407 if (delegate == null) {
411 return delegate.mStrokeMiter;
416 // get the delegate from the native int.
417 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
418 if (delegate == null) {
422 delegate.mStrokeMiter = miter;
443 // get the delegate from the native int.
444 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
445 return delegate != null && delegate.mFontVariant == FontVariant.ELEGANT;
450 // get the delegate from the native int.
451 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
452 if (delegate == null) {
456 delegate.mFontVariant = elegant ? FontVariant.ELEGANT : FontVariant.COMPACT;
461 // get the delegate from the native int.
462 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
463 if (delegate == null) {
467 return delegate.mTextSize;
472 // get the delegate from the native int.
473 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
474 if (delegate == null) {
478 delegate.mTextSize = textSize;
479 delegate.updateFontObject();
484 // get the delegate from the native int.
485 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
486 if (delegate == null) {
490 return delegate.mTextScaleX;
495 // get the delegate from the native int.
496 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
497 if (delegate == null) {
501 delegate.mTextScaleX = scaleX;
502 delegate.updateFontObject();
507 // get the delegate from the native int.
508 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
509 if (delegate == null) {
513 return delegate.mTextSkewX;
518 // get the delegate from the native int.
519 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
520 if (delegate == null) {
524 delegate.mTextSkewX = skewX;
525 delegate.updateFontObject();
530 // get the delegate
531 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
532 if (delegate == null) {
536 if (delegate.mFonts.size() > 0) {
537 java.awt.FontMetrics javaMetrics = delegate.mFonts.get(0).mMetrics;
547 // get the delegate
548 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
549 if (delegate == null) {
553 if (delegate.mFonts.size() > 0) {
554 java.awt.FontMetrics javaMetrics = delegate.mFonts.get(0).mMetrics;
564 // get the delegate
565 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
566 if (delegate == null) {
570 return delegate.getFontMetrics(metrics);
575 // get the delegate
576 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
577 if (delegate == null) {
581 if (delegate.mFonts.size() > 0) {
582 java.awt.FontMetrics javaMetrics = delegate.mFonts.get(0).mMetrics;
601 // get the delegate
602 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
603 if (delegate == null) {
607 RectF bounds = delegate.measureText(text, index, count, null, 0, bidiFlags);
626 // get the delegate
627 Paint_Delegate delegate = sManager.getDelegate(nativePaint);
628 if (delegate == null) {
646 RectF bounds = delegate.measureText(text, start, end - start + 1, null, 0, bidiFlags);
680 // get the delegate from the native int.
681 Paint_Delegate delegate = sManager.getDelegate(paint);
682 if (delegate == null) {
686 Paint_Delegate newDelegate = new Paint_Delegate(delegate);
692 // get the delegate from the native int.
693 Paint_Delegate delegate = sManager.getDelegate(native_object);
694 if (delegate == null) {
698 delegate.reset();
703 // get the delegate from the native int.
709 // get the delegate from the native int.
720 // get the delegate from the native int.
721 Paint_Delegate delegate = sManager.getDelegate(native_object);
722 if (delegate == null) {
726 return delegate.mStyle;
731 // get the delegate from the native int.
732 Paint_Delegate delegate = sManager.getDelegate(native_object);
733 if (delegate == null) {
737 delegate.mStyle = style;
742 // get the delegate from the native int.
743 Paint_Delegate delegate = sManager.getDelegate(native_object);
744 if (delegate == null) {
748 return delegate.mCap;
753 // get the delegate from the native int.
754 Paint_Delegate delegate = sManager.getDelegate(native_object);
755 if (delegate == null) {
759 delegate.mCap = cap;
764 // get the delegate from the native int.
765 Paint_Delegate delegate = sManager.getDelegate(native_object);
766 if (delegate == null) {
770 return delegate.mJoin;
775 // get the delegate from the native int.
776 Paint_Delegate delegate = sManager.getDelegate(native_object);
777 if (delegate == null) {
781 delegate.mJoin = join;
812 // get the delegate from the native int.
813 Paint_Delegate delegate = sManager.getDelegate(native_object);
814 if (delegate == null) {
818 delegate.mShader = Shader_Delegate.getDelegate(shader);
825 // get the delegate from the native int.
826 Paint_Delegate delegate = sManager.getDelegate(native_object);
827 if (delegate == null) {
831 delegate.mColorFilter = ColorFilter_Delegate.getDelegate(filter);
834 if (delegate.mColorFilter != null && !delegate.mColorFilter.isSupported()) {
836 delegate.mColorFilter.getSupportMessage(), null, null /*data*/);
844 // get the delegate from the native int.
845 Paint_Delegate delegate = sManager.getDelegate(native_object);
846 if (delegate == null) {
850 delegate.mXfermode = Xfermode_Delegate.getDelegate(xfermode);
857 // get the delegate from the native int.
858 Paint_Delegate delegate = sManager.getDelegate(native_object);
859 if (delegate == null) {
863 delegate.mPathEffect = PathEffect_Delegate.getDelegate(effect);
870 // get the delegate from the native int.
871 Paint_Delegate delegate = sManager.getDelegate(native_object);
872 if (delegate == null) {
876 delegate.mMaskFilter = MaskFilter_Delegate.getDelegate(maskfilter);
879 if (delegate.mMaskFilter != null && !delegate.mMaskFilter.isSupported()) {
881 delegate.mMaskFilter.getSupportMessage(), null, null /*data*/);
889 // get the delegate from the native int.
890 Paint_Delegate delegate = sManager.getDelegate(native_object);
891 if (delegate == null) {
895 delegate.mTypeface = Typeface_Delegate.getDelegate(typeface);
896 delegate.mNativeTypeface = typeface;
897 delegate.updateFontObject();
903 // get the delegate from the native int.
904 Paint_Delegate delegate = sManager.getDelegate(native_object);
905 if (delegate == null) {
909 delegate.mRasterizer = Rasterizer_Delegate.getDelegate(rasterizer);
912 if (delegate.mRasterizer != null && !delegate.mRasterizer.isSupported()) {
914 delegate.mRasterizer.getSupportMessage(), null, null /*data*/);
922 // get the delegate from the native int.
923 Paint_Delegate delegate = sManager.getDelegate(native_object);
924 if (delegate == null) {
928 return delegate.mTextAlign;
933 // get the delegate from the native int.
934 Paint_Delegate delegate = sManager.getDelegate(native_object);
935 if (delegate == null) {
939 delegate.mTextAlign = align;
944 // get the delegate from the native int.
945 Paint_Delegate delegate = sManager.getDelegate(native_object);
946 if (delegate == null) {
950 delegate.setTextLocale(locale);
962 // get the delegate from the native int.
963 Paint_Delegate delegate = sManager.getDelegate(native_object);
964 if (delegate == null) {
971 assert (native_typeface == delegate.mNativeTypeface);
973 RectF bounds = delegate.measureText(text, index, count, widths, 0, bidiFlags);
999 // get the delegate from the native int.
1000 Paint_Delegate delegate = sManager.getDelegate(native_object);
1001 if (delegate == null) {
1008 assert (native_typeface == delegate.mNativeTypeface);
1010 RectF bounds = delegate.measureText(text, index, count, advances, advancesIndex, isRtl);
1072 // get the delegate from the native int.
1073 Paint_Delegate delegate = sManager.getDelegate(nativePaint);
1074 if (delegate == null) {
1079 assert (native_typeface == delegate.mNativeTypeface);
1081 delegate.measureText(text, index, count, null, 0, bidiFlags).roundOut(bounds);
1105 // ---- Private delegate/helper methods ----
1234 // get the delegate from the native int.
1235 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);
1236 if (delegate == null) {
1241 delegate.mFlags |= flagMask;
1243 delegate.mFlags &= ~flagMask;