Package org.eclipse.jface.text.source
Class ImageUtilities
- java.lang.Object
-
- org.eclipse.jface.text.source.ImageUtilities
-
public class ImageUtilities extends Object
Provides methods for drawing images onto a canvas.This class is neither intended to be instantiated nor subclassed.
- Since:
- 3.0
- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
-
Constructor Summary
Constructors Constructor Description ImageUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
drawImage(Image image, GC gc, Canvas canvas, Rectangle r, int align)
Draws an image aligned inside the given rectangle on the given canvas.static void
drawImage(Image image, GC gc, Canvas canvas, Rectangle r, int halign, int valign)
Draws an image aligned inside the given rectangle on the given canvas.
-
-
-
Method Detail
-
drawImage
public static void drawImage(Image image, GC gc, Canvas canvas, Rectangle r, int halign, int valign)
Draws an image aligned inside the given rectangle on the given canvas.- Parameters:
image
- the image to be drawngc
- the drawing GCcanvas
- the canvas on which to drawr
- the clipping rectanglehalign
- the horizontal alignment of the image to be drawnvalign
- the vertical alignment of the image to be drawn
-
drawImage
public static void drawImage(Image image, GC gc, Canvas canvas, Rectangle r, int align)
Draws an image aligned inside the given rectangle on the given canvas.- Parameters:
image
- the image to be drawngc
- the drawing GCcanvas
- the canvas on which to drawr
- the clipping rectanglealign
- the alignment of the image to be drawn
-
-