Class Win7ColumnHeaderUtil

java.lang.Object
org.eclipse.nebula.widgets.grid.internal.win7.Win7ColumnHeaderUtil

public class Win7ColumnHeaderUtil
extends java.lang.Object
Utility to perform the common drawing functions for all Win7 grid columns headers
  • Constructor Summary

    Constructors 
    Constructor Description
    Win7ColumnHeaderUtil()  
  • Method Summary

    Modifier and Type Method Description
    static void drawColumn​(org.eclipse.swt.graphics.GC graphics, org.eclipse.swt.graphics.Rectangle bounds, Win7PaletteProvider palette, boolean hover, boolean selected, boolean mousedown)
    Based on the provided state (hover/selected) generate the appropriate column header rendering.
    protected static void drawColumnHeader​(org.eclipse.swt.graphics.GC graphics, org.eclipse.swt.graphics.Rectangle bounds, Win7PaletteProvider.Palette palette)
    Draw the column header based on the given colors
    protected static void drawColumnSelectedTopShadow​(org.eclipse.swt.graphics.GC graphics, org.eclipse.swt.graphics.Rectangle bounds, Win7PaletteProvider.Palette palette)
    Draw an additional shadow for the selected column state

    Methods inherited from class java.lang.Object

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

  • Method Details

    • drawColumn

      public static void drawColumn​(org.eclipse.swt.graphics.GC graphics, org.eclipse.swt.graphics.Rectangle bounds, Win7PaletteProvider palette, boolean hover, boolean selected, boolean mousedown)
      Based on the provided state (hover/selected) generate the appropriate column header rendering.
      Parameters:
      graphics -
      bounds -
      palette -
      hover - indicates whether the mouse is hovering over the column header
      selected - indicates whether the column is selected (mousedown)
      mousedown -
    • drawColumnSelectedTopShadow

      protected static void drawColumnSelectedTopShadow​(org.eclipse.swt.graphics.GC graphics, org.eclipse.swt.graphics.Rectangle bounds, Win7PaletteProvider.Palette palette)
      Draw an additional shadow for the selected column state
      Parameters:
      graphics -
      bounds -
      palette -
    • drawColumnHeader

      protected static void drawColumnHeader​(org.eclipse.swt.graphics.GC graphics, org.eclipse.swt.graphics.Rectangle bounds, Win7PaletteProvider.Palette palette)
      Draw the column header based on the given colors
      Parameters:
      graphics -
      bounds -
      palette -