| commit | bc597af88fceb32faddd993444f2c0a23db4e13e | [log] [tgz] |
|---|---|---|
| author | Edwin Park <esp1@cornell.edu> | Tue May 28 16:09:43 2013 -0400 |
| committer | Edwin Park <esp1@cornell.edu> | Tue May 28 16:09:43 2013 -0400 |
| tree | fa534340805092b6b8bc8472cc2328703d89837b | |
| parent | 4e8dc86bd199d43766f357960f8d3a6bc3afb552 [diff] |
fixed CellLayerPainter clipping
diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/core/layer/cell/CellInvariants.xtend b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/core/layer/cell/CellInvariants.xtend index 427dabb..9eb45cd 100644 --- a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/core/layer/cell/CellInvariants.xtend +++ b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/core/layer/cell/CellInvariants.xtend
@@ -9,6 +9,9 @@ */ class CellInvariants { + /** + * @return The pixel bounds of the cell relative to its owning layer. + */ def static getPixelBounds(Cell cell) { val layer = cell.layer val positionBounds = cell.positionBounds
diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/core/layer/impl/CellLayerPainter.xtend b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/core/layer/impl/CellLayerPainter.xtend index 7e0d5d5..30b2368 100644 --- a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/core/layer/impl/CellLayerPainter.xtend +++ b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/core/layer/impl/CellLayerPainter.xtend
@@ -23,7 +23,6 @@ for (rowPosition : 0 ..< layer.getRowCount) { val cell = layer.getCell(columnPosition, rowPosition) gc.pushState - gc.clipBounds = cell.paintRegion cellPainter.paintCell(cell, cell.paintRegion, gc) gc.popState }