Lines Matching refs:paint

44     // The approximate size of a native paint object.
214 // These flags are always set on a new/reset paint, even if flags 0 is passed.
346 * stroke-related settings in the paint.
351 * the stroke-related fields on the paint.
357 * the paint. This mode can give unexpected results if the geometry
444 * Create a new paint with default settings.
451 * Create a new paint with the specified flags. Use setFlags() to change
452 * these after the paint is created.
469 * Create a new paint, initialized with the attributes in the specified
470 * paint parameter.
472 * @param paint Existing paint used to initialized the attributes of the
473 * new paint.
475 public Paint(Paint paint) {
476 mNativePaint = nInitWithPaint(paint.getNativeInstance());
478 setClassVariablesFrom(paint);
481 /** Restores the paint to its default settings. */
512 * Copy the fields from src into this paint. This is equivalent to calling
528 private void setClassVariablesFrom(Paint paint) {
529 mColorFilter = paint.mColorFilter;
530 mMaskFilter = paint.mMaskFilter;
531 mPathEffect = paint.mPathEffect;
532 mRasterizer = paint.mRasterizer;
533 mShader = paint.mShader;
534 mNativeShader = paint.mNativeShader;
535 mTypeface = paint.mTypeface;
536 mNativeTypeface = paint.mNativeTypeface;
537 mXfermode = paint.mXfermode;
539 mHasCompatScaling = paint.mHasCompatScaling;
540 mCompatScaling = paint.mCompatScaling;
541 mInvCompatScaling = paint.mInvCompatScaling;
543 mBidiFlags = paint.mBidiFlags;
544 mLocales = paint.mLocales;
545 mFontFeatureSettings = paint.mFontFeatureSettings;
562 * mutable objects that are attached to the paint are also up-to-date.
576 * Return the bidi flags on the paint.
578 * @return the bidi flags on the paint
586 * Set the bidi flags on the paint.
599 * Return the paint's flags. Use the Flag enum to test flag values.
601 * @return the paint's flags (see enums ending in _Flag for bit masks)
610 * Set the paint's flags. Use the Flag enum to specific flag values.
612 * @param flags The new flag bits for the paint
621 * Return the paint's hinting mode. Returns either
631 * Set the paint's hinting mode. May be either
646 * @return true if the antialias bit is set in the paint's flags.
674 * @return true if the dithering bit is set in the paint's flags.
699 * @return true if the lineartext bit is set in the paint's flags
708 * @param linearText true to set the linearText bit in the paint's flags,
720 * @return true if the subpixel bit is set in the paint's flags
729 * @param subpixelText true to set the subpixelText bit in the paint's
741 * @return true if the underlineText bit is set in the paint's flags.
750 * @param underlineText true to set the underlineText bit in the paint's
762 * @return true if the strikeThruText bit is set in the paint's flags.
771 * @param strikeThruText true to set the strikeThruText bit in the paint's
783 * @return true if the fakeBoldText bit is set in the paint's flags.
792 * @param fakeBoldText true to set the fakeBoldText bit in the paint's
819 * @param filter true to set the FILTER_BITMAP_FLAG bit in the paint's
829 * Return the paint's style, used for controlling how primitives'
833 * @return the paint's style setting (Fill, Stroke, StrokeAndFill)
840 * Set the paint's style, used for controlling how primitives'
844 * @param style The new style to set in the paint
851 * Return the paint's color. Note that the color is a 32bit value
856 * @return the paint's color (and alpha).
866 * Set the paint's color. Note that the color is an int containing alpha
871 * @param color The new color (including alpha) to set in the paint.
884 * @return the alpha component of the paint's color.
897 * @param a set the alpha component [0..255] of the paint's color.
908 * @param a The new alpha component (0..255) of the paint's color.
909 * @param r The new red component (0..255) of the paint's color.
910 * @param g The new green component (0..255) of the paint's color.
911 * @param b The new blue component (0..255) of the paint's color.
923 * @return the paint's stroke width, used whenever the paint's style is
937 * @param width set the paint's stroke width, used whenever the paint's
947 * Return the paint's stroke miter value. Used to control the behavior
950 * @return the paint's miter limit, used whenever the paint's style is
960 * Set the paint's stroke miter value. This is used to control the behavior
963 * @param miter set the miter limit on the paint, used whenever the paint's
973 * Return the paint's Cap, controlling how the start and end of stroked
976 * @return the line cap style for the paint, used whenever the paint's
984 * Set the paint's Cap.
986 * @param cap set the paint's line cap style, used whenever the paint's
994 * Return the paint's stroke join type.
996 * @return the paint's Join.
1003 * Set the paint's Join.
1005 * @param join set the paint's Join, used whenever the paint's style is
1014 * result in dst. The result is that drawing src with this paint will be
1015 * the same as drawing dst with a default paint (at least from the
1028 * Get the paint's shader object.
1030 * @return the paint's shader (or null)
1042 * @param shader May be null. the new shader to be installed in the paint
1057 * Get the paint's colorfilter (maybe be null).
1059 * @return the paint's colorfilter (maybe be null)
1066 * Set or clear the paint's colorfilter, returning the parameter.
1068 * @param filter May be null. The new filter to be installed in the paint
1081 * Get the paint's xfermode object.
1083 * @return the paint's xfermode (or null)
1095 * @param xfermode May be null. The xfermode to be installed in the paint
1108 * Get the paint's patheffect object.
1110 * @return the paint's patheffect (or null)
1122 * @param effect May be null. The patheffect to be installed in the paint
1136 * Get the paint's maskfilter object.
1138 * @return the paint's maskfilter (or null)
1151 * paint
1165 * Get the paint's typeface object.
1170 * @return the paint's typeface (or null)
1182 * @param typeface May be null. The typeface to be installed in the paint
1197 * Get the paint's rasterizer (or null).
1201 * @return the paint's rasterizer (or null)
1217 * the paint.
1242 * The alpha of the shadow will be the paint's alpha if the shadow color is
1257 * Checks if the paint has a shadow layer attached
1259 * @return true if the paint has a shadow layer attached and false otherwise
1267 * Return the paint's Align value for drawing text. This controls how the
1272 * @return the paint's Align value for drawing text.
1279 * Set the paint's text alignment. This controls how the
1284 * @param align set the paint's Align value for drawing text.
1294 * @return the paint's primary Locale used for drawing text, never null.
1304 * @return the paint's LocaleList used for drawing text, never null or empty.
1317 * @param locale the paint's locale value for drawing text, must not be null.
1355 * @param locales the paint's locale list for drawing text, must not be null or empty.
1392 * Set the paint's elegant height metrics flag. This setting selects font
1396 * @param elegant set the paint's elegant metrics flag for drawing text.
1405 * Return the paint's text size.
1407 * @return the paint's text size.
1416 * Set the paint's text size. This value must be > 0
1418 * @param textSize set the paint's text size.
1427 * Return the paint's horizontal scale factor for text. The default value
1430 * @return the paint's scale factor in X for drawing/measuring text
1439 * Set the paint's horizontal scale factor for text. The default value
1443 * @param scaleX set the paint's scale in X for drawing/measuring text.
1452 * Return the paint's horizontal skew factor for text. The default value
1455 * @return the paint's skew factor in X for drawing text.
1464 * Set the paint's horizontal skew factor for text. The default value
1467 * @param skewX set the paint's skew factor in X for drawing text.
1476 * Return the paint's letter-spacing for text. The default value
1479 * @return the paint's letter-spacing for drawing text.
1486 * Set the paint's letter-spacing for text. The default value
1490 * @param letterSpacing set the paint's letter-spacing for drawing text.
1502 * @return the paint's currently set font feature settings. Default is null.
1545 * Set a hyphen edit on the paint (causes a hyphen to be added to text when
1619 * the appropriate values given the paint's text attributes.
2381 * the paint.
2403 * in the paint.
2464 * Determine whether the typeface set on the paint has a glyph supporting the string. The
2646 private static native long nInitWithPaint(long paint);