public class CellStyleUtil extends Object
Constructor and Description |
---|
CellStyleUtil() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static IStyle getCellStyle(ILayerCell cell, IConfigRegistry configRegistry)
public static int getHorizontalAlignmentPadding(IStyle cellStyle, org.eclipse.swt.graphics.Rectangle rectangle, int contentWidth)
public static int getHorizontalAlignmentPadding(HorizontalAlignmentEnum horizontalAlignment, org.eclipse.swt.graphics.Rectangle rectangle, int contentWidth)
public static int getVerticalAlignmentPadding(IStyle cellStyle, org.eclipse.swt.graphics.Rectangle rectangle, int contentHeight)
public static int getVerticalAlignmentPadding(VerticalAlignmentEnum verticalAlignment, org.eclipse.swt.graphics.Rectangle rectangle, int contentHeight)
public static List<org.eclipse.swt.graphics.Color> getAllBackgroundColors(ILayerCell cell, IConfigRegistry configRegistry, String displayMode)
Copyright © 2013. All Rights Reserved.