//
////////////////////////////////////////////////////////////////////////////
public Rectangle getComponentCells(IAbstractComponentInfo component) {
Assert.instanceOf(WidgetInfo.class, component);
TableLayoutDataInfo data = getTableData((WidgetInfo) component);
return new Rectangle(data.getColumn(), data.getRow(), data.getColSpan(), data.getRowSpan());
}
public Rectangle getCellsRectangle(Rectangle cells) {
int x = m_columnIntervals[cells.x].begin;
int y = m_rowIntervals[cells.y].begin;
int w = m_columnIntervals[cells.right() - 1].end() - x;
int h = m_rowIntervals[cells.bottom() - 1].end() - y;
return new Rectangle(x, y, w, h);
}
////////////////////////////////////////////////////////////////////////////
//
// Feedback