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 colorsprotected 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
-
Constructor Details
-
Win7ColumnHeaderUtil
public Win7ColumnHeaderUtil()
-
-
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 headerselected
- 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
-
-