org.eclipse.nebula.widgets.nattable.layer
Class CompositeLayer.CompositeLayerPainter
java.lang.Object
  
org.eclipse.nebula.widgets.nattable.layer.CompositeLayer.CompositeLayerPainter
- All Implemented Interfaces: 
 - ILayerPainter
 
- Enclosing class:
 - CompositeLayer
 
protected class CompositeLayer.CompositeLayerPainter
- extends Object
- implements ILayerPainter
  
 
| 
Method Summary | 
 org.eclipse.swt.graphics.Rectangle | 
adjustCellBounds(int columnPosition,
                 int rowPosition,
                 org.eclipse.swt.graphics.Rectangle cellBounds)
 
          This method is used to adjust the cell bounds when painting the layer. | 
 void | 
paintLayer(ILayer natLayer,
           org.eclipse.swt.graphics.GC gc,
           int xOffset,
           int yOffset,
           org.eclipse.swt.graphics.Rectangle rectangle,
           IConfigRegistry configuration)
 
            | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CompositeLayer.CompositeLayerPainter
protected CompositeLayer.CompositeLayerPainter()
paintLayer
public void paintLayer(ILayer natLayer,
                       org.eclipse.swt.graphics.GC gc,
                       int xOffset,
                       int yOffset,
                       org.eclipse.swt.graphics.Rectangle rectangle,
                       IConfigRegistry configuration)
- Specified by:
 paintLayer in interface ILayerPainter
 
gc - GC used for paintingxOffset - of the layer from the origin of the tableyOffset - of the layer from the origin of the tablerectangle - area the layer can paint inconfiguration - in use by NatTable. Useful for looking up associated painters.
 
adjustCellBounds
public org.eclipse.swt.graphics.Rectangle adjustCellBounds(int columnPosition,
                                                           int rowPosition,
                                                           org.eclipse.swt.graphics.Rectangle cellBounds)
- Description copied from interface: 
ILayerPainter 
- This method is used to adjust the cell bounds when painting the layer.
 This is most often used to reduce the size of the cell to accommodate
 grid lines.
- Specified by:
 adjustCellBounds in interface ILayerPainter
 
 
 
Copyright © 2015. All rights reserved.