public class GraphicUtils
extends java.lang.Object
Constructor and Description |
---|
GraphicUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
blend(int v1,
int v2,
int ratio) |
static org.eclipse.swt.graphics.RGB |
blend(org.eclipse.swt.graphics.RGB c1,
org.eclipse.swt.graphics.RGB c2,
int ratio) |
static org.eclipse.swt.graphics.Color |
createNewBlendedColor(org.eclipse.swt.graphics.Color c1,
org.eclipse.swt.graphics.Color c2,
int ratio) |
static org.eclipse.swt.graphics.Color |
createNewBlendedColor(org.eclipse.swt.graphics.RGB rgb1,
org.eclipse.swt.graphics.RGB rgb2,
int ratio) |
static org.eclipse.swt.graphics.Color |
createNewReverseColor(org.eclipse.swt.graphics.Color c) |
static org.eclipse.swt.graphics.Color |
createNewSaturatedColor(org.eclipse.swt.graphics.Color c,
float saturation) |
static void |
drawRoundRectangle(org.eclipse.swt.graphics.GC gc,
int x,
int y,
int width,
int height,
org.eclipse.swt.graphics.Color outerColor) |
static void |
drawRoundRectangle(org.eclipse.swt.graphics.GC gc,
int x,
int y,
int width,
int height,
org.eclipse.swt.graphics.Color outerColor,
boolean roundTop,
boolean roundBottom) |
static void |
drawRoundRectangle(org.eclipse.swt.graphics.GC gc,
int x,
int y,
int width,
int height,
org.eclipse.swt.graphics.Color outerColor,
org.eclipse.swt.graphics.Color borderColor,
boolean roundTop,
boolean roundBottom) |
static void |
fillGradientRectangle(org.eclipse.swt.graphics.GC gc,
int x,
int y,
int width,
int height,
org.eclipse.swt.graphics.Color[] gradientColors,
int[] gradientPercents,
boolean vertical) |
static void |
fillRoundRectangle(org.eclipse.swt.graphics.GC gc,
int x,
int y,
int width,
int height,
org.eclipse.swt.graphics.Color outerColor) |
static void |
fillRoundRectangle(org.eclipse.swt.graphics.GC gc,
int x,
int y,
int width,
int height,
org.eclipse.swt.graphics.Color outerColor,
boolean roundTop,
boolean roundBottom) |
static org.eclipse.swt.graphics.RGB |
saturate(org.eclipse.swt.graphics.RGB rgb,
float saturation) |
public static void drawRoundRectangle(org.eclipse.swt.graphics.GC gc, int x, int y, int width, int height, org.eclipse.swt.graphics.Color outerColor)
public static void fillGradientRectangle(org.eclipse.swt.graphics.GC gc, int x, int y, int width, int height, org.eclipse.swt.graphics.Color[] gradientColors, int[] gradientPercents, boolean vertical)
public static void drawRoundRectangle(org.eclipse.swt.graphics.GC gc, int x, int y, int width, int height, org.eclipse.swt.graphics.Color outerColor, org.eclipse.swt.graphics.Color borderColor, boolean roundTop, boolean roundBottom)
public static void drawRoundRectangle(org.eclipse.swt.graphics.GC gc, int x, int y, int width, int height, org.eclipse.swt.graphics.Color outerColor, boolean roundTop, boolean roundBottom)
public static void fillRoundRectangle(org.eclipse.swt.graphics.GC gc, int x, int y, int width, int height, org.eclipse.swt.graphics.Color outerColor)
public static void fillRoundRectangle(org.eclipse.swt.graphics.GC gc, int x, int y, int width, int height, org.eclipse.swt.graphics.Color outerColor, boolean roundTop, boolean roundBottom)
public static int blend(int v1, int v2, int ratio)
public static org.eclipse.swt.graphics.RGB blend(org.eclipse.swt.graphics.RGB c1, org.eclipse.swt.graphics.RGB c2, int ratio)
public static org.eclipse.swt.graphics.Color createNewBlendedColor(org.eclipse.swt.graphics.RGB rgb1, org.eclipse.swt.graphics.RGB rgb2, int ratio)
public static org.eclipse.swt.graphics.Color createNewBlendedColor(org.eclipse.swt.graphics.Color c1, org.eclipse.swt.graphics.Color c2, int ratio)
public static org.eclipse.swt.graphics.Color createNewReverseColor(org.eclipse.swt.graphics.Color c)
public static org.eclipse.swt.graphics.RGB saturate(org.eclipse.swt.graphics.RGB rgb, float saturation)
public static org.eclipse.swt.graphics.Color createNewSaturatedColor(org.eclipse.swt.graphics.Color c, float saturation)