171f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard/*
271f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard * Copyright (C) 2013 The Android Open Source Project
371f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard *
471f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard * Licensed under the Apache License, Version 2.0 (the "License");
571f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard * you may not use this file except in compliance with the License.
671f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard * You may obtain a copy of the License at
771f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard *
871f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard *      http://www.apache.org/licenses/LICENSE-2.0
971f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard *
1071f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard * Unless required by applicable law or agreed to in writing, software
1171f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard * distributed under the License is distributed on an "AS IS" BASIS,
1271f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1371f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard * See the License for the specific language governing permissions and
1471f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard * limitations under the License.
1571f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard */
1671f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard
1771f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroardpackage com.android.gallery3d.filtershow.filters;
1871f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard
1971f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroardpublic class FilterDirectRepresentation extends FilterRepresentation {
2071f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard
213f0034140c165b86fbaf5c0369f39431548308e9John Hoford    @Override
223f0034140c165b86fbaf5c0369f39431548308e9John Hoford    public FilterRepresentation copy() {
233f0034140c165b86fbaf5c0369f39431548308e9John Hoford        FilterDirectRepresentation representation = new FilterDirectRepresentation(getName());
243f0034140c165b86fbaf5c0369f39431548308e9John Hoford        copyAllParameters(representation);
253f0034140c165b86fbaf5c0369f39431548308e9John Hoford        return representation;
263f0034140c165b86fbaf5c0369f39431548308e9John Hoford    }
273f0034140c165b86fbaf5c0369f39431548308e9John Hoford
283f0034140c165b86fbaf5c0369f39431548308e9John Hoford    @Override
293f0034140c165b86fbaf5c0369f39431548308e9John Hoford    protected void copyAllParameters(FilterRepresentation representation) {
303f0034140c165b86fbaf5c0369f39431548308e9John Hoford        super.copyAllParameters(representation);
313f0034140c165b86fbaf5c0369f39431548308e9John Hoford        representation.useParametersFrom(this);
323f0034140c165b86fbaf5c0369f39431548308e9John Hoford    }
333f0034140c165b86fbaf5c0369f39431548308e9John Hoford
3471f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard    public FilterDirectRepresentation(String name) {
3571f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard        super(name);
3671f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard    }
3771f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard
3871f04cbaedbb89e313e0b86b531640db2d3f6016nicolasroard}
39