01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.texteditor;
11:
12: import org.eclipse.swt.graphics.GC;
13: import org.eclipse.swt.graphics.Image;
14: import org.eclipse.swt.graphics.Rectangle;
15: import org.eclipse.swt.widgets.Canvas;
16:
17: /**
18: * @since 3.0
19: * @deprecated As of 3.0, replaced by {@link org.eclipse.jface.text.source.ImageUtilities}
20: */
21: public class ImageUtilities {
22:
23: /**
24: * Draws an image aligned inside the given rectangle on the given canvas.
25: *
26: * @param image the image to be drawn
27: * @param gc the drawing GC
28: * @param canvas the canvas on which to draw
29: * @param r the clipping rectangle
30: * @param halign the horizontal alignment of the image to be drawn
31: * @param valign the vertical alignment of the image to be drawn
32: * @deprecated As of 3.0, replaced by {@link org.eclipse.jface.text.source.ImageUtilities#drawImage(Image, GC, Canvas, Rectangle, int, int)}
33: */
34: public static void drawImage(Image image, GC gc, Canvas canvas,
35: Rectangle r, int halign, int valign) {
36: org.eclipse.jface.text.source.ImageUtilities.drawImage(image,
37: 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,
51: Rectangle r, int align) {
52: org.eclipse.jface.text.source.ImageUtilities.drawImage(image,
53: gc, canvas, r, align);
54: }
55: }
|