summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.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
commit9c37635183f7908746982a191005d53f8efb71d6 (patch)
treee6ac821b75444915c60f3ece6fd4068fc26f26bb /src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java
parent2b74cb3e2fbdde0a818eca06645b4a55553e371e (diff)
downloadandroid_packages_apps_Snap-9c37635183f7908746982a191005d53f8efb71d6.tar.gz
android_packages_apps_Snap-9c37635183f7908746982a191005d53f8efb71d6.tar.bz2
android_packages_apps_Snap-9c37635183f7908746982a191005d53f8efb71d6.zip
Cleaning filters
Change-Id: I413b935f90cebdab37d3db73d7fcb0fe77a64579
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java28
1 files changed, 4 insertions, 24 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java
index e69fe3542..14307c37d 100644
--- a/src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java
+++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterNegative.java
@@ -13,33 +13,13 @@ public class ImageFilterNegative extends ImageFilter {
public FilterRepresentation getDefaultRepresentation() {
FilterRepresentation representation = new FilterDirectRepresentation("Negative");
representation.setFilterClass(ImageFilterNegative.class);
+ representation.setTextId(R.string.negative);
+ representation.setButtonId(R.id.negativeButton);
+ representation.setShowEditingControls(false);
+ representation.setShowParameterValue(false);
return representation;
}
- public boolean hasDefaultRepresentation() {
- return true;
- }
-
- @Override
- public int getButtonId() {
- return R.id.negativeButton;
- }
-
- @Override
- public int getTextId() {
- return R.string.negative;
- }
-
- @Override
- public boolean showEditingControls() {
- return false;
- }
-
- @Override
- public boolean showParameterValue() {
- return false;
- }
-
native protected void nativeApplyFilter(Bitmap bitmap, int w, int h);
@Override