From 0cd4c8706f242f7a5d625e5b88509fc646859807 Mon Sep 17 00:00:00 2001 From: John Hoford Date: Fri, 18 Jan 2013 08:59:35 -0800 Subject: refactor the filter/editor relationship Change-Id: I1f9a735166c28c65734fbb85201774fb6f664076 --- .../filtershow/editors/EditorManager.java | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src_pd/com/android/gallery3d/filtershow/editors/EditorManager.java (limited to 'src_pd/com/android/gallery3d') 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 000000000..0c73183b2 --- /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()); + } + +} -- cgit v1.2.3