Package org.eclipse.nebula.widgets.grid
Interface DataVisualizer
-
- All Known Implementing Classes:
AdaptedDataVisualizer,GridItemDataVisualizer
public interface DataVisualizerManages the visual data of theGridItems. With this interface it is possible to create your own data visualization manager. With an instance of this class it is much easier to avoid memory leaks by using background colors and fonts.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddColumn(int columnIndex)Inserts a column on DataVisualizervoidclearAll()Clear all data onDataVisualizervoidclearColumn(int columnIndex)Clear column dataVisualizer valuesvoidclearRow(GridItem gridItem)Clear rows dataVisualizer valuesorg.eclipse.swt.graphics.ColorgetBackground(GridItem gridItem, int columnIndex)Method substitute GridItem methodbooleangetCheckable(GridItem gridItem, int columnIndex)Method substitute GridItem methodbooleangetChecked(GridItem gridItem, int columnIndex)Method substitute GridItem methodintgetColumnSpan(GridItem gridItem, int columnIndex)Method substitute GridItem methodorg.eclipse.swt.graphics.ColorgetDefaultBackground()org.eclipse.swt.graphics.FontgetDefaultFont()org.eclipse.swt.graphics.ColorgetDefaultForeground()org.eclipse.swt.graphics.FontgetFont(GridItem gridItem, int columnIndex)Method substitute GridItem methodorg.eclipse.swt.graphics.ColorgetForeground(GridItem gridItem, int columnIndex)Method substitute GridItem methodbooleangetGrayed(GridItem gridItem, int columnIndex)Method substitute GridItem methodorg.eclipse.swt.graphics.ImagegetImage(GridItem gridItem, int columnIndex)Method substitute GridItem methodintgetRowSpan(GridItem gridItem, int columnIndex)Method substitute GridItem methodjava.lang.StringgetText(GridItem gridItem, int columnIndex)Method substitute GridItem methodjava.lang.StringgetToolTipText(GridItem gridItem, int columnIndex)Method substitute GridItem methodvoidsetBackground(GridItem gridItem, int columnIndex, org.eclipse.swt.graphics.Color color)Method substitute GridItem methodvoidsetCheckable(GridItem gridItem, int columnIndex, boolean checked)Method substitute GridItem methodvoidsetChecked(GridItem gridItem, int columnIndex, boolean checked)Method substitute GridItem methodvoidsetColumnSpan(GridItem gridItem, int columnIndex, int span)Method substitute GridItem methodvoidsetDefaultBackground(org.eclipse.swt.graphics.Color defaultBackground)set default backgroundvoidsetDefaultFont(org.eclipse.swt.graphics.Font defaultFont)set default fontvoidsetDefaultForeground(org.eclipse.swt.graphics.Color defaultForeground)set default foregroundvoidsetFont(GridItem gridItem, int columnIndex, org.eclipse.swt.graphics.Font font)Method substitute GridItem methodvoidsetForeground(GridItem gridItem, int columnIndex, org.eclipse.swt.graphics.Color foreground)Method substitute GridItem methodvoidsetGrayed(GridItem gridItem, int columnIndex, boolean grayed)Method substitute GridItem methodvoidsetImage(GridItem gridItem, int columnIndex, org.eclipse.swt.graphics.Image image)Method substitute GridItem methodvoidsetRowSpan(GridItem gridItem, int columnIndex, int span)Method substitute GridItem methodvoidsetText(GridItem gridItem, int columnIndex, java.lang.String text)Method substitute GridItem methodvoidsetToolTipText(GridItem gridItem, int columnIndex, java.lang.String tooltip)Method substitute GridItem method
-
-
-
Method Detail
-
addColumn
void addColumn(int columnIndex)
Inserts a column on DataVisualizer- Parameters:
columnIndex-
-
clearAll
void clearAll()
Clear all data onDataVisualizer
-
clearColumn
void clearColumn(int columnIndex)
Clear column dataVisualizer values- Parameters:
columnIndex-
-
clearRow
void clearRow(GridItem gridItem)
Clear rows dataVisualizer values- Parameters:
gridItem-
-
getBackground
org.eclipse.swt.graphics.Color getBackground(GridItem gridItem, int columnIndex)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-- Returns:
Color- See Also:
GridItem.getBackground(int)
-
getCheckable
boolean getCheckable(GridItem gridItem, int columnIndex)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-- Returns:
- boolean
- See Also:
GridItem.getCheckable(int)
-
getChecked
boolean getChecked(GridItem gridItem, int columnIndex)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-- Returns:
- boolean
- See Also:
GridItem.getChecked(int)
-
getColumnSpan
int getColumnSpan(GridItem gridItem, int columnIndex)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-- Returns:
- int
- See Also:
GridItem.getColumnSpan(int)
-
getDefaultBackground
org.eclipse.swt.graphics.Color getDefaultBackground()
- Returns:
- default background
-
getDefaultFont
org.eclipse.swt.graphics.Font getDefaultFont()
- Returns:
- default font
-
getDefaultForeground
org.eclipse.swt.graphics.Color getDefaultForeground()
- Returns:
- default foreground
-
getFont
org.eclipse.swt.graphics.Font getFont(GridItem gridItem, int columnIndex)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-- Returns:
Font- See Also:
GridItem.getFont(int)
-
getForeground
org.eclipse.swt.graphics.Color getForeground(GridItem gridItem, int columnIndex)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-- Returns:
Color- See Also:
GridItem.getForeground(int)
-
getGrayed
boolean getGrayed(GridItem gridItem, int columnIndex)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-- Returns:
- boolean
- See Also:
GridItem.getGrayed(int)
-
getImage
org.eclipse.swt.graphics.Image getImage(GridItem gridItem, int columnIndex)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-- Returns:
Image- See Also:
GridItem.getImage(int)
-
getRowSpan
int getRowSpan(GridItem gridItem, int columnIndex)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-- Returns:
- int
- See Also:
GridItem.getRowSpan(int)
-
getText
java.lang.String getText(GridItem gridItem, int columnIndex)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-- Returns:
String- See Also:
GridItem.getText(int)
-
getToolTipText
java.lang.String getToolTipText(GridItem gridItem, int columnIndex)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-- Returns:
- String
- See Also:
GridItem.getToolTipText(int)
-
setBackground
void setBackground(GridItem gridItem, int columnIndex, org.eclipse.swt.graphics.Color color)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-color-- See Also:
GridItem.setBackground(int, Color)
-
setCheckable
void setCheckable(GridItem gridItem, int columnIndex, boolean checked)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-checked-- See Also:
GridItem.setCheckable(int, boolean)
-
setChecked
void setChecked(GridItem gridItem, int columnIndex, boolean checked)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-checked-- See Also:
GridItem.setChecked(int, boolean)
-
setColumnSpan
void setColumnSpan(GridItem gridItem, int columnIndex, int span)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-span-- See Also:
GridItem.setColumnSpan(int, int)
-
setDefaultBackground
void setDefaultBackground(org.eclipse.swt.graphics.Color defaultBackground)
set default background- Parameters:
defaultBackground-
-
setDefaultFont
void setDefaultFont(org.eclipse.swt.graphics.Font defaultFont)
set default font- Parameters:
defaultFont-
-
setDefaultForeground
void setDefaultForeground(org.eclipse.swt.graphics.Color defaultForeground)
set default foreground- Parameters:
defaultForeground-
-
setFont
void setFont(GridItem gridItem, int columnIndex, org.eclipse.swt.graphics.Font font)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-font-- See Also:
GridItem.setFont(int, Font)
-
setForeground
void setForeground(GridItem gridItem, int columnIndex, org.eclipse.swt.graphics.Color foreground)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-foreground-- See Also:
GridItem.setForeground(int, Color)
-
setGrayed
void setGrayed(GridItem gridItem, int columnIndex, boolean grayed)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-grayed-- See Also:
GridItem.setGrayed(int, boolean)
-
setImage
void setImage(GridItem gridItem, int columnIndex, org.eclipse.swt.graphics.Image image)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-image-- See Also:
GridItem.setImage(int, Image)
-
setRowSpan
void setRowSpan(GridItem gridItem, int columnIndex, int span)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-span-- See Also:
GridItem.setRowSpan(int, int)
-
setText
void setText(GridItem gridItem, int columnIndex, java.lang.String text)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-text-- See Also:
GridItem.setText(int, String)
-
setToolTipText
void setToolTipText(GridItem gridItem, int columnIndex, java.lang.String tooltip)
Method substitute GridItem method- Parameters:
gridItem-columnIndex-tooltip-- See Also:
GridItem.setToolTipText(int, String)
-
-