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

    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)  
    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)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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)