Home | History | Annotate | Download | only in grid

Lines Matching refs:mGrid

56     private final GridModel mGrid;
69 mGrid = GridModel.get(mRule.getRulesEngine(), layout, view);
83 Rect bounds = mGrid.layout.getBounds();
115 int row = (mGrid.getViewCount() == 0) ? 0 : mGrid.getClosestRow(y1);
116 int rowY = mGrid.getRowY(row);
143 columnMatches.add(new GridMatch(SegmentType.LEFT, 0, x1, mGrid.getColumn(x1),
147 rowMatches.add(new GridMatch(SegmentType.TOP, 0, y1, mGrid.getRow(y1),
161 columnDescription = mColumnMatch.getDisplayName(mGrid.layout);
165 rowDescription = mRowMatch.getDisplayName(mGrid.layout);
178 int column = mGrid.getColumn(x1);
179 int row = mGrid.getRow(y1);
181 int leftDistance = mGrid.getColumnDistance(column, x1);
182 int rightDistance = mGrid.getColumnDistance(column + 1, x1);
183 int topDistance = mGrid.getRowDistance(row, y1);
184 int bottomDistance = mGrid.getRowDistance(row + 1, y1);
189 column = Math.min(column + 1, mGrid.actualColumnCount);
193 row = Math.min(row + 1, mGrid.actualRowCount);
239 if (mRowMatch.createCell && mRowMatch.cellIndex < mGrid.actualRowCount) {
243 if (mColumnMatch.createCell && mColumnMatch.cellIndex < mGrid.actualColumnCount) {
262 int column = (mGrid.getViewCount() == 0) ? 0 : mGrid.getClosestColumn(x1);
263 int columnX = mGrid.getColumnX(column);
277 int columnRight = (mGrid.getViewCount() == 0) ? 0 : mGrid.getClosestColumn(x2);
278 int rightDistance = mGrid.getColumnDistance(columnRight, x2);
280 int columnX = mGrid.getColumnX(columnRight);
281 if (columnX > mGrid.layout.getBounds().x) {
293 Collection<INode> intersectsRow = mGrid.getIntersectsRow(y1, y2);
310 int distance = mGrid.getRowDistance(row, y1);
321 int rowBottom = (mGrid.getViewCount() == 0) ? 0 : mGrid.getClosestRow(y2);
322 int distance = mGrid.getRowDistance(rowBottom, y2);
324 int rowY = mGrid.getRowY(rowBottom);
325 if (rowY > mGrid.layout.getBounds().y) {
338 int rowBaseline = mGrid.getBaseline(row);
359 boolean createCell = mGrid.getColumnX(mGrid.getColumn(matchedLine)) != matchedLine;
368 //boolean createCell = mGrid.getColumnX(mGrid.getColumn(matchedLine)) != matchedLine;
370 mGrid.actualColumnCount - 1, createCell, MARGIN_SIZE));
373 int columnRight = mGrid.getColumn(x1 - SHORT_GAP_DP);
374 int columnX = mGrid.getColumnMaxX(columnRight);
378 boolean createCell = mGrid.getColumnX(mGrid.getColumn(matchedLine)) != matchedLine;
384 columnRight = mGrid.getColumn(x1);
385 columnX = mGrid.getColumnMaxX(columnRight);
404 boolean createCell = mGrid.getColumnX(mGrid.getColumn(matchedLine)) != matchedLine;
420 boolean createCell = mGrid.getRowY(mGrid.getRow(matchedLine)) != matchedLine;
429 //boolean createCell = mGrid.getRowY(mGrid.getRow(matchedLine)) != matchedLine;
431 // mGrid.actualRowCount - 1, createCell, MARGIN_SIZE));
434 int rowBottom = mGrid.getRow(y1 - SHORT_GAP_DP);
435 int rowY = mGrid.getRowMaxY(rowBottom);
439 boolean createCell = mGrid.getRowY(mGrid.getRow(matchedLine)) != matchedLine;
445 rowBottom = mGrid.getRow(y1);
446 rowY = mGrid.getRowMaxY(rowBottom);
451 boolean createCell = mGrid.getRowY(mGrid.getRow(matchedLine)) != matchedLine;
532 //int columnX = mGrid.getColumnX(column);
533 //int rowY = mGrid.getRowY(row);
535 mGrid.setGridAttribute(targetNode, ATTR_COLUMN_COUNT, 2);
536 //mGrid.setGridAttribute(targetNode, ATTR_COLUMN_COUNT, 3);
542 //mGrid.setGridAttribute(sc1, ATTR_LAYOUT_GRAVITY, VALUE_FILL_HORIZONTAL);
543 //mGrid.setGridAttribute(sr1, ATTR_LAYOUT_GRAVITY, VALUE_FILL_VERTICAL);
545 //mGrid.loadFromXml();
546 //column = mGrid.getColumn(columnX);
547 //row = mGrid.getRow(rowY);
554 column = mGrid.getColumn(startX);
563 row = mGrid.getRow(startY);
572 int endColumn = mGrid.getColumn(endX);
573 int endRow = mGrid.getRow(endY);
582 if (!mRowMatch.createCell && bounds.h <= MAX_CELL_DIFFERENCE * mGrid.getRowHeight(
589 if (!mColumnMatch.createCell && bounds.w <= MAX_CELL_DIFFERENCE * mGrid.getColumnWidth(
599 columnSpan = mGrid.actualColumnCount;
603 mGrid.applyPositionAttributes();
607 int columnWidthPx = mGrid.getColumnDistance(column, mColumnMatch.matchedLine);
611 int maxX = mGrid.getColumnMaxX(column);
638 mGrid.splitColumn(column, insertMarginColumn, columnWidthDp, mColumnMatch.matchedLine);
646 int rowHeightPx = mGrid.getRowDistance(row, mRowMatch.matchedLine);
650 int maxY = mGrid.getRowMaxY(row);
675 mGrid.splitRow(row, insertMarginRow, rowHeightDp, mRowMatch.matchedLine);
683 int index = mGrid.getInsertIndex(row, column);
688 GridModel.ViewData next = mGrid.getView(index);
706 mGrid.setGridAttribute(newChild, ATTR_LAYOUT_COLUMN, column);
738 mGrid.setGridAttribute(newChild, ATTR_LAYOUT_GRAVITY, getGravity(gravity));
740 mGrid.setGridAttribute(newChild, ATTR_LAYOUT_ROW, row);
744 mGrid.setGridAttribute(newChild, ATTR_LAYOUT_COLUMN_SPAN, columnSpan);
747 mGrid.setGridAttribute(newChild, ATTR_LAYOUT_ROW_SPAN, rowSpan);
751 if (mGrid.actualColumnCount == 0) {
752 mGrid.setGridAttribute(mGrid.layout, ATTR_COLUMN_COUNT, Math.max(1, column + 1));
772 mGrid.addColumn(column,
777 mGrid.addRow(row, newChild, UNDEFINED, false, UNDEFINED, UNDEFINED);
780 mGrid.setGridAttribute(newChild, ATTR_LAYOUT_COLUMN, column);
781 mGrid.setGridAttribute(newChild, ATTR_LAYOUT_ROW, row);
805 mGrid.setGridAttribute(newChild, ATTR_LAYOUT_GRAVITY, getGravity(gravity));
807 if (mGrid.declaredColumnCount == UNDEFINED || mGrid.declaredColumnCount < column + 1) {
808 mGrid.setGridAttribute(mGrid.layout, ATTR_COLUMN_COUNT, column + 1);
838 return mGrid;