public class ButtonCellPainter extends AbstractCellPainter implements IMouseAction
| Constructor and Description | 
|---|
ButtonCellPainter(ICellPainter interiorPainter)  | 
ButtonCellPainter(ICellPainter buttonRaisedPainter,
                 ICellPainter buttonPressedPainter)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addClickListener(IMouseAction mouseAction)  | 
int | 
getPreferredHeight(ILayerCell cell,
                  org.eclipse.swt.graphics.GC gc,
                  IConfigRegistry configRegistry)
Get the preferred height of the cell when rendered by this painter. 
 | 
int | 
getPreferredWidth(ILayerCell cell,
                 org.eclipse.swt.graphics.GC gc,
                 IConfigRegistry configRegistry)
Get the preferred width of the cell when rendered by this painter. 
 | 
void | 
paintCell(ILayerCell cell,
         org.eclipse.swt.graphics.GC gc,
         org.eclipse.swt.graphics.Rectangle bounds,
         IConfigRegistry configRegistry)  | 
void | 
removeClickListener(IMouseAction mouseAction)  | 
void | 
run(NatTable natTable,
   org.eclipse.swt.events.MouseEvent event)
Respond to mouse click. 
 | 
void | 
setButtonFlashTime(int flashTimeInMS)  | 
getCellPainterAtpublic ButtonCellPainter(ICellPainter interiorPainter)
interiorPainter - to paint the contents of the cell. 
        This will be decorated with a button like look and feel.public ButtonCellPainter(ICellPainter buttonRaisedPainter, ICellPainter buttonPressedPainter)
buttonRaisedPainter - cell painter to use for painting the button raised state.buttonPressedPainter - cell painter to use for painting the button pressed state.public void paintCell(ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle bounds, IConfigRegistry configRegistry)
paintCell in interface ICellPainterpublic int getPreferredHeight(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
ICellPaintergetPreferredHeight in interface ICellPainterpublic int getPreferredWidth(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
ICellPaintergetPreferredWidth in interface ICellPainterpublic void run(NatTable natTable, org.eclipse.swt.events.MouseEvent event)
run in interface IMouseActionpublic void addClickListener(IMouseAction mouseAction)
public void removeClickListener(IMouseAction mouseAction)
public void setButtonFlashTime(int flashTimeInMS)
Copyright © 2013. All Rights Reserved.