android.graphics.MaskFilter Java Examples

The following examples show how to use android.graphics.MaskFilter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RichPolygon.java    From richmaps with Apache License 2.0 6 votes vote down vote up
RichPolygon(final int zIndex,
            final List<RichPoint> points,
            final List<List<RichPoint>> holes,
            final int strokeWidth,
            final Paint.Cap strokeCap,
            final Paint.Join strokeJoin,
            final PathEffect pathEffect,
            final MaskFilter maskFilter,
            final boolean linearGradient,
            final Integer strokeColor,
            final boolean antialias,
            final boolean closed,
            final Shader strokeShader,
            final Shader fillShader,
            final Paint.Style style,
            final Integer fillColor) {
    super(zIndex, points, strokeWidth, strokeCap, strokeJoin, pathEffect, maskFilter,
            strokeShader, linearGradient, strokeColor, antialias, closed);
    this.fillShader = fillShader;
    this.style = style;
    this.fillColor = fillColor;
    if (holes != null) {
        addHoles(holes);
    }
}
 
Example #2
Source File: RichShape.java    From richmaps with Apache License 2.0 5 votes vote down vote up
RichShape(final int zIndex,
          final List<RichPoint> points,
          final int strokeWidth,
          final Paint.Cap strokeCap,
          final Paint.Join strokeJoin,
          final PathEffect pathEffect,
          final MaskFilter maskFilter,
          final Shader strokeShader,
          final boolean linearGradient,
          final Integer strokeColor,
          final boolean antialias,
          final boolean closed) {
    this.zIndex = zIndex;
    this.strokeWidth = strokeWidth;
    this.strokeCap = strokeCap;
    this.strokeJoin = strokeJoin;
    this.pathEffect = pathEffect;
    this.maskFilter = maskFilter;
    this.strokeShader = strokeShader;
    this.linearGradient = linearGradient;
    this.strokeColor = strokeColor;
    this.antialias = antialias;
    this.closed = closed;
    if (points != null) {
        for (RichPoint point : points) {
            add(point);
        }
    }
}
 
Example #3
Source File: RichPolyline.java    From richmaps with Apache License 2.0 5 votes vote down vote up
RichPolyline(final int zIndex,
             final List<RichPoint> points,
             final int strokeWidth,
             final Paint.Cap strokeCap,
             final Paint.Join strokeJoin,
             final PathEffect pathEffect,
             final MaskFilter maskFilter,
             final Shader strokeShader,
             final boolean linearGradient,
             final Integer strokeColor,
             final boolean antialias,
             final boolean closed) {
    super(zIndex, points, strokeWidth, strokeCap, strokeJoin, pathEffect, maskFilter,
            strokeShader, linearGradient, strokeColor, antialias, closed);
}
 
Example #4
Source File: AbstractPaintAssert.java    From assertj-android with Apache License 2.0 5 votes vote down vote up
public S hasMaskFilter(MaskFilter filter) {
  isNotNull();
  MaskFilter actualFilter = actual.getMaskFilter();
  assertThat(actualFilter) //
      .overridingErrorMessage("Expected mask filter <%s> but was <%s>.", filter, actualFilter) //
      .isSameAs(filter);
  return myself;
}
 
Example #5
Source File: MaskFilterSpan.java    From PowerFileExplorer with GNU General Public License v3.0 4 votes vote down vote up
public MaskFilterSpan(MaskFilter filter) {
	mFilter = filter;
}
 
Example #6
Source File: MaskFilterSpan.java    From PowerFileExplorer with GNU General Public License v3.0 4 votes vote down vote up
public MaskFilter getMaskFilter() {
	return mFilter;
}
 
Example #7
Source File: Span.java    From Android-Spans with Apache License 2.0 4 votes vote down vote up
public static Node mask(MaskFilter filter, Object... nodes) {
    return new SpanNode(new MaskFilterSpan(filter), nodes);
}
 
Example #8
Source File: MaskFilterSpan.java    From JotaTextEditor with Apache License 2.0 4 votes vote down vote up
public MaskFilterSpan(MaskFilter filter) {
	mFilter = filter;
}
 
Example #9
Source File: MaskFilterSpan.java    From JotaTextEditor with Apache License 2.0 4 votes vote down vote up
public MaskFilter getMaskFilter() {
	return mFilter;
}
 
Example #10
Source File: MaskFilterSpan.java    From android_9.0.0_r45 with Apache License 2.0 2 votes vote down vote up
/**
 * Creates a {@link MaskFilterSpan} from a {@link MaskFilter}.
 *
 * @param filter the filter to be applied to the <code>TextPaint</code>
 */
public MaskFilterSpan(MaskFilter filter) {
    mFilter = filter;
}
 
Example #11
Source File: MaskFilterSpan.java    From android_9.0.0_r45 with Apache License 2.0 2 votes vote down vote up
/**
 * Return the mask filter for this span.
 *
 * @return the mask filter for this span
 */
public MaskFilter getMaskFilter() {
    return mFilter;
}