1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20 package org.apache.myfaces.custom.graphicimagedynamic.util;
21
22 import org.apache.myfaces.custom.dynamicResources.ResourceRenderer;
23
24 /**
25 * The ImageRenderer is used to render the binary data for a html img tag
26 * Implementions must have a default constructor
27 *
28 * @author Mathias Broekelmann
29 * @version $Revision: 472727 $ $Date: 2006-11-09 03:08:46 +0200 (Thu, 09 Nov 2006) $
30 */
31 public interface ImageRenderer extends ResourceRenderer
32 {
33 /**
34 * This method will be called first, to set the contexts.
35 *
36 * @param facesContext the faces context
37 * @param imageContext the image context width aditional image parameters
38 *
39 void setContext(FacesContext facesContext, ImageContext imageContext) throws Exception;
40 */
41 /**
42 * Called to render the image to the given outputstream.
43 *
44 * @param out the outputstream which is used to write the binary data of the image
45 *
46 * @throws IOException
47 *
48 void renderImage(ResponseStream out) throws IOException;
49 */
50 }