Home | History | Annotate | Download | only in grid

Lines Matching defs:grid

16 package com.android.ide.common.layout.grid;
20 import static com.android.ide.common.layout.grid.GridModel.UNDEFINED;
52 * Paints the structure (the grid model) of the given GridLayout.
55 * @param layout the grid layout node
57 * @param grid the grid model to be visualized
60 GridModel grid) {
64 for (int row = 0; row < grid.actualRowCount; row++) {
65 int y = grid.getRowY(row);
68 for (int column = 0; column < grid.actualColumnCount; column++) {
69 int x = grid.getColumnX(column);
75 * Paints a regular grid according to the {@link GridLayoutRule#GRID_SIZE} and
77 * snap-to-grid will align with.
80 * @param gc the graphics context to paint the grid into
102 * Paint resizing feedback (which currently paints the grid model faintly.)
106 * @param grid the grid model
108 public static void paintResizeFeedback(IGraphics gc, INode layout, GridModel grid) {
109 paintStructure(DrawingStyle.GRID, layout, gc, grid);
152 GridModel grid = data.getGrid();
156 GridLayoutPainter.paintStructure(DrawingStyle.GRID, node, gc, grid);
247 * Paints the drag feedback for a grid-mode drag
251 GridModel grid = data.getGrid();
254 // Paint grid
255 for (int row = 1; row < grid.actualRowCount; row++) {
256 int y = grid.getRowY(row);
261 for (int column = 1; column < grid.actualColumnCount; column++) {
262 int x = grid.getColumnX(column);
275 Rect cellBounds = grid.getCellBounds(row, column, 1, 1);