/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | GestureManager.java | 64 private final LayoutCanvas mCanvas; field in GestureManager 142 mCanvas = canvas; in GestureManager() 152 return mCanvas; in getCanvas() 198 mCanvas.addMouseMoveListener(mListener); in registerListeners() 199 mCanvas.addMouseListener(mListener); in registerListeners() 200 mCanvas.addKeyListener(mListener); in registerListeners() 220 if (mCanvas.isDisposed()) { in unregisterListeners() 229 mCanvas.removeMouseMoveListener(mListener); in unregisterListeners() 230 mCanvas.removeMouseListener(mListener); in unregisterListeners() 231 mCanvas.removeKeyListener(mListener); in unregisterListeners() [all …]
|
D | LintTooltipManager.java | 39 private final LayoutCanvas mCanvas; field in LintTooltipManager 49 mCanvas = canvas; in LintTooltipManager() 53 mCanvas.addListener(SWT.Dispose, this); in register() 54 mCanvas.addListener(SWT.KeyDown, this); in register() 55 mCanvas.addListener(SWT.MouseMove, this); in register() 56 mCanvas.addListener(SWT.MouseHover, this); in register() 60 if (!mCanvas.isDisposed()) { in unregister() 61 mCanvas.removeListener(SWT.Dispose, this); in unregister() 62 mCanvas.removeListener(SWT.KeyDown, this); in unregister() 63 mCanvas.removeListener(SWT.MouseMove, this); in unregister() [all …]
|
D | PlayAnimationMenu.java | 59 private final LayoutCanvas mCanvas; field in PlayAnimationMenu 83 mCanvas = canvas; in PlayAnimationMenu() 89 SelectionManager selectionManager = mCanvas.getSelectionManager(); in addMenuItems() 96 GraphicalEditorPart graphicalEditor = mCanvas.getEditorDelegate().getGraphicalEditor(); in addMenuItems() 123 PlayAnimationMenu sub = new PlayAnimationMenu(mCanvas, "Android Builtin", true); in addMenuItems() 144 SelectionManager selectionManager = mCanvas.getSelectionManager(); in run() 151 ViewHierarchy viewHierarchy = mCanvas.getViewHierarchy(); in run() 159 SelectionOverlay selectionOverlay = mCanvas.getSelectionOverlay(); in run() 163 HoverOverlay hoverOverlay = mCanvas.getHoverOverlay(); in run() 168 ImageOverlay imageOverlay = mCanvas.getImageOverlay(); in run() [all …]
|
D | LayoutCanvasViewer.java | 48 private LayoutCanvas mCanvas; field in LayoutCanvasViewer 56 mCanvas = new LayoutCanvas(editorDelegate, rulesEngine, parent, style); in LayoutCanvasViewer() 58 mCanvas.getSelectionManager().addSelectionChangedListener(mSelectionListener); in LayoutCanvasViewer() 71 return mCanvas; in getControl() 83 return mCanvas; in getCanvas() 107 return mCanvas.getSelectionManager().getSelection(); in getSelection() 120 mCanvas.getSelectionManager().setSelection(selection); in setSelection() 131 mCanvas.getSelectionManager().removeSelectionChangedListener(mSelectionListener); in dispose() 133 if (mCanvas != null) { in dispose() 134 mCanvas.dispose(); in dispose() [all …]
|
D | MoveGesture.java | 50 private LayoutCanvas mCanvas; field in MoveGesture 118 mCanvas = canvas; in MoveGesture() 133 mCanvas.getSelectionOverlay().setHidden(true); in begin() 140 mCanvas.getSelectionOverlay().setHidden(false); in end() 144 mCanvas.getSelectionManager().syncOutlineSelection(); in end() 230 if (mGlobalDragInfo.getSourceCanvas() == mCanvas && in recomputeDragType() 334 ViewHierarchy viewHierarchy = mCanvas.getViewHierarchy(); in drop() 396 mCanvas.getEditorDelegate().getEditor().wrapUndoEditXmlModel(label, new Runnable() { in drop() 400 mCanvas.getRulesEngine().callOnDropped(mTargetNode, in drop() 418 NodeFactory nodeFactory = mCanvas.getNodeFactory(); in drop() [all …]
|
D | ResizeGesture.java | 43 private LayoutCanvas mCanvas; field in ResizeGesture 63 mCanvas = canvas; in ResizeGesture() 77 mCanvas.getSelectionOverlay().setHidden(true); in begin() 79 RulesEngine rulesEngine = mCanvas.getRulesEngine(); in begin() 81 ViewHierarchy viewHierarchy = mCanvas.getViewHierarchy(); in begin() 89 mCanvas.getGestureManager().updateMessage(mFeedback); in begin() 94 update(mCanvas.getGestureManager().getCurrentControlPoint()); in keyPressed() 95 mCanvas.redraw(); in keyPressed() 101 update(mCanvas.getGestureManager().getCurrentControlPoint()); in keyReleased() 102 mCanvas.redraw(); in keyReleased() [all …]
|
D | ControlPoint.java | 34 private final LayoutCanvas mCanvas; field in ControlPoint 135 mCanvas = canvas; in ControlPoint() 148 int lx = mCanvas.getHorizontalTransform().inverseTranslate(x); in toLayout() 149 int ly = mCanvas.getVerticalTransform().inverseTranslate(y); in toLayout() 151 return LayoutPoint.create(mCanvas, lx, ly); in toLayout() 181 if (mCanvas != other.mCanvas) { in equals() 193 return mCanvas.toDisplay(x, y); in toDisplayPoint()
|
D | SelectionOverlay.java | 39 private final LayoutCanvas mCanvas; field in SelectionOverlay 48 mCanvas = canvas; in SelectionOverlay() 98 CanvasViewInfo root = mCanvas.getViewHierarchy().getRoot(); in paint() 100 NodeProxy parent = mCanvas.getNodeFactory().create(root); in paint() 113 CanvasViewInfo root = mCanvas.getViewHierarchy().getRoot(); in paint() 115 NodeProxy parent = mCanvas.getNodeFactory().create(root); in paint() 131 Rect b = mCanvas.getImageOverlay().getImageBounds(); in paintHints() 143 double scale = mCanvas.getScale(); in paintHints() 170 ViewHierarchy viewHierarchy = mCanvas.getViewHierarchy(); in paintSelectionFeedback() 203 Margins insets = mCanvas.getInsets(selectedNode.getFqcn()); in paintSelection() [all …]
|
D | LayoutPoint.java | 33 private final LayoutCanvas mCanvas; field in LayoutPoint 99 mCanvas = canvas; in LayoutPoint() 112 int cx = mCanvas.getHorizontalTransform().translate(x); in toControl() 113 int cy = mCanvas.getVerticalTransform().translate(y); in toControl() 115 return ControlPoint.create(mCanvas, cx, cy); in toControl()
|
D | SelectionManager.java | 96 private LayoutCanvas mCanvas; field in SelectionManager 124 mCanvas = layoutCanvas; in SelectionManager() 285 mCanvas.getEditorDelegate().recomputeLayout(); in setSelection() 306 LayoutPoint p = ControlPoint.create(mCanvas, e).toLayout(); in menuClick() 323 CanvasViewInfo vi = mCanvas.getViewHierarchy().findViewInfoAt(p); in menuClick() 345 LayoutPoint p = ControlPoint.create(mCanvas, e).toLayout(); in select() 370 CanvasViewInfo vi = mCanvas.getViewHierarchy().findViewInfoAt(p); in select() 389 mCanvas.getEditorDelegate().recomputeLayout(); in select() 414 vi, mCanvas.getViewHierarchy().findAltViewInfoAt(p)); in select() 463 vi = mCanvas.getViewHierarchy().getRoot(); in selectSingle() [all …]
|
D | RenderPreviewManager.java | 98 private final @NonNull LayoutCanvas mCanvas; field in RenderPreviewManager 125 mCanvas = canvas; in RenderPreviewManager() 146 GraphicalEditorPart editor = mCanvas.getEditorDelegate().getGraphicalEditor(); in getChooser() 157 return mCanvas; in getCanvas() 184 mCanvas.redraw(); in zoomReset() 192 RenderPreview preview = mCanvas.getPreview(); in updatedZoom() 199 mCanvas.redraw(); in updatedZoom() 229 mCanvas.setFitScale(true /* onlyZoomOut */, true /*allowZoomIn*/); in deleteManualPreviews() 256 mCanvas.redraw(); in deletePreview() 313 Rectangle clientArea = mCanvas.getClientArea(); in layout() [all …]
|
D | ClipboardSupport.java | 58 private LayoutCanvas mCanvas; field in ClipboardSupport 68 mCanvas = canvas; in ClipboardSupport() 103 GraphicalEditorPart graphicalEditor = mCanvas.getEditorDelegate().getGraphicalEditor(); in copySelectionToClipboard() 121 message != null ? message : SelectionItem.getAsText(mCanvas, selection) in copySelectionToClipboard() 147 deleteSelection(mCanvas.getCutLabel(), selection); in cutSelectionToClipboard() 192 boolean multiple = mCanvas.getSelectionManager().hasMultiSelection(); in deleteSelection() 207 mCanvas.getEditorDelegate().getEditor().wrapUndoEditXmlModel(title, new Runnable() { in deleteSelection() 230 RulesEngine rulesEngine = mCanvas.getRulesEngine(); in deleteSelection() 270 CanvasViewInfo lastRoot = mCanvas.getViewHierarchy().getRoot(); in pasteSelection() 289 final NodeProxy targetNode = mCanvas.getNodeFactory().create(target); in pasteSelection() [all …]
|
D | LintOverlay.java | 43 private final LayoutCanvas mCanvas; field in LintOverlay 53 mCanvas = canvas; in LintOverlay() 63 LayoutEditorDelegate editor = mCanvas.getEditorDelegate(); in paint() 69 ViewHierarchy hierarchy = mCanvas.getViewHierarchy(); in paint() 74 CanvasTransform mHScale = mCanvas.getHorizontalTransform(); in paint() 75 CanvasTransform mVScale = mCanvas.getVerticalTransform(); in paint()
|
D | CanvasTransform.java | 38 private final LayoutCanvas mCanvas; field in CanvasTransform 62 mCanvas = layoutCanvas; in CanvasTransform() 72 CanvasTransform.this.mCanvas.redraw(); in CanvasTransform() 150 ImageOverlay imageOverlay = mCanvas.getImageOverlay(); in resizeScrollbar() 164 if (mCanvas.getPreviewManager().hasPreviews()) { in resizeScrollbar()
|
D | FragmentMenu.java | 61 private final LayoutCanvas mCanvas; field in FragmentMenu 70 mCanvas = canvas; in FragmentMenu() 78 SelectionManager selectionManager = mCanvas.getSelectionManager(); in addMenuItems() 103 IProject project = mCanvas.getEditorDelegate().getEditor().getProject(); in addMenuItems() 117 String self = mCanvas.getLayoutResourceName(); in addMenuItems() 218 SelectionManager selectionManager = mCanvas.getSelectionManager(); in getSelectedLayout() 237 LayoutEditorDelegate delegate = mCanvas.getEditorDelegate(); in setNewLayout() 239 SelectionManager selectionManager = mCanvas.getSelectionManager(); in setNewLayout() 252 mCanvas.redraw(); in setNewLayout() 288 LayoutEditorDelegate delegate = mCanvas.getEditorDelegate(); in run()
|
D | IncludeOverlay.java | 41 private LayoutCanvas mCanvas; field in IncludeOverlay 49 mCanvas = canvas; in IncludeOverlay() 54 ViewHierarchy viewHierarchy = mCanvas.getViewHierarchy(); in paint() 63 Image image = mCanvas.getImageOverlay().getImage(); in paint() 79 ControlPoint topLeft = LayoutPoint.create(mCanvas, mask.x, mask.y).toControl(); in paint() 80 ControlPoint bottomRight = LayoutPoint.create(mCanvas, mask.x + mask.width, in paint()
|
D | ListViewTypeMenu.java | 47 private final LayoutCanvas mCanvas; field in ListViewTypeMenu 63 mCanvas = canvas; in ListViewTypeMenu() 70 GraphicalEditorPart graphicalEditor = mCanvas.getEditorDelegate().getGraphicalEditor(); in addMenuItems() 168 LayoutEditorDelegate delegate = mCanvas.getEditorDelegate(); in run() 188 SelectionManager selectionManager = mCanvas.getSelectionManager(); in getSelectedLayout() 204 LayoutEditorDelegate delegate = mCanvas.getEditorDelegate(); in setNewType() 206 SelectionManager selectionManager = mCanvas.getSelectionManager(); in setNewType() 218 mCanvas.redraw(); in setNewType()
|
D | MarqueeGesture.java | 40 private LayoutCanvas mCanvas; field in MarqueeGesture 53 mCanvas = canvas; in MarqueeGesture() 80 LayoutPoint topLeft = ControlPoint.create(mCanvas, x, y).toLayout(); in update() 81 LayoutPoint bottomRight = ControlPoint.create(mCanvas, x + w, y + h).toLayout(); in update() 82 mCanvas.getSelectionManager().selectWithin(topLeft, bottomRight, mInitialSelection); in update()
|
D | ExportScreenshotAction.java | 36 private final LayoutCanvas mCanvas; field in ExportScreenshotAction 40 mCanvas = canvas; in ExportScreenshotAction() 47 ImageOverlay imageOverlay = mCanvas.getImageOverlay(); in run()
|
D | ImageOverlay.java | 78 private LayoutCanvas mCanvas; field in ImageOverlay 94 mCanvas = canvas; in ImageOverlay() 142 mImage = SwtUtils.convertToSwt(mCanvas.getDisplay(), awtImage, in setImage() 153 mImage = SwtUtils.convertToSwt(mCanvas.getDisplay(), awtImage, true, -1); in setImage() 210 boolean valid = mCanvas.getViewHierarchy().isValid(); in paint() 211 mCanvas.ensureZoomed(); in paint() 262 mPreScaledImage = SwtUtils.convertToSwt(mCanvas.getDisplay(), scaledAwtImage, in paint()
|
D | SelectionItem.java | 39 private LayoutCanvas mCanvas; field in SelectionItem 64 mCanvas = canvas; in SelectionItem() 73 mNodeProxy = mCanvas.getNodeFactory().create(canvasViewInfo); in SelectionItem() 135 return mCanvas; in getCanvas()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | ControlPointTest.java | 25 ControlPoint point = ControlPoint.create(mCanvas, mouseEvent); in testCreateFromMouseEvent() 31 ControlPoint point = ControlPoint.create(mCanvas, 10, 20); in testCreateFromCoordinates() 56 ControlPoint point1 = ControlPoint.create(mCanvas, 1, 1); in testEquals() 57 ControlPoint point2 = ControlPoint.create(mCanvas, 1, 2); in testEquals() 58 ControlPoint point3 = ControlPoint.create(mCanvas, 2, 1); in testEquals() 59 ControlPoint point2b = ControlPoint.create(mCanvas, 1, 2); in testEquals()
|
D | LayoutPointTest.java | 21 LayoutPoint point = LayoutPoint.create(mCanvas, 10, 20); in testCreateFromCoordinates() 27 LayoutPoint point1 = LayoutPoint.create(mCanvas, 1, 1); in testEquals() 28 LayoutPoint point2 = LayoutPoint.create(mCanvas, 1, 2); in testEquals() 29 LayoutPoint point3 = LayoutPoint.create(mCanvas, 2, 1); in testEquals() 30 LayoutPoint point2b = LayoutPoint.create(mCanvas, 1, 2); in testEquals()
|
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/views/ |
D | MultiTouchView.java | 47 private Canvas mCanvas; field in MultiTouchView 97 mCanvas = new Canvas(mBitmap); in onSizeChanged() 155 if (mCanvas != null) { in drawBitmap() 161 mCanvas.drawBitmap(bmp, mDrawMatrix, mPaint); in drawBitmap() 176 if (mCanvas != null) { in drawJpeg() 182 mCanvas.drawBitmap(bmp, mDrawMatrix, mPaint); in drawJpeg()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
D | NodeFactory.java | 38 private LayoutCanvas mCanvas; field in NodeFactory 41 mCanvas = canvas; in NodeFactory() 66 return mCanvas; in getCanvas()
|