org.eclipse.nebula.widgets.nattable.style
Class CellStyleUtil

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.style.CellStyleUtil

public class CellStyleUtil
extends Object


Constructor Summary
CellStyleUtil()
           
 
Method Summary
static List<org.eclipse.swt.graphics.Color> getAllBackgroundColors(ILayerCell cell, IConfigRegistry configRegistry, String displayMode)
           
static IStyle getCellStyle(ILayerCell cell, IConfigRegistry configRegistry)
           
static int getHorizontalAlignmentPadding(HorizontalAlignmentEnum horizontalAlignment, org.eclipse.swt.graphics.Rectangle rectangle, int contentWidth)
          Calculate padding needed at the left to align horizontally.
static int getHorizontalAlignmentPadding(IStyle cellStyle, org.eclipse.swt.graphics.Rectangle rectangle, int contentWidth)
           
static int getVerticalAlignmentPadding(IStyle cellStyle, org.eclipse.swt.graphics.Rectangle rectangle, int contentHeight)
           
static int getVerticalAlignmentPadding(VerticalAlignmentEnum verticalAlignment, org.eclipse.swt.graphics.Rectangle rectangle, int contentHeight)
          Calculate padding needed at the top to align vertically.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellStyleUtil

public CellStyleUtil()
Method Detail

getCellStyle

public static IStyle getCellStyle(ILayerCell cell,
                                  IConfigRegistry configRegistry)

getHorizontalAlignmentPadding

public static int getHorizontalAlignmentPadding(IStyle cellStyle,
                                                org.eclipse.swt.graphics.Rectangle rectangle,
                                                int contentWidth)

getHorizontalAlignmentPadding

public static int getHorizontalAlignmentPadding(HorizontalAlignmentEnum horizontalAlignment,
                                                org.eclipse.swt.graphics.Rectangle rectangle,
                                                int contentWidth)
Calculate padding needed at the left to align horizontally. Defaults to CENTER horizontal alignment.


getVerticalAlignmentPadding

public static int getVerticalAlignmentPadding(IStyle cellStyle,
                                              org.eclipse.swt.graphics.Rectangle rectangle,
                                              int contentHeight)

getVerticalAlignmentPadding

public static int getVerticalAlignmentPadding(VerticalAlignmentEnum verticalAlignment,
                                              org.eclipse.swt.graphics.Rectangle rectangle,
                                              int contentHeight)
Calculate padding needed at the top to align vertically. Defaults to MIDDLE vertical alignment.


getAllBackgroundColors

public static List<org.eclipse.swt.graphics.Color> getAllBackgroundColors(ILayerCell cell,
                                                                          IConfigRegistry configRegistry,
                                                                          String displayMode)


Copyright © 2015. All rights reserved.