summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2015-06-19 18:01:43 -0700
committerChris Craik <ccraik@google.com>2015-06-19 18:01:44 -0700
commitc79df8e831e50abae9f781148e0aee63f6c29659 (patch)
tree0a3c4a43cf7559a628ae83b62a6b8a7d525ff6f9
parentbcca4ac4fb4fa66f2e4196437998c08e4dbed1d3 (diff)
downloadframeworks_base-c79df8e831e50abae9f781148e0aee63f6c29659.zip
frameworks_base-c79df8e831e50abae9f781148e0aee63f6c29659.tar.gz
frameworks_base-c79df8e831e50abae9f781148e0aee63f6c29659.tar.bz2
Clean up drawable filter/dither docs
bug:21342040 Change-Id: I6592bfa504516852967d82a7e7929b1aef6bff02
-rw-r--r--graphics/java/android/graphics/drawable/Drawable.java23
1 files changed, 16 insertions, 7 deletions
diff --git a/graphics/java/android/graphics/drawable/Drawable.java b/graphics/java/android/graphics/drawable/Drawable.java
index 5e62aea..7af78a7 100644
--- a/graphics/java/android/graphics/drawable/Drawable.java
+++ b/graphics/java/android/graphics/drawable/Drawable.java
@@ -270,8 +270,13 @@ public abstract class Drawable {
/**
* Set to true to have the drawable dither its colors when drawn to a device
- * with fewer than 8-bits per color component. This can improve the look on
- * those devices, but can also slow down the drawing a little.
+ * with fewer than 8-bits per color component.
+ *
+ * <p>This can improve the look on those devices, but can also slow down
+ * the drawing a little.</p>
+ *
+ * @see #isDither()
+ * @see android.graphics.Paint#setDither(boolean);
*/
public void setDither(boolean dither) {}
@@ -284,15 +289,19 @@ public abstract class Drawable {
}
/**
- * Set to true to have the drawable filter its bitmap when scaled or rotated
- * (for drawables that use bitmaps). If the drawable does not use bitmaps,
- * this call is ignored. This can improve the look when scaled or rotated,
- * but also slows down the drawing.
+ * Set to true to have the drawable filter its bitmaps with bilinear
+ * sampling when they are scaled or rotated.
+ *
+ * <p>This can improve appearance when bitmaps are rotated. If the drawable
+ * does not use bitmaps, this call is ignored.</p>
+ *
+ * @see #isFilterBitmap()
+ * @see android.graphics.Paint#setFilterBitmap(boolean);
*/
public void setFilterBitmap(boolean filter) {}
/**
- * @return whether this drawable filters its bitmap
+ * @return whether this drawable filters its bitmaps
* @see #setFilterBitmap(boolean)
*/
public boolean isFilterBitmap() {