Home | History | Annotate | Download | only in relative

Lines Matching refs:state

50         GuidelineHandler state = (GuidelineHandler) feedback.userData;
52 for (INode dragged : state.mDraggedNodes) {
60 Set<INode> horizontalDeps = state.mHorizontalDeps;
61 Set<INode> verticalDeps = state.mVerticalDeps;
69 if (state.mDraggedNodes.contains(n)) {
77 if (state.mBounds != null) {
78 if (state instanceof MoveHandler) {
82 if (state.haveSuggestions()) {
88 gc.drawRect(state.mBounds);
92 int y = state.mBounds.y + feedback.dragBaseline;
93 gc.drawLine(state.mBounds.x, y, state.mBounds.x2(), y);
99 showMatch(gc, state.mCurrentLeftMatch, state, strings,
100 state.mLeftMargin, ATTR_LAYOUT_MARGIN_LEFT);
101 showMatch(gc, state.mCurrentRightMatch, state, strings,
102 state.mRightMargin, ATTR_LAYOUT_MARGIN_RIGHT);
103 showMatch(gc, state.mCurrentTopMatch, state, strings,
104 state.mTopMargin, ATTR_LAYOUT_MARGIN_TOP);
105 showMatch(gc, state.mCurrentBottomMatch, state, strings,
106 state.mBottomMargin, ATTR_LAYOUT_MARGIN_BOTTOM);
121 if (state.mCurrentLeftMatch != null) {
123 } else if (state.mCurrentRightMatch != null) {
126 if (state.mCurrentTopMatch != null) {
128 } else if (state.mCurrentBottomMatch != null) {
135 if (state.mHorizontalCycle != null) {
136 paintCycle(gc, state, state.mHorizontalCycle);
138 if (state.mVerticalCycle != null) {
139 paintCycle(gc, state, state.mVerticalCycle);
144 private void showMatch(IGraphics gc, Match m, GuidelineHandler state, List<String> strings,
149 ConstraintPainter.paintConstraint(gc, state.mBounds, m);
160 int dp = state.getRulesEngine().pxToDp(margin);
167 void paintCycle(IGraphics gc, GuidelineHandler state, List<Constraint> cycle) {
173 if (state.mDraggedNodes.contains(from)) {
174 fromBounds = state.mBounds;
191 boolean isDragged = state.mDraggedNodes.contains(to);
193 toCenter = state.mBounds.center();