OSDN Git Service

add upoint
authorJohn Hoford <hoford@google.com>
Tue, 26 Feb 2013 01:39:01 +0000 (17:39 -0800)
committerJohn Hoford <hoford@google.com>
Tue, 26 Feb 2013 18:57:14 +0000 (10:57 -0800)
Change-Id: I484d2c6658e4ea06e22fa037ef2262c17b9e8d79

src/com/android/gallery3d/filtershow/PanelController.java
src/com/android/gallery3d/filtershow/imageshow/EclipseControl.java

index 5bda246..d4712e8 100644 (file)
@@ -447,6 +447,10 @@ public class PanelController implements OnClickListener {
         return MasterImage.getImage().getPreset();
     }
 
+    public void setEffectName(String ename) {
+        mUtilityPanel.setEffectName(ename);
+    }
+
     public void useFilterRepresentation(FilterRepresentation filterRepresentation) {
         if (filterRepresentation == null) {
             return;
index b4ca8e1..a2a2e85 100644 (file)
@@ -158,7 +158,24 @@ public class EclipseControl {
         }
     }
 
-    void paintPoint(Canvas canvas, float x, float y) {
+    public void paintGrayPoint(Canvas canvas, float x, float y) {
+        if (x == Float.NaN) {
+            return;
+        }
+
+        Paint paint = new Paint();
+
+        paint.setStyle(Paint.Style.FILL);
+        paint.setColor(Color.BLUE);
+        int[] colors3 = new int[] {
+                Color.GRAY, Color.LTGRAY, 0x66000000, 0 };
+        RadialGradient g = new RadialGradient(x, y, mCenterDotSize, colors3, new float[] {
+                0, .3f, .31f, 1 }, Shader.TileMode.CLAMP);
+        paint.setShader(g);
+        canvas.drawCircle(x, y, mCenterDotSize, paint);
+    }
+
+    public void paintPoint(Canvas canvas, float x, float y) {
         if (x == Float.NaN) {
             return;
         }