/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
AdapterViewRule.java | 19 import com.android.ide.common.api.DropFeedback; 30 public DropFeedback onDropEnter(INode targetNode, Object targetView, IDragElement[] elements) { 33 DropFeedback dropFeedback = new DropFeedback(null, new IFeedbackPainter() { 35 public void paint(IGraphics gc, INode node, DropFeedback feedback) { 45 dropFeedback.errorMessage = String.format( 48 dropFeedback.invalidTarget = true; 49 return dropFeedback; 53 public DropFeedback onDropMove(INode targetNode, IDragElement[] elements [all...] |
FrameLayoutRule.java | 25 import com.android.ide.common.api.DropFeedback; 53 public DropFeedback onDropEnter(INode targetNode, Object targetView, 59 return new DropFeedback(null, new IFeedbackPainter() { 61 public void paint(IGraphics gc, INode node, DropFeedback feedback) { 71 DropFeedback feedback) { 116 public DropFeedback onDropMove(INode targetNode, IDragElement[] elements, 117 DropFeedback feedback, Point p) { 124 public void onDropLeave(INode targetNode, IDragElement[] elements, DropFeedback feedback) { 130 final DropFeedback feedback, final Point p) {
|
HorizontalScrollViewRule.java | 27 import com.android.ide.common.api.DropFeedback; 65 public DropFeedback onDropMove(INode targetNode, IDragElement[] elements, 66 DropFeedback feedback, Point p) { 67 DropFeedback f = super.onDropMove(targetNode, elements, feedback, p); 81 DropFeedback feedback) {
|
ScrollViewRule.java | 25 import com.android.ide.common.api.DropFeedback; 62 public DropFeedback onDropMove(INode targetNode, IDragElement[] elements, 63 DropFeedback feedback, Point p) { 64 DropFeedback f = super.onDropMove(targetNode, elements, feedback, p); 78 DropFeedback feedback) {
|
AbsoluteLayoutRule.java | 25 import com.android.ide.common.api.DropFeedback; 59 public DropFeedback onDropEnter(INode targetNode, Object targetView, 66 DropFeedback df = new DropFeedback(null, new IFeedbackPainter() { 68 public void paint(IGraphics gc, INode node, DropFeedback feedback) { 82 DropFeedback feedback) { 131 public DropFeedback onDropMove(INode targetNode, IDragElement[] elements, 132 DropFeedback feedback, Point p) { 133 // Update the data used by the DropFeedback.paintCallback above. 141 public void onDropLeave(INode targetNode, IDragElement[] elements, DropFeedback feedback) [all...] |
IgnoredLayoutRule.java | 19 import com.android.ide.common.api.DropFeedback; 35 public DropFeedback onDropEnter(INode targetNode, Object targetView, IDragElement[] elements) {
|
TableRowRule.java | 20 import com.android.ide.common.api.DropFeedback; 68 public DropFeedback onResizeBegin(INode child, INode parent, SegmentType horizontalEdge,
|
RelativeLayoutRule.java | 44 import com.android.ide.common.api.DropFeedback; 153 public DropFeedback onDropEnter(INode targetNode, Object targetView, IDragElement[] elements) { 154 return new DropFeedback(new MoveHandler(targetNode, elements, mRulesEngine), 159 public DropFeedback onDropMove(INode targetNode, IDragElement[] elements, 160 DropFeedback feedback, Point p) { 177 public void onDropLeave(INode targetNode, IDragElement[] elements, DropFeedback feedback) { 182 final DropFeedback feedback, final Point p) { 289 public DropFeedback onResizeBegin(INode child, INode parent, 294 return new DropFeedback(state, new GuidelinePainter()); 298 public void onResizeUpdate(DropFeedback feedback, INode child, INode parent, Rect newBounds [all...] |
GridLayoutRule.java | 35 import com.android.ide.common.api.DropFeedback; 271 public DropFeedback onDropEnter(INode targetNode, Object targetView, IDragElement[] elements) { 274 return new DropFeedback(userData, painter); 278 public DropFeedback onDropMove(INode targetNode, IDragElement[] elements, 279 DropFeedback feedback, Point p) { 290 DropFeedback feedback, Point p) { 493 return (state.modifierMask & DropFeedback.MODIFIER2) == 0; 573 DropFeedback feedback = onDropEnter(targetNode, targetView, elements);
|
LinearLayoutRule.java | 35 import com.android.ide.common.api.DropFeedback; 269 public DropFeedback onDropEnter(final INode targetNode, Object targetView, 344 return new DropFeedback(new LinearDropData(indexes, posCount, isVertical, selfPos), 348 public void paint(IGraphics gc, INode node, DropFeedback feedback) { 356 void drawFeedback(IGraphics gc, INode node, IDragElement[] elements, DropFeedback feedback) { 469 public DropFeedback onDropMove(INode targetNode, IDragElement[] elements, 470 DropFeedback feedback, Point p) { 535 public void onDropLeave(INode targetNode, IDragElement[] elements, DropFeedback feedback) { 541 final DropFeedback feedback, final Point p) { [all...] |
BaseLayoutRule.java | 57 import com.android.ide.common.api.DropFeedback; 248 DropFeedback feedback = onDropEnter(targetNode, targetView, elements); 274 DropFeedback feedback = onDropEnter(parentNode, parentView, elements); 609 public DropFeedback onResizeBegin(INode child, INode parent, 639 return new DropFeedback(state, new IFeedbackPainter() { 641 public void paint(IGraphics gc, INode node, DropFeedback feedback) { 740 public void onResizeUpdate(DropFeedback feedback, INode child, INode parent, [all...] |
TableLayoutRule.java | 20 import com.android.ide.common.api.DropFeedback; 186 public DropFeedback onResizeBegin(INode child, INode parent, SegmentType horizontalEdge,
|
/sdk/rule_api/src/com/android/ide/common/api/ |
AbstractViewRule.java | 76 public DropFeedback onDropEnter(INode targetNode, Object targetView, IDragElement[] elements) { 82 public DropFeedback onDropMove(INode targetNode, IDragElement[] elements, 83 DropFeedback feedback, Point p) { 88 public void onDropLeave(INode targetNode, IDragElement[] elements, DropFeedback feedback) { 96 DropFeedback feedback, 124 public DropFeedback onResizeBegin(INode child, INode parent, SegmentType horizontalEdge, 130 public void onResizeUpdate(DropFeedback feedback, INode child, INode parent, Rect newBounds, 135 public void onResizeEnd(DropFeedback feedback, INode child, final INode parent,
|
IViewRule.java | 156 * interested, returns a DropFeedback passed to onDrop/Move/Leave/Paint. If 165 * @return a {@link DropFeedback} object with drop state (which will be 170 DropFeedback onDropEnter(@NonNull INode targetNode, @Nullable Object targetView, 174 * Called after onDropEnter. Returns a DropFeedback passed to 182 * @param feedback the {@link DropFeedback} object created by 185 * @return a {@link DropFeedback} (which is usually just the same one passed 189 DropFeedback onDropMove( 192 @Nullable DropFeedback feedback, 215 * @param feedback the {@link DropFeedback} object created by 221 @Nullable DropFeedback feedback) [all...] |
IFeedbackPainter.java | 38 void paint(@NonNull IGraphics gc, @NonNull INode targetNode, @NonNull DropFeedback feedback);
|
DropFeedback.java | 30 public class DropFeedback { 62 * or onDropMove() operation would return a {@link DropFeedback} with 134 public DropFeedback(@Nullable Object userData, @Nullable IFeedbackPainter painter) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/ |
ZoomControlsRuleTest.java | 19 import com.android.ide.common.api.DropFeedback; 46 DropFeedback feedback = rule.onDropEnter(layout, null/*targetView*/, elements);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
MoveGesture.java | 18 import com.android.ide.common.api.DropFeedback; 87 private DropFeedback mFeedback; 93 * trash the current DropFeedback from the current view rule in dragLeave(). 102 private DropFeedback mLeaveFeedback; 254 // trash the current DropFeedback from the current view rule, we need to preserve 285 // dragLeave then we restore the DropFeedback that we saved in dragLeave. 529 * Updates the {@link DropFeedback#isCopy} and {@link DropFeedback#sameCanvas} fields 530 * of the given {@link DropFeedback}. This is generally called right before invoking 533 * @param df The current {@link DropFeedback} [all...] |
ResizeGesture.java | 19 import com.android.ide.common.api.DropFeedback; 50 private DropFeedback mFeedback;
|
GestureManager.java | 19 import com.android.ide.common.api.DropFeedback; 351 * {@link DropFeedback} object, or clean up if there is no more feedback to process 355 void updateMessage(DropFeedback feedback) { 421 modifierMask |= DropFeedback.MODIFIER1; 424 modifierMask |= DropFeedback.MODIFIER2; 427 modifierMask |= DropFeedback.MODIFIER3; [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
RulesEngine.java | 22 import com.android.ide.common.api.DropFeedback; 255 * If interested, returns a DropFeedback passed to onDrop/Move/Leave/Paint. 259 public DropFeedback callOnDropEnter(NodeProxy targetNode, 280 * Returns a DropFeedback passed to onDrop/Move/Leave/Paint (typically same 283 public DropFeedback callOnDropMove(NodeProxy targetNode, 285 DropFeedback feedback, 309 DropFeedback feedback) { 330 DropFeedback feedback, 350 * Called when a paint has been requested via DropFeedback. 354 DropFeedback feedback) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/ |
ResizeHandler.java | 30 import com.android.ide.common.api.DropFeedback; 164 public void updateResize(DropFeedback feedback, INode child, Rect newBounds, 166 mSnap = (modifierMask & DropFeedback.MODIFIER2) == 0;
|
MoveHandler.java | 30 import com.android.ide.common.api.DropFeedback; 161 public void updateMove(DropFeedback feedback, IDragElement[] elements, 163 mSnap = (modifierMask & DropFeedback.MODIFIER2) == 0;
|
GuidelinePainter.java | 27 import com.android.ide.common.api.DropFeedback; 48 public void paint(IGraphics gc, INode node, DropFeedback feedback) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/ |
GridLayoutPainter.java | 23 import com.android.ide.common.api.DropFeedback; 130 public void paint(IGraphics gc, INode node, DropFeedback feedback) { 151 private void paintFreeFormDropFeedback(IGraphics gc, INode node, DropFeedback feedback,
|