Lines Matching +full:i +full:- +full:mate

2  * $Id: mxMockupContainers.js,v 1.10 2013/07/09 11:19:51 mate Exp $
3 * Copyright (c) 2006-2010, JGraph Ltd
91 var barY = h - barHeight;
94 var barMax = w - buttonR;
95 var barRange = barMax - barMin;
114 c.ellipse(barEnd - buttonR, barY - buttonR, 2 * buttonR, 2 * buttonR);
119 c.ellipse(barEnd - buttonR * 0.5, barY - buttonR * 0.5, buttonR, buttonR);
124 var iconY = h - (barHeight + iconSize) * 0.5;
139 var speakerY = h - barHeight;
157 var screenX = w - barHeight * 1.3;
180 …c.text(barHeight * 1.9, h - barHeight * 0.45, 0, 0, '0:00/3:53', mxConstants.ALIGN_LEFT, mxConstan…
193 …oint(bounds.x + ((bounds.width - 16) * barPos / bounds.width) / 100 * bounds.width + 8, bounds.y +…
196 …this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 /…
203 return new mxPoint(bounds.x + bounds.width - 20, bounds.y + bounds.height - barHeight);
206 … = Math.round(1000 * Math.max(0, Math.min(bounds.height, bounds.y + bounds.height - pt.y))) / 1000;
262 var selectedButton = -1;
266 for (var i = 0; i < buttonNum; i++)
268 var buttonText = textStrings[i];
272 buttonText = textStrings[i].substring(1);
273 selectedButton = i;
297 for (var i = 0; i < buttonNum; i++)
299 if (i === selectedButton)
311 if (selectedButton === -1 || i <= selectedButton)
313 currHeight = (i * minButtonHeight + minButtonHeight * 0.5);
317 currHeight = trueH - (buttonNum - i - 0.5) * minButtonHeight;
320 this.buttonText(c, trueW, currHeight, textStrings[i], fontSize);
342 for (var i = 1; i < buttonNum; i++)
344 if (i !== selectedButton)
346 if (selectedButton === -1 || i < selectedButton)
348 var currHeight = i * minButtonHeight;
354 var currHeight = h - (buttonNum - i) * minButtonHeight;
367 if (selectedButton !== -1)
478 c.ellipse(w - 75, 5, 20, 20);
481 c.ellipse(w - 50, 5, 20, 20);
485 c.ellipse(w - 25, 5, 20, 20);
510 c.lineTo(w - 15, 55);
511 c.arcTo(5, 5, 0, 0, 1, w - 10, 60);
512 c.lineTo(w - 10, 85);
513 c.arcTo(5, 5, 0, 0, 1, w - 15, 90);
546 c.setStrokeWidth(strokeWidth * 2); // i'm not sure why i have to multiply here
568 c.setStrokeWidth(strokeWidth * 2); // i'm not sure why i have to multiply here
569 c.translate(-95, 0);
1061 c.roundrect(0, fontSize * 0.5, w, h - fontSize * 0.5, 5, 5);
1153 c.ellipse(w - 75, 5, 20, 20);
1156 c.ellipse(w - 50, 5, 20, 20);
1160 c.ellipse(w - 25, 5, 20, 20);
1233 var minW = 2 * startOffset + (tabCount - 1) * tabOffset + tabCount * 2 * labelOffset;
1236 var selectedTab = -1;
1238 for (var i = 0; i < tabCount; i++)
1240 var currLabel = tabNames[i];
1245 selectedTab = i;
1252 labelWidths[i] = 40;
1256 labelWidths[i] = currW;
1259 minW = minW + labelWidths[i];
1279 c.lineTo(w - rSize, tabH);
1292 for (var i=0; i < tabCount; i++)
1294 var tabW = labelWidths[i] + 2 * labelOffset;
1296 if (selectedTab !== i)
1307 c.lineTo(currW + tabW - labelOffset * 0.5, 0);
1321 c.moveTo(currW - rSize, tabH);
1322 c.arcTo(rSize, rSize, 0, 0, 0, currW, tabH - rSize);
1325 c.lineTo(currW + tabW - rSize, 0);
1327 c.lineTo(currW + tabW, tabH - rSize);
1347 for (var i=0; i <= selectedTab; i++)
1349 var tabW = labelWidths[i] + 2 * labelOffset;
1351 if (selectedTab === i)
1362 c.lineTo(w - rSize, tabH);
1373 c.lineTo(currW + tabW - labelOffset * 0.5, 0);
1375 c.lineTo(w - rSize, tabH);
1388 c.lineTo(w - rSize, tabH);
1397 c.lineTo(currW - rSize, tabH);
1398 c.arcTo(rSize, rSize, 0, 0, 0, currW, tabH - rSize);
1401 c.lineTo(currW + tabW - rSize, 0);
1403 c.lineTo(currW + tabW, tabH - rSize);
1405 c.lineTo(w - rSize, tabH);
1428 for (var i=0; i < tabCount; i++)
1430 var currLabel = tabNames[i];
1432 if (i === selectedTab)
1442 var tabW = labelWidths[i] + 2 * labelOffset;
1448 if (i === selectedTab)
1508 var selectedTab = -1;
1509 for (var i = 0; i < tabCount; i++)
1511 var currLabel = tabNames[i];
1516 selectedTab = i;
1523 labelWidths[i] = 42;
1527 labelWidths[i] = currW;
1534 h = Math.max(h, 2 * startOffset + tabCount * tabH + (tabCount - 1) * tabOffset);
1549 c.arcTo(rSize, rSize, 0, 0, 1, tabW, h - rSize);
1564 for (var i=0; i < tabCount; i++)
1566 if (selectedTab !== i)
1576 c.arcTo(rSize, rSize, 0, 0, 0, tabW - rSize, currH + tabH);
1578 c.arcTo(rSize, rSize, 0, 0, 1, 0, currH + tabH - rSize);
1581 c.lineTo(tabW - rSize, currH);
1582 c.arcTo(rSize, rSize, 0, 0, 0, tabW, currH - rSize);
1597 if (selectedTab !== -1)
1608 c.arcTo(rSize, rSize, 0, 0, 1, tabW, h - rSize);
1621 c.arcTo(rSize, rSize, 0, 0, 1, tabW, h - rSize);
1623 c.arcTo(rSize, rSize, 0, 0, 0, tabW - rSize, currH + tabH);
1625 c.arcTo(rSize, rSize, 0, 0, 1, 0, currH + tabH - rSize);
1628 c.lineTo(tabW - rSize, currH);
1629 c.arcTo(rSize, rSize, 0, 0, 0, tabW, currH - rSize);
1651 for (var i=0; i < tabCount; i++)
1653 var currLabel = tabNames[i];
1655 if (i === selectedTab)
1669 if (i === selectedTab)
1744 c.ellipse(w - 25, 5, 20, 20);
1762 var buttonW = (w - buttonOffset * (buttonCount + 1)) / buttonCount;
1770 for (var i = 0; i < buttonText.length; i++)
1772 if (buttonText[i] !== '')
1774 c.rect(currW, h - 10 - fontSize * 1.5, buttonW, fontSize * 1.5);
1776 …c.text(currW + buttonW * 0.5, h - 10 - fontSize * 0.75, 0, 0, buttonText[i], mxConstants.ALIGN_CEN…
1783 for (var i = 0; i < subText.length; i++)
1785 …c.text(w * 0.5, 30 + fontSize * (i * 1.5 + 0.75), 0, 0, subText[i], mxConstants.ALIGN_CENTER, mxCo…
1913 c.lineTo(w - rSize, 0);
1967 c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize);
2035 var w1 = w - marginRight - x1 - margin;
2036 var h1 = h - marginBottom - y1 - margin;
2107 var w1 = w - marginRight - x1 - margin;
2108 var h1 = h - marginBottom - y1 - margin;