Lines Matching +full:i +full:- +full:mate
2 * $Id: mxAndroid.js,v 1.5 2014/01/21 12:32:06 mate Exp $
3 * Copyright (c) 2006-2013, JGraph Ltd
55 var selectedButton = -1;
58 for (var i = 0; i < buttonNum; i++)
60 var buttonText = textStrings[i];
64 buttonText = textStrings[i].substring(1);
65 selectedButton = i;
68 …buttonWidths[i] = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).w…
70 buttonTotalWidth += buttonWidths[i];
84 for (var i = 0; i < buttonNum; i++)
86 if (i === selectedButton)
96 this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW);
97 currWidth = currWidth + buttonWidths[i] + labelOffset;
114 for (var i = 1; i < buttonNum; i++)
116 if (i !== selectedButton && i !== (selectedButton + 1))
120 for (var j = 0; j < i; j++)
137 for (var i = 0; i < selectedButton; i++)
139 buttonLeft += buttonWidths[i] + 2 * labelOffset;
146 c.rect(buttonLeft, 0, buttonRight - buttonLeft, h);
151 c.rect(buttonLeft, h * 0.9, buttonRight - buttonLeft, h * 0.1);
271 …c.text(w - 30, h * 0.5 + 1, 0, 0, '12:00', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, nu…
275 c.moveTo(w - 37, h * 0.5 + 6);
276 c.lineTo(w - 37, h * 0.5 - 5);
277 c.lineTo(w - 36, h * 0.5 - 5);
278 c.lineTo(w - 36, h * 0.5 - 6);
279 c.lineTo(w - 32, h * 0.5 - 6);
280 c.lineTo(w - 32, h * 0.5 - 5);
281 c.lineTo(w - 31, h * 0.5 - 5);
282 c.lineTo(w - 31, h * 0.5 + 6);
287 c.ellipse(w - 56, h * 0.5 + 2, 2, 2);
292 c.moveTo(w - 52, h * 0.5 + 1);
293 c.arcTo(3.5, 3.5, 0, 0, 0, w - 58, h * 0.5 + 1);
297 c.moveTo(w - 50, h * 0.5 - 1);
298 c.arcTo(6, 6, 0, 0, 0, w - 60, h * 0.5 - 1);
303 c.rect(w - 51, h * 0.5 + 5, 2, 1);
306 c.rect(w - 48, h * 0.5 + 2, 2, 4);
309 c.rect(w - 45, h * 0.5 - 1, 2, 7);
312 c.rect(w - 42, h * 0.5 - 4, 2, 10);
315 c.rect(w - 37, h * 0.5 - 2, 6, 8);
369 var selected = -1;
375 for (var i = 0; i < optionNum; i++)
377 var currText = optionText[i];
381 currText = optionText[i].substring(1);
382 selected = i;
405 for (var i = 0; i < optionNum; i++)
407 var currHeight = (i * lineH + lineH * 0.5) * trueH / minH;
409 var currText = optionText[i];
413 currText = optionText[i].substring(1);
414 selected = i;
420 var iconY = currHeight - buttonSize * 0.5;
422 if (selected === i)
438 selected = -1;
492 var selected = -1;
498 for (var i = 0; i < optionNum; i++)
500 var currText = optionText[i];
504 currText = optionText[i].substring(1);
505 selected = i;
529 for (var i = 0; i < optionNum; i++)
531 var currHeight = (i * lineH + lineH * 0.5) * trueH / minH;
533 var currText = optionText[i];
537 currText = optionText[i].substring(1);
538 selected = i;
544 var iconY = currHeight - buttonSize * 0.5;
546 if (selected === i)
600 for (var i = 0; i < buttonNum; i++)
602 var buttonText = textStrings[i];
628 for (var i = 1; i < buttonNum; i++)
630 var currHeight = i * minButtonHeight * trueH / minH;
637 for (var i = 0; i < buttonNum; i++)
640 var currHeight = (i * minButtonHeight + minButtonHeight * 0.5) * trueH / minH;
641 …c.text(10, currHeight, 0, 0, textStrings[i], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, …
678 var barH = Math.max(0, h - handleSizeX * 1.5);
681 c.rect(handleSizeX, 0, w - 2 * handleSizeX, barH);
685 c.moveTo(0, h - handleSizeX);
686 c.lineTo(handleSizeX * 0.5, h - handleSizeX * 1.5);
687 c.lineTo(handleSizeX, h - handleSizeX);
689 c.moveTo(w - handleSizeX, h - handleSizeX);
690 c.lineTo(w - handleSizeX * 0.5, h - handleSizeX * 1.5);
691 c.lineTo(w, h - handleSizeX);
696 c.rect(0, h - handleSizeX, handleSizeX, handleSizeX);
698 c.rect(w - handleSizeX, h - handleSizeX, handleSizeX, handleSizeX);
961 …this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.widt…
971 …this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.widt…
1033 c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r);
1040 c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r);
1058 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width…
1118 c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r);
1132 c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r);
1150 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width…
1211 c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r);
1225 c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r);
1243 …this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width…
1285 …var dy = Math.min(h - 20, Math.max(20, h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(thi…
1294 c.moveTo(w - 3, 0);
1295 c.lineTo(w - 3, h);
1300 c.roundrect(w - 6, dy - 10, 6, 20, 1, 1);
1305 c.rect(0, dy - 20, w - 18, 40);
1310 c.moveTo(w - 18, dy - 20);
1311 c.lineTo(w - 6, dy);
1312 c.lineTo(w - 18, dy + 20);
1317 …c.text((w - 18) * 0.5, dy, 0, 0, 'Aa', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null…
1330 …return new mxPoint(bounds.x + bounds.width - 3, bounds.y + Math.min(bounds.height - 20, Math.max(2…
1333 …this.state.style['dy'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.heig…
1375 …var dy = Math.min(h - 10, Math.max(10, h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(thi…
1389 c.roundrect(w * 0.5 - 3, dy - 10, 6, 20, 1, 1);
1403 …return new mxPoint(bounds.x + bounds.width * 0.5, bounds.y + Math.min(bounds.height - 10, Math.max…
1406 …this.state.style['dy'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.heig…
1447 c.rect(w - 5, 0, 5, h - 7);
1451 c.rect(0, h - 5, w - 7, 5);
1500 c.moveTo(w - s, h);
1501 c.lineTo(w, h - s);