1f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford/*
2f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford * Copyright (C) 2013 The Android Open Source Project
3f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford *
4f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford * Licensed under the Apache License, Version 2.0 (the "License");
5f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford * you may not use this file except in compliance with the License.
6f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford * You may obtain a copy of the License at
7f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford *
8f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford *      http://www.apache.org/licenses/LICENSE-2.0
9f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford *
10f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford * Unless required by applicable law or agreed to in writing, software
11f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford * distributed under the License is distributed on an "AS IS" BASIS,
12f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford * See the License for the specific language governing permissions and
14f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford * limitations under the License.
15f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford */
16f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford
17f4b659334750a5aa75f929d18857a2ab93c9d939John Hofordpackage com.android.gallery3d.filtershow.controller;
18f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford
19f4b659334750a5aa75f929d18857a2ab93c9d939John Hofordimport android.graphics.Bitmap;
20f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford
21f4b659334750a5aa75f929d18857a2ab93c9d939John Hofordpublic class ParameterIconStyle extends BasicParameterStyle {
22f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford    Bitmap[] mBitmaps;
23f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford
24f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford    public ParameterIconStyle(int id, Bitmap[] styles) {
25f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford        super(id, styles.length);
26f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford        mBitmaps = styles;
27f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford    }
28f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford
29f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford    @Override
30f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford    public void getIcon(int index, BitmapCaller caller) {
31f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford        caller.available(mBitmaps[index]);
32f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford    }
33f4b659334750a5aa75f929d18857a2ab93c9d939John Hoford}
34