diff options
author | Romain Guy <romainguy@google.com> | 2011-02-23 16:30:36 -0800 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2011-02-23 16:34:21 -0800 |
commit | 4a317db43d2bbc992284dd1f651751f13734d017 (patch) | |
tree | 428ef0567b08c4a37117f9735bf0007126288612 /graphics | |
parent | 68b6b1c2d1fc7be0da05eb8aeab57945b5fd24e8 (diff) | |
download | frameworks_base-4a317db43d2bbc992284dd1f651751f13734d017.zip frameworks_base-4a317db43d2bbc992284dd1f651751f13734d017.tar.gz frameworks_base-4a317db43d2bbc992284dd1f651751f13734d017.tar.bz2 |
More documentation for Canvas.drawArc()
Change-Id: I007a1db94306e05cf4e245f876aa1921f518c113
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/Canvas.java | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/graphics/java/android/graphics/Canvas.java b/graphics/java/android/graphics/Canvas.java index 136e9b4..965abe9 100644 --- a/graphics/java/android/graphics/Canvas.java +++ b/graphics/java/android/graphics/Canvas.java @@ -74,6 +74,8 @@ public class Canvas { */ public static final int DIRECTION_RTL = 1; + // This field is used to finalize the native Canvas properly + @SuppressWarnings({"UnusedDeclaration"}) private final CanvasFinalizer mFinalizer; private static class CanvasFinalizer { @@ -480,6 +482,7 @@ public class Canvas { * * @hide */ + @SuppressWarnings({"UnusedDeclaration"}) public int getNativeMatrix() { return 0; } @@ -945,10 +948,19 @@ public class Canvas { } /** - * Draw the specified arc, which will be scaled to fit inside the - * specified oval. If the sweep angle is >= 360, then the oval is drawn + * <p>Draw the specified arc, which will be scaled to fit inside the + * specified oval.</p> + * + * <p>If the start angle is negative or >= 360, the start angle is treated + * as start angle modulo 360.</p> + * + * <p>If the sweep angle is >= 360, then the oval is drawn * completely. Note that this differs slightly from SkPath::arcTo, which - * treats the sweep angle mod 360. + * treats the sweep angle modulo 360. If the sweep angle is negative, + * the sweep angle is treated as sweep angle modulo 360</p> + * + * <p>The arc is drawn clockwise. An angle of 0 degrees correspond to the + * geometric angle of 0 degrees (3 o'clock on a watch.)</p> * * @param oval The bounds of oval used to define the shape and size * of the arc |