Home
last modified time | relevance | path

Searched refs:event (Results 1 – 25 of 131) sorted by relevance

123456

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DMoveGesture.java169 public void dragEnter(DropTargetEvent event) { in dragEnter() argument
170 if (DEBUG) AdtPlugin.printErrorToConsole("DEBUG", "drag enter", event); in dragEnter()
193 if (sxt.isSupportedType(event.currentDataType)) { in dragEnter()
194 mCurrentDragElements = (SimpleElement[]) sxt.nativeToJava(event.currentDataType); in dragEnter()
206 event.detail = DND.DROP_NONE; in dragEnter()
209 dragOperationChanged(event); in dragEnter()
217 public void dragOperationChanged(DropTargetEvent event) { in dragOperationChanged() argument
218 if (DEBUG) AdtPlugin.printErrorToConsole("DEBUG", "drag changed", event); in dragOperationChanged()
220 checkDataType(event); in dragOperationChanged()
221 recomputeDragType(event); in dragOperationChanged()
[all …]
DControlPoint.java54 public static ControlPoint create(LayoutCanvas canvas, MouseEvent event) { in create() argument
57 assert event.widget == canvas : event.widget; in create()
58 return new ControlPoint(canvas, event.x, event.y); in create()
69 public static ControlPoint create(LayoutCanvas canvas, MenuDetectEvent event) { in create() argument
71 org.eclipse.swt.graphics.Point p = canvas.toControl(event.x, event.y); in create()
87 public static ControlPoint create(LayoutCanvas canvas, DragSourceEvent event) { in create() argument
90 return new ControlPoint(canvas, event.x, event.y); in create()
102 public static ControlPoint create(LayoutCanvas canvas, DropTargetEvent event) { in create() argument
105 org.eclipse.swt.graphics.Point p = canvas.toControl(event.x, event.y); in create()
DDropGesture.java36 public void dragEnter(DropTargetEvent event) { in dragEnter() argument
45 public void dragOver(DropTargetEvent event) { in dragOver() argument
55 public void dragOperationChanged(DropTargetEvent event) { in dragOperationChanged() argument
65 public void dragLeave(DropTargetEvent event) { in dragLeave() argument
75 public void dropAccept(DropTargetEvent event) { in dropAccept() argument
85 public void drop(final DropTargetEvent event) { in drop() argument
DOutlineDropListener.java47 public void dragEnter(DropTargetEvent event) { in dragEnter() argument
48 if (event.detail == DND.DROP_NONE && GlobalCanvasDragInfo.getInstance().isDragging()) { in dragEnter()
52 event.detail = operation; in dragEnter()
54 super.dragEnter(event); in dragEnter()
59 final DropTargetEvent event = getCurrentEvent(); in performDrop() local
60 if (event == null) { in performDrop()
63 int location = determineLocation(event); in performDrop()
70 if (sxt.isSupportedType(event.currentDataType)) { in performDrop()
84 CanvasViewInfo parent = OutlinePage.getViewInfo(event.item.getData()); in performDrop()
123 String label = MoveGesture.computeUndoLabel(targetNode, elements, event.detail); in performDrop()
[all …]
DLayoutPoint.java53 public static LayoutPoint create(LayoutCanvas canvas, MouseEvent event) { in create() argument
56 assert event.widget == canvas : event.widget; in create()
57 return ControlPoint.create(canvas, event).toLayout(); in create()
72 public static LayoutPoint create(LayoutCanvas canvas, DragSourceEvent event) { in create() argument
75 return ControlPoint.create(canvas, event).toLayout(); in create()
DLintTooltipManager.java69 public void handleEvent(Event event) { in handleEvent() argument
70 switch(event.type) { in handleEvent()
75 List<UiViewElementNode> nodes = computeNodes(event); in handleEvent()
98 show(event); in handleEvent()
111 private void show(Event event) { in show() argument
112 List<UiViewElementNode> nodes = computeNodes(event); in show()
147 private List<UiViewElementNode> computeNodes(Event event) { in computeNodes() argument
148 LayoutPoint p = ControlPoint.create(mCanvas, event.x, event.y).toLayout(); in computeNodes()
DLayoutCanvasViewer.java63 public void selectionChanged(SelectionChangedEvent event) {
64 fireSelectionChanged(event);
65 firePostSelectionChanged(event);
153 protected void firePostSelectionChanged(final SelectionChangedEvent event) { in firePostSelectionChanged() argument
160 l.selectionChanged(event); in firePostSelectionChanged()
DGestureManager.java272 private void updateMouse(ControlPoint mousePos, TypedEvent event) { in updateMouse() argument
609 public void dragEnter(DropTargetEvent event) { in dragEnter() argument
620 startGesture(ControlPoint.create(mCanvas, event), in dragEnter()
625 ((DropGesture) mCurrentGesture).dragEnter(event); in dragEnter()
633 public void dragOver(DropTargetEvent event) { in dragOver() argument
635 ((DropGesture) mCurrentGesture).dragOver(event); in dragOver()
644 public void dragLeave(DropTargetEvent event) { in dragLeave() argument
647 dropGesture.dragLeave(event); in dragLeave()
648 finishGesture(ControlPoint.create(mCanvas, event), true); in dragLeave()
660 public void dropAccept(DropTargetEvent event) { in dropAccept() argument
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/ui/
DStatusPanel.java147 public void controlResized(ControlEvent event) { in StatusPanel()
152 public void controlMoved(ControlEvent event) { in StatusPanel()
185 public void widgetSelected(SelectionEvent event) { in buildScaleControl()
186 super.widgetSelected(event); in buildScaleControl()
188 Scale scale = (Scale) event.widget; in buildScaleControl()
204 public void widgetSelected(SelectionEvent event) { in buildZoomControl()
205 super.widgetSelected(event); in buildZoomControl()
207 Scale scale = (Scale) event.widget; in buildZoomControl()
222 public void widgetSelected(SelectionEvent event) { in buildCheckboxes()
223 super.widgetSelected(event); in buildCheckboxes()
[all …]
DImageViewer.java222 public void widgetSelected(SelectionEvent event) { in ImageViewer()
223 super.widgetSelected(event); in ImageViewer()
224 ScrollBar bar = (ScrollBar) event.widget; in ImageViewer()
237 public void widgetSelected(SelectionEvent event) { in ImageViewer()
238 super.widgetSelected(event); in ImageViewer()
239 ScrollBar bar = (ScrollBar) event.widget; in ImageViewer()
297 public void mouseDown(MouseEvent event) { in mouseDown() argument
298 if (event.button == 1 && !isShiftPressed) { in mouseDown()
301 } else if (event.button == 3 || isShiftPressed) { in mouseDown()
308 public void mouseUp(MouseEvent event) { in mouseUp() argument
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DPointTestCases.java36 Event event = new Event(); in canvasMouseEvent() local
37 event.x = x; in canvasMouseEvent()
38 event.y = y; in canvasMouseEvent()
39 event.stateMask = stateMask; in canvasMouseEvent()
40 event.widget = mCanvas; in canvasMouseEvent()
41 MouseEvent mouseEvent = new MouseEvent(event); in canvasMouseEvent()
/sdk/testapps/testSensors/src/com/android/tests/testsensors/
DTestSensorsActivity.java175 public void onSensorChanged(SensorEvent event) { in onSensorChanged() argument
178 final int nArgs = event.values.length; in onSensorChanged()
181 val = String.format(mTextFmt, event.values[0], event.values[1], event.values[2]); in onSensorChanged()
183 val = String.format(mTextFmt, event.values[0], event.values[1]); in onSensorChanged()
185 val = String.format(mTextFmt, event.values[0]); in onSensorChanged()
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/
DScreenViewer.java23 import java.awt.event.ActionEvent;
24 import java.awt.event.ActionListener;
25 import java.awt.event.MouseAdapter;
26 import java.awt.event.MouseEvent;
27 import java.awt.event.MouseMotionAdapter;
28 import java.awt.event.MouseWheelEvent;
29 import java.awt.event.MouseWheelListener;
49 import javax.swing.event.ChangeEvent;
50 import javax.swing.event.ChangeListener;
141 public void stateChanged(ChangeEvent event) { in buildViewerAndControls()
[all …]
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/views/
DMultiTouchView.java195 public void constructEventMessage(ByteBuffer bb, MotionEvent event, int ptr_index) { in constructEventMessage() argument
196 bb.putInt(event.getPointerId(ptr_index)); in constructEventMessage()
198 bb.putInt((int) (event.getX(ptr_index) / mDx)); in constructEventMessage()
199 bb.putInt((int) (event.getY(ptr_index) / mDy)); in constructEventMessage()
201 bb.putInt((int) (event.getY(ptr_index) / mDy)); in constructEventMessage()
202 bb.putInt((int) (getWidth() - event.getX(ptr_index) / mDx)); in constructEventMessage()
206 int pressure = (int) (event.getPressure(ptr_index) * 100); in constructEventMessage()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/export/
DExportEditor.java100 protected void onDocumentChanged(DocumentEvent event) { in onDocumentChanged() argument
101 super.onDocumentChanged(event); in onDocumentChanged()
102 mExportPropsPage.onModelChanged(event); in onDocumentChanged()
DExportPropertiesPage.java104 public void onModelChanged(DocumentEvent event) { in onModelChanged() argument
106 mFieldsPart.onModelChanged(mEditor, event); in onModelChanged()
110 mLinksPart.onModelChanged(mEditor, event); in onModelChanged()
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/activities/
DMultiTouchActivity.java166 public boolean onTouch(View v, MotionEvent event) { in onTouch() argument
168 final int action = event.getAction(); in onTouch()
179 event.getPointerCount() * ProtocolConstants.MT_EVENT_ENTRY_SIZE); in onTouch()
181 for (int n = 0; n < event.getPointerCount(); n++) { in onTouch()
182 mImageView.constructEventMessage(bb, event, n); in onTouch()
191 mImageView.constructEventMessage(bb, event, action_pid_index); in onTouch()
199 bb.putInt(event.getPointerId(action_pid_index)); in onTouch()
207 mImageView.constructEventMessage(bb, event, action_pid_index); in onTouch()
215 bb.putInt(event.getPointerId(action_pid_index)); in onTouch()
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/action/
DDumpDisplayListAction.java21 import java.awt.event.KeyEvent;
22 import java.awt.event.ActionEvent;
DRefreshWindowsAction.java22 import java.awt.event.KeyEvent;
23 import java.awt.event.ActionEvent;
DStartServerAction.java22 import java.awt.event.KeyEvent;
23 import java.awt.event.ActionEvent;
DStopServerAction.java22 import java.awt.event.KeyEvent;
23 import java.awt.event.ActionEvent;
DCaptureLayersAction.java22 import java.awt.event.KeyEvent;
23 import java.awt.event.ActionEvent;
DCaptureNodeAction.java22 import java.awt.event.KeyEvent;
23 import java.awt.event.ActionEvent;
/sdk/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/handlers/
DStaticPortConfigHandler.java28 public Object execute(ExecutionEvent event) throws ExecutionException { in execute() argument
29 StaticPortConfigDialog dlg = new StaticPortConfigDialog(HandlerUtil.getActiveShell(event)); in execute()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
DMarginChooser.java193 public void handleEvent(Event event) { in handleEvent() argument
194 if (event.type == SWT.Modify) { in handleEvent()
196 if (event.widget instanceof Text) { in handleEvent()
197 Text text = (Text) event.widget; in handleEvent()
214 } else if (event.type == SWT.Selection) { in handleEvent()
216 if (event.widget instanceof Button) { in handleEvent()
217 Button button = (Button) event.widget; in handleEvent()

123456