Package org.eclipse.nebula.widgets.grid
Interface DataVisualizer
-
- All Known Implementing Classes:
AdaptedDataVisualizer
,GridItemDataVisualizer
public interface DataVisualizer
Manages the visual data of theGridItem
s. 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 void
addColumn(int columnIndex)
Inserts a column on DataVisualizervoid
clearAll()
Clear all data onDataVisualizer
void
clearColumn(int columnIndex)
Clear column dataVisualizer valuesvoid
clearRow(GridItem gridItem)
Clear rows dataVisualizer valuesorg.eclipse.swt.graphics.Color
getBackground(GridItem gridItem, int columnIndex)
Method substitute GridItem methodboolean
getCheckable(GridItem gridItem, int columnIndex)
Method substitute GridItem methodboolean
getChecked(GridItem gridItem, int columnIndex)
Method substitute GridItem methodint
getColumnSpan(GridItem gridItem, int columnIndex)
Method substitute GridItem methodorg.eclipse.swt.graphics.Color
getDefaultBackground()
org.eclipse.swt.graphics.Font
getDefaultFont()
org.eclipse.swt.graphics.Color
getDefaultForeground()
org.eclipse.swt.graphics.Font
getFont(GridItem gridItem, int columnIndex)
Method substitute GridItem methodorg.eclipse.swt.graphics.Color
getForeground(GridItem gridItem, int columnIndex)
Method substitute GridItem methodboolean
getGrayed(GridItem gridItem, int columnIndex)
Method substitute GridItem methodorg.eclipse.swt.graphics.Image
getImage(GridItem gridItem, int columnIndex)
Method substitute GridItem methodint
getRowSpan(GridItem gridItem, int columnIndex)
Method substitute GridItem methodjava.lang.String
getText(GridItem gridItem, int columnIndex)
Method substitute GridItem methodjava.lang.String
getToolTipText(GridItem gridItem, int columnIndex)
Method substitute GridItem methodvoid
setBackground(GridItem gridItem, int columnIndex, org.eclipse.swt.graphics.Color color)
Method substitute GridItem methodvoid
setCheckable(GridItem gridItem, int columnIndex, boolean checked)
Method substitute GridItem methodvoid
setChecked(GridItem gridItem, int columnIndex, boolean checked)
Method substitute GridItem methodvoid
setColumnSpan(GridItem gridItem, int columnIndex, int span)
Method substitute GridItem methodvoid
setDefaultBackground(org.eclipse.swt.graphics.Color defaultBackground)
set default backgroundvoid
setDefaultFont(org.eclipse.swt.graphics.Font defaultFont)
set default fontvoid
setDefaultForeground(org.eclipse.swt.graphics.Color defaultForeground)
set default foregroundvoid
setFont(GridItem gridItem, int columnIndex, org.eclipse.swt.graphics.Font font)
Method substitute GridItem methodvoid
setForeground(GridItem gridItem, int columnIndex, org.eclipse.swt.graphics.Color foreground)
Method substitute GridItem methodvoid
setGrayed(GridItem gridItem, int columnIndex, boolean grayed)
Method substitute GridItem methodvoid
setImage(GridItem gridItem, int columnIndex, org.eclipse.swt.graphics.Image image)
Method substitute GridItem methodvoid
setRowSpan(GridItem gridItem, int columnIndex, int span)
Method substitute GridItem methodvoid
setText(GridItem gridItem, int columnIndex, java.lang.String text)
Method substitute GridItem methodvoid
setToolTipText(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)
-
-