diff options
author | Gilles Debunne <debunne@google.com> | 2010-06-23 10:30:27 -0700 |
---|---|---|
committer | Gilles Debunne <debunne@google.com> | 2010-07-09 16:20:21 -0700 |
commit | cc3ec6cdb2b892eb29513e72d8b205acbe997b25 (patch) | |
tree | e57aa48666ef30f527898aed11ce4ce1b3110c0f /graphics/java/android | |
parent | a6935ab00923edeb5291a24b2363262b7fa37e85 (diff) | |
download | frameworks_base-cc3ec6cdb2b892eb29513e72d8b205acbe997b25.zip frameworks_base-cc3ec6cdb2b892eb29513e72d8b205acbe997b25.tar.gz frameworks_base-cc3ec6cdb2b892eb29513e72d8b205acbe997b25.tar.bz2 |
New cursor controller in TextViews.
Editable TextView now display a cursor controller under the insertion
point so that it can be precisely moved.
Change-Id: Ia2e6ddc57d249647ff6683e10e4226db3df27223
Diffstat (limited to 'graphics/java/android')
-rw-r--r-- | graphics/java/android/graphics/Canvas.java | 9 | ||||
-rw-r--r-- | graphics/java/android/graphics/Rect.java | 6 |
2 files changed, 11 insertions, 4 deletions
diff --git a/graphics/java/android/graphics/Canvas.java b/graphics/java/android/graphics/Canvas.java index a4df80c..77a1930 100644 --- a/graphics/java/android/graphics/Canvas.java +++ b/graphics/java/android/graphics/Canvas.java @@ -126,6 +126,7 @@ public class Canvas { * * @deprecated This constructor is not supported and should not be invoked. */ + @Deprecated public Canvas(GL gl) { mNativeCanvas = initGL(); mGL = gl; @@ -151,6 +152,7 @@ public class Canvas { * * @deprecated This method is not supported and should not be invoked. */ + @Deprecated public GL getGL() { return mGL; } @@ -162,6 +164,7 @@ public class Canvas { * * @deprecated This method is not supported and should not be invoked. */ + @Deprecated public static void freeGlCaches() { freeCaches(); } @@ -198,6 +201,7 @@ public class Canvas { * * @deprecated This method is not supported and should not be invoked. */ + @Deprecated public void setViewport(int width, int height) { if (mGL != null) { nativeSetViewport(mNativeCanvas, width, height); @@ -415,8 +419,8 @@ public class Canvas { * * @param sx The amount to scale in X * @param sy The amount to scale in Y - * @param px The x-coord for the pivot point (unchanged by the rotation) - * @param py The y-coord for the pivot point (unchanged by the rotation) + * @param px The x-coord for the pivot point (unchanged by the scale) + * @param py The y-coord for the pivot point (unchanged by the scale) */ public final void scale(float sx, float sy, float px, float py) { translate(px, py); @@ -1585,6 +1589,7 @@ public class Canvas { restore(); } + @Override protected void finalize() throws Throwable { super.finalize(); // If the constructor threw an exception before setting mNativeCanvas, the native finalizer diff --git a/graphics/java/android/graphics/Rect.java b/graphics/java/android/graphics/Rect.java index 98ffb8b..7830224 100644 --- a/graphics/java/android/graphics/Rect.java +++ b/graphics/java/android/graphics/Rect.java @@ -75,6 +75,7 @@ public final class Rect implements Parcelable { bottom = r.bottom; } + @Override public boolean equals(Object obj) { Rect r = (Rect) obj; if (r != null) { @@ -84,6 +85,7 @@ public final class Rect implements Parcelable { return false; } + @Override public String toString() { StringBuilder sb = new StringBuilder(32); sb.append("Rect("); sb.append(left); sb.append(", "); @@ -351,7 +353,7 @@ public final class Rect implements Parcelable { * rectangle, return true and set this rectangle to that intersection, * otherwise return false and do not change this rectangle. No check is * performed to see if either rectangle is empty. Note: To just test for - * intersection, use intersects() + * intersection, use {@link #intersects(Rect, Rect)}. * * @param left The left side of the rectangle being intersected with this * rectangle @@ -445,7 +447,7 @@ public final class Rect implements Parcelable { /** * Returns true iff the two specified rectangles intersect. In no event are * either of the rectangles modified. To record the intersection, - * use intersect() or setIntersect(). + * use {@link #intersect(Rect)} or {@link #setIntersect(Rect, Rect)}. * * @param a The first rectangle being tested for intersection * @param b The second rectangle being tested for intersection |