Class GraphicUtils
- java.lang.Object
-
- org.eclipse.nebula.widgets.pgroup.internal.GraphicUtils
-
public class GraphicUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GraphicUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
private static void
drawRoundCorner(org.eclipse.swt.graphics.GC gc, int x, int y, org.eclipse.swt.graphics.Color outerColor, org.eclipse.swt.graphics.Color borderColor, org.eclipse.swt.graphics.Color innerColor, boolean top, boolean left)
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)
-
-
-
Method Detail
-
drawRoundCorner
private static void drawRoundCorner(org.eclipse.swt.graphics.GC gc, int x, int y, org.eclipse.swt.graphics.Color outerColor, org.eclipse.swt.graphics.Color borderColor, org.eclipse.swt.graphics.Color innerColor, boolean top, boolean left)
-
drawRoundRectangle
public static void drawRoundRectangle(org.eclipse.swt.graphics.GC gc, int x, int y, int width, int height, org.eclipse.swt.graphics.Color outerColor)
-
fillGradientRectangle
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)
-
drawRoundRectangle
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)
-
drawRoundRectangle
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)
-
fillRoundRectangle
public static void fillRoundRectangle(org.eclipse.swt.graphics.GC gc, int x, int y, int width, int height, org.eclipse.swt.graphics.Color outerColor)
-
fillRoundRectangle
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)
-
blend
public static int blend(int v1, int v2, int ratio)
-
blend
public static org.eclipse.swt.graphics.RGB blend(org.eclipse.swt.graphics.RGB c1, org.eclipse.swt.graphics.RGB c2, int ratio)
-
createNewBlendedColor
public static org.eclipse.swt.graphics.Color createNewBlendedColor(org.eclipse.swt.graphics.RGB rgb1, org.eclipse.swt.graphics.RGB rgb2, int ratio)
-
createNewBlendedColor
public static org.eclipse.swt.graphics.Color createNewBlendedColor(org.eclipse.swt.graphics.Color c1, org.eclipse.swt.graphics.Color c2, int ratio)
-
createNewReverseColor
public static org.eclipse.swt.graphics.Color createNewReverseColor(org.eclipse.swt.graphics.Color c)
-
saturate
public static org.eclipse.swt.graphics.RGB saturate(org.eclipse.swt.graphics.RGB rgb, float saturation)
-
createNewSaturatedColor
public static org.eclipse.swt.graphics.Color createNewSaturatedColor(org.eclipse.swt.graphics.Color c, float saturation)
-
-