Tabnine Logo
ShadowCanvas.formatColorMatric
Code IndexAdd Tabnine to your IDE (free)

How to use
formatColorMatric
method
in
org.robolectric.shadows.ShadowCanvas

Best Java code snippets using org.robolectric.shadows.ShadowCanvas.formatColorMatric (Showing top 2 results out of 315)

origin: robolectric/robolectric

private void describeBitmap(Bitmap bitmap, Paint paint) {
 separateLines();
 ShadowBitmap shadowBitmap = Shadow.extract(bitmap);
 appendDescription(shadowBitmap.getDescription());
 if (paint != null) {
  ColorFilter colorFilter = paint.getColorFilter();
  if (colorFilter != null) {
   if (colorFilter instanceof ColorMatrixColorFilter) {
    ColorMatrixColorFilter colorMatrixColorFilter = (ColorMatrixColorFilter) colorFilter;
    ShadowColorMatrixColorFilter shadowColorMatrixColorFilter =
      Shadow.extract(colorMatrixColorFilter);
    ColorMatrix colorMatrix = shadowColorMatrixColorFilter.getMatrix();
    appendDescription(" with ColorMatrixColorFilter<" + formatColorMatric(colorMatrix) + ">");
   } else {
    appendDescription(" with " + colorFilter);
   }
  }
 }
}
origin: org.robolectric/shadows-framework

private void describeBitmap(Bitmap bitmap, Paint paint) {
 separateLines();
 ShadowBitmap shadowBitmap = Shadow.extract(bitmap);
 appendDescription(shadowBitmap.getDescription());
 if (paint != null) {
  ColorFilter colorFilter = paint.getColorFilter();
  if (colorFilter != null) {
   if (colorFilter instanceof ColorMatrixColorFilter) {
    ColorMatrixColorFilter colorMatrixColorFilter = (ColorMatrixColorFilter) colorFilter;
    ShadowColorMatrixColorFilter shadowColorMatrixColorFilter =
      Shadow.extract(colorMatrixColorFilter);
    ColorMatrix colorMatrix = shadowColorMatrixColorFilter.getMatrix();
    appendDescription(" with ColorMatrixColorFilter<" + formatColorMatric(colorMatrix) + ">");
   } else {
    appendDescription(" with " + colorFilter);
   }
  }
 }
}
org.robolectric.shadowsShadowCanvasformatColorMatric

Popular methods of ShadowCanvas

  • getDescription
  • getPathPaintHistoryCount
  • appendDescription
  • describeBitmap
  • separateLines
  • getArcPaintHistoryCount
  • getDrawnArc
  • getDrawnCircle
  • getDrawnLine
  • getDrawnOval
  • getDrawnPath
  • getDrawnPathPaint
  • getDrawnPath,
  • getDrawnPathPaint,
  • getDrawnRect,
  • getDrawnTextEvent,
  • getLinePaintHistoryCount,
  • getOvalPaintHistoryCount,
  • getRectPaintHistoryCount,
  • getTextHistoryCount,
  • resetCanvasHistory

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JList (javax.swing)
  • Best plugins for Eclipse
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