Class Win7ColumnHeaderUtil


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

      All Methods Static Methods Concrete Methods 
      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 Detail

      • Win7ColumnHeaderUtil

        public Win7ColumnHeaderUtil()
    • Method Detail

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