Home | History | Annotate | Download | only in grid

Lines Matching refs:GRID

16 package com.android.ide.common.layout.grid;
20 import static com.android.ide.common.layout.grid.GridModel.UNDEFINED;
53 * Paints the structure (the grid model) of the given GridLayout.
56 * @param layout the grid layout node
58 * @param grid the grid model to be visualized
61 GridModel grid) {
65 for (int row = 0; row < grid.actualRowCount; row++) {
66 int y = grid.getRowY(row);
69 for (int column = 0; column < grid.actualColumnCount; column++) {
70 int x = grid.getColumnX(column);
76 * Paints a regular grid according to the {@link GridLayoutRule#GRID_SIZE} and
78 * snap-to-grid will align with.
81 * @param gc the graphics context to paint the grid into
103 * Paint resizing feedback (which currently paints the grid model faintly.)
107 * @param grid the grid model
109 public static void paintResizeFeedback(IGraphics gc, INode layout, GridModel grid) {
110 paintStructure(DrawingStyle.GRID, layout, gc, grid);
155 GridModel grid = data.getGrid();
159 GridLayoutPainter.paintStructure(DrawingStyle.GRID, node, gc, grid);
262 * Paints the drag feedback for a grid-mode drag
266 GridModel grid = data.getGrid();
269 // Paint grid
270 for (int row = 1; row < grid.actualRowCount; row++) {
271 int y = grid.getRowY(row);
276 for (int column = 1; column < grid.actualColumnCount; column++) {
277 int x = grid.getColumnX(column);
292 Rect cellBounds = grid.getCellBounds(row, column, 1, 1);