Home
last modified time | relevance | path

Searched refs:GridModel (Results 1 – 7 of 7) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/grid/
DGridModelTest.java29 import com.android.ide.common.layout.grid.GridModel.ViewData;
38 assertEquals("left", GridModel.removeFlag("top", "top|left")); in testRemoveFlag()
39 assertEquals("left", GridModel.removeFlag("top", "top | left")); in testRemoveFlag()
40 assertEquals("top", GridModel.removeFlag("left", "top|left")); in testRemoveFlag()
41 assertEquals("top", GridModel.removeFlag("left", "top | left")); in testRemoveFlag()
42 assertEquals("left | center", GridModel.removeFlag("top", "top | left | center")); in testRemoveFlag()
43 assertEquals(null, GridModel.removeFlag("top", "top")); in testRemoveFlag()
50 GridModel model = GridModel.get(null, targetNode, null); in testReadModel1()
60 model = GridModel.get(null, targetNode, null); in testReadModel1()
79 GridModel model = GridModel.get(new LayoutTestBase.TestRulesEngine(targetNode.getFqcn()), in testSplitColumn()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DGridLayoutRule.java56 import com.android.ide.common.layout.grid.GridModel;
57 import com.android.ide.common.layout.grid.GridModel.ViewData;
210 GridModel grid = GridModel.get(mRulesEngine, parentNode, null); in addLayoutActions()
349 if (GridModel.isSpace(node.getFqcn())) { in onChildInserted()
419 GridModel grid = GridModel.get(mRulesEngine, parent, null); in onRemovingChildren()
427 GridModel grid = getGrid(state); in paintResizeFeedback()
434 GridModel grid = getGrid(state); in paintResizeFeedback()
450 private GridModel getGrid(ResizeState resizeState) { in getGrid()
451 GridModel grid = (GridModel) resizeState.clientData; in getGrid()
453 grid = GridModel.get(mRulesEngine, resizeState.layout, resizeState.layoutView); in getGrid()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/
DGridLayoutPainter.java20 import static com.android.ide.common.layout.grid.GridModel.UNDEFINED;
61 GridModel grid) { in paintStructure()
109 public static void paintResizeFeedback(IGraphics gc, INode layout, GridModel grid) { in paintResizeFeedback()
155 GridModel grid = data.getGrid(); in paintFreeFormDropFeedback()
266 GridModel grid = data.getGrid(); in paintGridModeDropFeedback()
350 Pair<int[],int[]> cellBounds = GridModel.getAxisBounds(view); in paintStructure()
DGridMatch.java18 import static com.android.ide.common.layout.grid.GridModel.UNDEFINED;
DGridDropHandler.java29 import static com.android.ide.common.layout.grid.GridModel.UNDEFINED;
56 private final GridModel mGrid;
69 mGrid = GridModel.get(mRule.getRulesEngine(), layout, view); in GridDropHandler()
688 GridModel.ViewData next = mGrid.getView(index); in handleFreeFormDrop()
837 public GridModel getGrid() { in getGrid()
DGridModel.java78 public class GridModel { class
165 private GridModel(IClientRulesEngine rulesEngine, INode node, Object viewObject) { in GridModel() method in GridModel
175 private static WeakReference<GridModel> sCachedViewModel;
186 public static GridModel get( in get()
191 GridModel model = sCachedViewModel.get(); in get()
197 GridModel model = new GridModel(rulesEngine, node, viewObject); in get()
198 sCachedViewModel = new WeakReference<GridModel>(model); in get()
681 Pair<int[], int[]> cellBounds = GridModel.getAxisBounds(mViewObject); in assignCellBoundsFromView()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DGridLayoutConverter.java145 GridModel gridModel = new GridModel(layoutView, mLayout, mFlatten); in convertToGridLayout()
618 private static class GridModel { class in GridLayoutConverter
625 GridModel(CanvasViewInfo view, Element layout, boolean flatten) { in GridModel() method in GridLayoutConverter.GridModel