summaryrefslogtreecommitdiffstats
path: root/src_pd/com/android/gallery3d/filtershow
diff options
context:
space:
mode:
authorJohn Hoford <hoford@google.com>2013-01-18 08:59:35 -0800
committerJohn Hoford <hoford@google.com>2013-01-18 15:53:52 -0800
commit0cd4c8706f242f7a5d625e5b88509fc646859807 (patch)
tree83d08b8c5330037cae2fd358cc48bce33076a4c6 /src_pd/com/android/gallery3d/filtershow
parent6c95a5c97615593181365d8f320e733eb2df54e0 (diff)
downloadandroid_packages_apps_Snap-0cd4c8706f242f7a5d625e5b88509fc646859807.zip
android_packages_apps_Snap-0cd4c8706f242f7a5d625e5b88509fc646859807.tar.gz
android_packages_apps_Snap-0cd4c8706f242f7a5d625e5b88509fc646859807.tar.bz2
refactor the filter/editor relationship
Change-Id: I1f9a735166c28c65734fbb85201774fb6f664076
Diffstat (limited to 'src_pd/com/android/gallery3d/filtershow')
-rw-r--r--src_pd/com/android/gallery3d/filtershow/editors/EditorManager.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/src_pd/com/android/gallery3d/filtershow/editors/EditorManager.java b/src_pd/com/android/gallery3d/filtershow/editors/EditorManager.java
new file mode 100644
index 0000000..0c73183
--- /dev/null
+++ b/src_pd/com/android/gallery3d/filtershow/editors/EditorManager.java
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2012 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.gallery3d.filtershow.editors;
+
+import com.android.gallery3d.filtershow.EditorPlaceHolder;
+import com.android.gallery3d.filtershow.editors.BasicEditor;
+import com.android.gallery3d.filtershow.editors.EditorCurves;
+import com.android.gallery3d.filtershow.editors.EditorZoom;
+
+public class EditorManager {
+
+ public static void addEditors(EditorPlaceHolder editorPlaceHolder) {
+ editorPlaceHolder.addEditor(new EditorZoom());
+ editorPlaceHolder.addEditor(new EditorCurves());
+ editorPlaceHolder.addEditor(new BasicEditor());
+ }
+
+}