public final class GraphicsUtil
extends java.lang.Object
| Constructor | Description |
|---|---|
GraphicsUtil() |
| Modifier and Type | Method | Description |
|---|---|---|
static org.eclipse.swt.graphics.Cursor |
createCursor(org.eclipse.swt.graphics.Device device,
org.eclipse.swt.graphics.ImageData imageData,
int width,
int height) |
|
static org.eclipse.swt.graphics.GC |
createGC(org.eclipse.swt.graphics.Drawable image) |
Used for single sourcing, returns null if called in RAP Context.
|
static void |
drawVerticalText(org.eclipse.draw2d.Graphics graphics,
java.lang.String text,
int x,
int y,
boolean upToDown) |
Draw vertical text.
|
static void |
drawVerticalText(org.eclipse.draw2d.Graphics graphics,
java.lang.String text,
org.eclipse.draw2d.geometry.Point location,
boolean upToDown) |
Draw vertical text.
|
static boolean |
isRAP() |
|
static void |
setTransform(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Transform transform) |
public static final void drawVerticalText(org.eclipse.draw2d.Graphics graphics,
java.lang.String text,
int x,
int y,
boolean upToDown)
graphics - draw2D graphics.text - text to be drawn.x - the x coordinate of the text, which is the left upper corner.y - the y coordinate of the text, which is the left upper corner.public static final void drawVerticalText(org.eclipse.draw2d.Graphics graphics,
java.lang.String text,
org.eclipse.draw2d.geometry.Point location,
boolean upToDown)
graphics - draw2D graphics.text - text to be drawn.location - the left upper corner coordinates of the text.public static final boolean isRAP()
public static org.eclipse.swt.graphics.GC createGC(org.eclipse.swt.graphics.Drawable image)
image - public static void setTransform(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Transform transform)
public static org.eclipse.swt.graphics.Cursor createCursor(org.eclipse.swt.graphics.Device device,
org.eclipse.swt.graphics.ImageData imageData,
int width,
int height)