summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/FilterColorBorderRepresentation.java
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-02-11 09:55:33 -0800
committernicolasroard <nicolasroard@google.com>2013-02-11 13:49:11 -0800
commit6900cad45d240c9a54b92991538b6a33652e766c (patch)
tree1eabeedd80a3fd05c4ea607377ea277c4ce249a2 /src/com/android/gallery3d/filtershow/filters/FilterColorBorderRepresentation.java
parentcef6ad5d4a60a6e2960f7f72de624d5e60b3908a (diff)
downloadandroid_packages_apps_Gallery2-6900cad45d240c9a54b92991538b6a33652e766c.tar.gz
android_packages_apps_Gallery2-6900cad45d240c9a54b92991538b6a33652e766c.tar.bz2
android_packages_apps_Gallery2-6900cad45d240c9a54b92991538b6a33652e766c.zip
Cleaning filters
Change-Id: I413b935f90cebdab37d3db73d7fcb0fe77a64579
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/FilterColorBorderRepresentation.java')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/FilterColorBorderRepresentation.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/FilterColorBorderRepresentation.java b/src/com/android/gallery3d/filtershow/filters/FilterColorBorderRepresentation.java
index 0c0791ae4..b2664a30f 100644
--- a/src/com/android/gallery3d/filtershow/filters/FilterColorBorderRepresentation.java
+++ b/src/com/android/gallery3d/filtershow/filters/FilterColorBorderRepresentation.java
@@ -16,6 +16,9 @@
package com.android.gallery3d.filtershow.filters;
+import com.android.gallery3d.R;
+import com.android.gallery3d.filtershow.editors.ImageOnlyEditor;
+
public class FilterColorBorderRepresentation extends FilterRepresentation {
private int mColor;
private int mBorderSize;
@@ -28,6 +31,11 @@ public class FilterColorBorderRepresentation extends FilterRepresentation {
mBorderRadius = radius;
setFilterClass(ImageFilterParametricBorder.class);
setPriority(FilterRepresentation.TYPE_BORDER);
+ setTextId(R.string.borders);
+ setEditorId(ImageOnlyEditor.ID);
+ setShowEditingControls(false);
+ setShowParameterValue(false);
+ setShowUtilityPanel(false);
}
public String toString() {
@@ -74,6 +82,11 @@ public class FilterColorBorderRepresentation extends FilterRepresentation {
return true;
}
+ @Override
+ public int getTextId() {
+ return R.string.borders;
+ }
+
public int getColor() {
return mColor;
}