KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > texteditor > ImageUtilities


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.texteditor;
12
13 import org.eclipse.swt.graphics.GC;
14 import org.eclipse.swt.graphics.Image;
15 import org.eclipse.swt.graphics.Rectangle;
16 import org.eclipse.swt.widgets.Canvas;
17
18
19 /**
20  * @since 3.0
21  * @deprecated As of 3.0, replaced by {@link org.eclipse.jface.text.source.ImageUtilities}
22  */

23 public class ImageUtilities {
24
25     /**
26      * Draws an image aligned inside the given rectangle on the given canvas.
27      *
28      * @param image the image to be drawn
29      * @param gc the drawing GC
30      * @param canvas the canvas on which to draw
31      * @param r the clipping rectangle
32      * @param halign the horizontal alignment of the image to be drawn
33      * @param valign the vertical alignment of the image to be drawn
34      * @deprecated As of 3.0, replaced by {@link org.eclipse.jface.text.source.ImageUtilities#drawImage(Image, GC, Canvas, Rectangle, int, int)}
35      */

36     public static void drawImage(Image image, GC gc, Canvas canvas, Rectangle r, int halign, int valign) {
37         org.eclipse.jface.text.source.ImageUtilities.drawImage(image, gc, canvas, r, halign, valign);
38     }
39
40     /**
41      * Draws an image aligned inside the given rectangle on the given canvas.
42      *
43      * @param image the image to be drawn
44      * @param gc the drawing GC
45      * @param canvas the canvas on which to draw
46      * @param r the clipping rectangle
47      * @param align the alignment of the image to be drawn
48      * @deprecated As of 3.0, replaced by {@link org.eclipse.jface.text.source.ImageUtilities#drawImage(Image, GC, Canvas, Rectangle, int)}
49      */

50     public static void drawImage(Image image, GC gc, Canvas canvas, Rectangle r, int align) {
51         org.eclipse.jface.text.source.ImageUtilities.drawImage(image, gc, canvas, r, align);
52     }
53 }
54
Popular Tags