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

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

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

origin: robolectric/robolectric

@Test
public void drawOval_shouldRecordOvalHistoryEvents() throws Exception {
 Canvas canvas = new Canvas();
 RectF oval0 = new RectF();
 RectF oval1 = new RectF();
 Paint paint0 = new Paint();
 paint0.setColor(Color.RED);
 Paint paint1 = new Paint();
 paint1.setColor(Color.WHITE);
 canvas.drawOval(oval0, paint0);
 canvas.drawOval(oval1, paint1);
 ShadowCanvas shadowCanvas = shadowOf(canvas);
 assertThat(shadowCanvas.getDrawnOval(0).oval).isEqualTo(oval0);
 assertThat(shadowCanvas.getDrawnOval(0).paint.getColor()).isEqualTo(Color.RED);
 assertThat(shadowCanvas.getDrawnOval(1).oval).isEqualTo(oval1);
 assertThat(shadowCanvas.getDrawnOval(1).paint.getColor()).isEqualTo(Color.WHITE);
}
org.robolectric.shadowsShadowCanvasgetDrawnOval

Popular methods of ShadowCanvas

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Github Copilot 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