Tabnine Logo
DiscretePathEffect
Code IndexAdd Tabnine to your IDE (free)

How to use
DiscretePathEffect
in
android.graphics

Best Java code snippets using android.graphics.DiscretePathEffect (Showing top 5 results out of 315)

origin: facebook/litho

/**
 * Applies a discrete effect to the border
 *
 * <p>Specifying two effects will compose them where the first specified effect acts as the
 * outer effect and the second acts as the inner path effect, e.g. outer(inner(path))
 *
 * @param segmentLength Length of line segments
 * @param deviation Maximum amount of deviation. Utilized value is random in the range
 *     [-deviation, deviation]
 */
public Builder discreteEffect(float segmentLength, float deviation) {
 checkNotBuilt();
 checkEffectCount();
 mPathEffects[mNumPathEffects++] = new DiscretePathEffect(segmentLength, deviation);
 return this;
}
origin: samlss/Lighter

public static Paint getDiscretePaint(){
  Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
  paint.setColor(Color.WHITE);
  paint.setStyle(Paint.Style.STROKE);
  paint.setStrokeWidth(20);
  paint.setPathEffect(new DiscretePathEffect(10, 10));
  paint.setMaskFilter(new BlurMaskFilter(20, BlurMaskFilter.Blur.SOLID));
  return paint;
}
origin: lltvcn/FreeText

  @Override
  public void onShade(TextView textView) {
    textView.setText("正");
    textView.getPaint().setPathEffect(new DiscretePathEffect(getParamProvider().getInt(0,5),getParamProvider().getInt(1,3)));
  }
});
origin: THEONE10211024/ApiDemos

mDrawables[6].getPaint().setColor(0x88FF8844);
PathEffect pe = new DiscretePathEffect(10, 4);
PathEffect pe2 = new CornerPathEffect(4);
mDrawables[3].getPaint().setPathEffect(
origin: qiubiteme/android_api_demos

mDrawables[6].getPaint().setColor(0x88FF8844);
PathEffect pe = new DiscretePathEffect(10, 4);
PathEffect pe2 = new CornerPathEffect(4);
mDrawables[3].getPaint().setPathEffect(
android.graphicsDiscretePathEffect

Most used methods

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now