Lines Matching +full:i +full:- +full:mate
2 * $Id: mxMockupText.js,v 1.4 2013/05/24 07:12:36 mate Exp $
3 * Copyright (c) 2006-2010, JGraph Ltd
53 c.moveTo(w * 0.5 - width * 0.5, (h + parseInt(textSize, 10)) * 0.5);
109 var selectedButton = -1;
113 for (var i = 0; i < buttonNum; i++)
115 var buttonText = textStrings[i];
119 buttonText = textStrings[i].substring(1);
120 selectedButton = i;
127 buttonWidths[i] = 42;
131 buttonWidths[i] = currW;
134 buttonTotalWidth += buttonWidths[i];
147 for (var i = 0; i < buttonNum; i++)
149 if (i === selectedButton)
161 this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW);
162 currWidth = currWidth + buttonWidths[i] + labelOffset;
180 for (var i = 1; i < buttonNum; i++)
182 if (i !== selectedButton && i !== (selectedButton + 1))
186 for (var j = 0; j < i; j++)
203 for (var i = 0; i < selectedButton; i++)
205 buttonLeft += buttonWidths[i] + 2 * labelOffset;
217 else if (selectedButton === buttonNum - 1)
219 c.rect(buttonLeft, 0, buttonRight - buttonLeft, h);
222 else if (selectedButton !== -1)
224 c.rect(buttonLeft, 0, buttonRight - buttonLeft, h);
251 c.moveTo((w + buttonWidth * 0.5) * trueW / minW - textW, h * 0.5 + fontSize * 0.5);
297 enumList:[{val: 'NW', dispName:'North-West'},
298 {val: 'NE', dispName:'North-East'},
299 {val: 'SE', dispName:'South-East'},
300 {val: 'SW', dispName:'South-West'}]},
368 c.lineTo(w - textWidth, callH);
374 c.rect(w - textWidth,0, textWidth, callH);
377 c.moveTo(w - textWidth * 0.5, callH);
383 c.roundrect(w - textWidth,0, textWidth, callH, callH * 0.25, callH * 0.25);
386 c.moveTo(w - textWidth * 0.5, callH);
391 …c.text(w - textWidth * 0.5, callH * 0.5, 0, 0, calloutText, mxConstants.ALIGN_CENTER, mxConstants.…
399 c.lineTo(w - textWidth, h);
405 c.rect(w - textWidth, h - callH, textWidth, callH);
408 c.moveTo(w - textWidth * 0.5, h - callH);
414 c.roundrect(w - textWidth,h - callH, textWidth, callH, callH * 0.25, callH * 0.25);
417 c.moveTo(w - textWidth * 0.5, h - callH);
422 …c.text(w - textWidth * 0.5, h - callH * 0.5, 0, 0, calloutText, mxConstants.ALIGN_CENTER, mxConsta…
436 c.rect(0, h - callH, textWidth, callH);
439 c.moveTo(textWidth * 0.5, h - callH);
445 c.roundrect(0, h - callH, textWidth, callH, callH * 0.25, callH * 0.25);
448 c.moveTo(textWidth * 0.5, h - callH);
453 …c.text(textWidth * 0.5, h - callH * 0.5, 0, 0, calloutText, mxConstants.ALIGN_CENTER, mxConstants.…
533 for (var i = 0; i < mainText.length; i++)
535 …c.text(w / 2, (h - textH) / 2 + i * fontSize * 1.5 + fontSize * 0.75, 0, 0, mainText[i], mxConstan…
668 for (var i = 0; i < mainText.length; i++)
674 currText = (i + 1) + ') ' + mainText[i];
678 currText = '- ' + mainText[i];
682 currText = String.fromCharCode(8226) + ' ' + mainText[i];
686 currText = ' ' + mainText[i];
689 …c.text(10, i * fontSize * 1.5 + fontSize * 0.75, 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstan…
750 for (var i = 0; i < mainText.length; i++)
752 …c.text(5, i * fontSize * 1.5 + fontSize * 0.75, 0, 0, mainText[i], mxConstants.ALIGN_LEFT, mxConst…
874 …(this.style, mxShapeMockupAlphanumeric.prototype.cst.MAIN_TEXT, '0-9 A B C D E F G H I J K L M N O…
885 c.moveTo(w * 0.5 - width * 0.5, (h + parseInt(textSize, 10)) * 0.5);