Lines Matching refs:w

33 mxShapeEREntity.prototype.paintVertexShape = function(c, x, y, w, h)  argument
40 w = Math.max(w, 2 * rSize);
42 this.background(c, x, y, w, h, rSize, fontColor);
44 this.mainText(c, x, y, w, h, mainText, fontSize, fontColor);
47 mxShapeEREntity.prototype.background = function(c, x, y, w, h, rSize, fontColor) argument
56 c.lineTo(w - rSize, 0);
57 c.arcTo(rSize, rSize, 0, 0, 1, w, rSize);
58 c.lineTo(w, h - rSize);
59 c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h);
69 c.lineTo(w, 0);
70 c.lineTo(w, h);
81 c.lineTo(w, 0);
82 c.lineTo(w, h);
86 rSize = Math.min(w, h);
89 c.lineTo(w - rSize * 0.1, rSize * 0.1);
90 c.lineTo(w - rSize * 0.1, h - rSize * 0.1);
98 mxShapeEREntity.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) argument
103 …c.text(w * 0.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, …
148 mxShapeEREntityExt.prototype.paintVertexShape = function(c, x, y, w, h) argument
171 w = Math.max(w, 2 * rSize, maxTextWidth + rSize);
173 this.background(c, x, y, w, h, rSize);
175 this.shapes(c, x, y, w, h, fontSize, mainColor, attrColor, rSize, barY);
176 this.mainText(c, x, y, w, h, mainText, fontSize, attrColor);
177 this.attrText(c, x, y, w, h, attributes, fontSize, strokeColor, barY, rSize);
180 mxShapeEREntityExt.prototype.background = function(c, x, y, w, h, rSize) argument
189 c.lineTo(w - rSize, 0);
190 c.arcTo(rSize, rSize, 0, 0, 1, w, rSize);
191 c.lineTo(w, h - rSize);
192 c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h);
199 c.lineTo(w, 0);
200 c.lineTo(w, h);
208 mxShapeEREntityExt.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) argument
213 …c.text(w * 0.5, fontSize * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0,…
216 mxShapeEREntityExt.prototype.shapes = function(c, x, y, w, h, fontSize, mainColor, attrColor, rSize… argument
225 c.lineTo(w - rSize, 0);
226 c.arcTo(rSize, rSize, 0, 0, 1, w, rSize);
227 c.lineTo(w, barY);
234 c.moveTo(w, barY);
235 c.lineTo(w, h - rSize);
236 c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h);
247 c.lineTo(w, 0);
248 c.lineTo(w, barY);
256 c.lineTo(w, barY);
257 c.lineTo(w, h);
269 c.lineTo(w - rSize, 0);
270 c.arcTo(rSize, rSize, 0, 0, 1, w, rSize);
271 c.lineTo(w, h - rSize);
272 c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h);
279 c.lineTo(w, 0);
280 c.lineTo(w, h);
288 mxShapeEREntityExt.prototype.attrText = function(c, x, y, w, h, attributes, fontSize, fontColor, ba… argument
341 mxShapeERAttribute.prototype.paintVertexShape = function(c, x, y, w, h) argument
348 w = Math.max(w, 2 * rSize);
350 this.background(c, x, y, w, h, rSize, fontColor);
352 this.mainText(c, x, y, w, h, mainText, fontSize, fontColor);
355 mxShapeERAttribute.prototype.background = function(c, x, y, w, h, rSize, fontColor) argument
362 c.ellipse(0, 0, w, h);
370 c.ellipse(0, 0, w, h);
372 rSize = Math.min(w, h);
374 c.ellipse(rSize * 0.1, rSize * 0.1, w - rSize * 0.2, h - rSize * 0.2);
379 mxShapeERAttribute.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) argument
384 …c.text(w * 0.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, …
425 mxShapeERHas.prototype.paintVertexShape = function(c, x, y, w, h) argument
432 w = Math.max(w, 2 * rSize);
434 this.background(c, x, y, w, h, rSize, fontColor);
436 this.mainText(c, x, y, w, h, mainText, fontSize, fontColor);
439 mxShapeERHas.prototype.background = function(c, x, y, w, h, rSize, fontColor) argument
447 c.lineTo(w * 0.5, 0);
448 c.lineTo(w, h * 0.5);
449 c.lineTo(w * 0.5, h);
459 c.lineTo(w * 0.5, 0);
460 c.lineTo(w, h * 0.5);
461 c.lineTo(w * 0.5, h);
465 c.moveTo(w * 0.1, h * 0.5);
466 c.lineTo(w * 0.5, h * 0.1);
467 c.lineTo(w * 0.9, h * 0.5);
468 c.lineTo(w * 0.5, h * 0.9);
474 mxShapeERHas.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) argument
479 …c.text(w * 0.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, …
520 mxShapeERCloud.prototype.paintVertexShape = function(c, x, y, w, h) argument
527 w = Math.max(w, 2 * rSize);
529 this.background(c, x, y, w, h, rSize, fontColor);
531 this.mainText(c, x, y, w, h, mainText, fontSize, fontColor);
534 mxShapeERCloud.prototype.background = function(c, x, y, w, h, rSize, fontColor) argument
537 c.moveTo(0.25 * w, 0.25 * h);
538 c.curveTo(0.05 * w, 0.25 * h, 0, 0.5 * h, 0.16 * w, 0.55 * h);
539 c.curveTo(0, 0.66 * h, 0.18 * w, 0.9 * h, 0.31 * w, 0.8 * h);
540 c.curveTo(0.4 * w, h, 0.7 * w, h, 0.8 * w, 0.8 * h);
541 c.curveTo(w, 0.8 * h, w, 0.6 * h, 0.875 * w, 0.5 * h);
542 c.curveTo(w, 0.3 * h, 0.8 * w, 0.1 * h, 0.625 * w, 0.2 * h);
543 c.curveTo(0.5 * w, 0.05 * h, 0.3 * w, 0.05 * h, 0.25 * w, 0.25 * h);
547 mxShapeERCloud.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) argument
552 …c.text(w * 0.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, …
593 mxShapeERHierarchy.prototype.paintVertexShape = function(c, x, y, w, h) argument
601 w = Math.max(w, 2 * rSize);
603 this.background(c, x, y, w, h, rSize, fontColor);
605 this.shapeText(c, x, y, w, h, mainText, subText, fontSize, fontColor);
608 mxShapeERHierarchy.prototype.background = function(c, x, y, w, h, rSize, fontColor) argument
617 c.lineTo(w - rSize, 0);
618 c.arcTo(rSize, rSize, 0, 0, 1, w, rSize);
619 c.lineTo(w, h - rSize);
620 c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h);
630 c.lineTo(w, 0);
631 c.lineTo(w, h);
642 c.lineTo(w, 0);
643 c.lineTo(w, h);
647 rSize = Math.min(w, h);
650 c.lineTo(w - rSize * 0.1, rSize * 0.1);
651 c.lineTo(w - rSize * 0.1, h - rSize * 0.1);
662 trX = w * 0.5;
665 w = w * 0.5 - rSize;
670 c.lineTo(w - rSize, 0);
671 c.arcTo(rSize, rSize, 0, 0, 1, w, rSize);
672 c.lineTo(w, h - rSize);
673 c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h);
681 trX = w * 0.5;
684 w = w * 0.5 - rSize;
688 c.lineTo(w, 0);
689 c.lineTo(w, h);
696 trX = w * 0.5;
699 w = w * 0.5 - rSize * 0.15;
705 c.lineTo(w, 0);
706 c.lineTo(w, h);
710 rSize = Math.min(w, h);
713 c.lineTo(w - rSize * 0.1, rSize * 0.1);
714 c.lineTo(w - rSize * 0.1, h - rSize * 0.1);
724 mxShapeERHierarchy.prototype.shapeText = function(c, x, y, w, h, text, subText, fontSize, fontColor… argument
729 …c.text(w * 0.25, (h - fontSize) * 0.5, 0, 0, text[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_…
730 …c.text(w * 0.25, (h + fontSize) * 0.5, 0, 0, text[1], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_…
731 …c.text(w * 0.7, (h - fontSize) * 0.5, 0, 0, subText[0], mxConstants.ALIGN_CENTER, mxConstants.ALIG…
732 …c.text(w * 0.7, (h + fontSize) * 0.5, 0, 0, subText[1], mxConstants.ALIGN_CENTER, mxConstants.ALIG…
777 mxShapeERNote.prototype.paintVertexShape = function(c, x, y, w, h) argument
785 w = Math.max(w, flipSize * 2);
787 this.background(c, x, y, w, h, flipSize);
789 this.flipShape(c, x, y, w, h, flipSize, backColor);
790 this.mainText(c, x, y, w, h, mainText, fontSize, fontColor);
793 mxShapeERNote.prototype.background = function(c, x, y, w, h, flipSize) argument
797 c.lineTo(w - flipSize, 0);
798 c.lineTo(w, flipSize);
799 c.lineTo(w, h);
805 mxShapeERNote.prototype.flipShape = function(c, x, y, w, h, flipSize, backColor) argument
810 c.moveTo(w - flipSize, 0);
811 c.lineTo(w, flipSize);
812 c.lineTo(w - flipSize, flipSize);
817 mxShapeERNote.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) argument
822 …c.text(w * 0.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, …
870 mxShapeERChen.prototype.paintVertexShape = function(c, x, y, w, h) argument
876 w = Math.max(w, flipSize * 2);
878 this.background(c, x, y, w, h);
880 this.foreground(c, x, y, w, h, fontSize, fontColor);
883 mxShapeERChen.prototype.background = function(c, x, y, w, h) argument
887 c.lineTo(w, 0);
888 c.lineTo(w, h);
894 mxShapeERChen.prototype.foreground = function(c, x, y, w, h, fontSize, fontColor) argument
898 c.lineTo(w, h * 0.25);
900 c.lineTo(w, h * 0.5);
902 c.lineTo(w, h * 0.75);
904 c.moveTo(w * 0.25, h * 0.5);
905 c.lineTo(w * 0.25, h);
907 c.moveTo(w * 0.5, h * 0.25);
908 c.lineTo(w * 0.5, h);
910 c.moveTo(w * 0.75, h * 0.5);
911 c.lineTo(w * 0.75, h);
917 …c.text(w * 0.5, h * 0.125, 0, 0, 'ERD Peter Chen\'s Notation', mxConstants.ALIGN_CENTER, mxConstan…
920 …c.text(w * 0.25, h * 0.375, 0, 0, 'Cardinality', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDL…
921 …c.text(w * 0.75, h * 0.375, 0, 0, 'Optionality', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDL…
924 …c.text(w * 0.125, h * 0.625, 0, 0, '1', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, nul…
925 …c.text(w * 0.375, h * 0.625, 0, 0, 'One', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, n…
926 …c.text(w * 0.625, h * 0.625, 0, 0, '0', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, nul…
927 …c.text(w * 0.875, h * 0.625, 0, 0, 'Optional', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE,…
929 …c.text(w * 0.125, h * 0.875, 0, 0, 'N', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, nul…
930 …c.text(w * 0.375, h * 0.875, 0, 0, 'Many', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, …
931 …c.text(w * 0.625, h * 0.875, 0, 0, '1', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, nul…
932 …c.text(w * 0.875, h * 0.875, 0, 0, 'Mandatory', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE…
981 mxShapeERBachman.prototype.paintVertexShape = function(c, x, y, w, h) argument
986 this.background(c, x, y, w, h);
988 this.foreground(c, x, y, w, h, fontSize, fontColor);
991 mxShapeERBachman.prototype.background = function(c, x, y, w, h) argument
995 c.lineTo(w, 0);
996 c.lineTo(w, h);
1002 mxShapeERBachman.prototype.foreground = function(c, x, y, w, h, fontSize, fontColor) argument
1006 c.lineTo(w, h * 0.125);
1008 c.lineTo(w, h * 0.25);
1010 c.lineTo(w, h * 0.375);
1012 c.lineTo(w, h * 0.5);
1014 c.lineTo(w, h * 0.625);
1016 c.lineTo(w, h * 0.75);
1018 c.lineTo(w, h * 0.875);
1020 c.moveTo(w * 0.5, h * 0.125);
1021 c.lineTo(w * 0.5, h);
1027 …c.text(w * 0.5, h * 0.0625, 0, 0, 'ERD Bachman\'s Notation', mxConstants.ALIGN_CENTER, mxConstants…
1030 …c.text(w * 0.52, h * 0.1875, 0, 0, 'Relationship', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDL…
1031 …c.text(w * 0.52, h * 0.3125, 0, 0, 'Cardinality (One)', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_…
1032 …c.text(w * 0.52, h * 0.4375, 0, 0, 'Cardinality (Many)', mxConstants.ALIGN_LEFT, mxConstants.ALIGN…
1033 …c.text(w * 0.52, h * 0.5625, 0, 0, 'Mandatory, One', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MID…
1034 …c.text(w * 0.52, h * 0.6875, 0, 0, 'Mandatory, Many', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MI…
1035 …c.text(w * 0.52, h * 0.8125, 0, 0, 'Optional, One', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDD…
1036 …c.text(w * 0.52, h * 0.9375, 0, 0, 'Optional, Many', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MID…
1040 c.moveTo(w * 0.04, h * 0.1875);
1041 c.lineTo(w * 0.25 - textWidth * 0.5, h * 0.1875);
1042 c.moveTo(w * 0.25 + textWidth * 0.5, h * 0.1875);
1043 c.lineTo(w * 0.46, h * 0.1875);
1045 …c.text(w * 0.25, h * 0.1875, 0, 0, 'has/forms', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE…
1047 c.moveTo(w * 0.04, h * 0.3125);
1048 c.lineTo(w * 0.46, h * 0.3125);
1050 c.moveTo(w * 0.04, h * 0.4375);
1051 c.lineTo(w * 0.46, h * 0.4375);
1052 c.moveTo(w * 0.46, h * 0.4050);
1053 c.lineTo(w * 0.4, h * 0.4375);
1054 c.lineTo(w * 0.46, h * 0.47);
1056 c.moveTo(w * 0.04, h * 0.5625);
1057 c.lineTo(w * 0.46, h * 0.5625);
1058 c.moveTo(w * 0.38, h * 0.53);
1059 c.lineTo(w * 0.38, h * 0.595);
1061 c.moveTo(w * 0.04, h * 0.6875);
1062 c.lineTo(w * 0.46, h * 0.6875);
1063 c.moveTo(w * 0.46, h * 0.655);
1064 c.lineTo(w * 0.4, h * 0.6875);
1065 c.lineTo(w * 0.46, h * 0.72);
1066 c.moveTo(w * 0.38, h * 0.655);
1067 c.lineTo(w * 0.38, h * 0.72);
1069 c.moveTo(w * 0.04, h * 0.8125);
1070 c.lineTo(w * 0.46, h * 0.8125);
1072 c.moveTo(w * 0.04, h * 0.9375);
1073 c.lineTo(w * 0.46, h * 0.9375);
1074 c.moveTo(w * 0.46, h * 0.9050);
1075 c.lineTo(w * 0.4, h * 0.9375);
1076 c.lineTo(w * 0.46, h * 0.97);
1082 c.ellipse(w * 0.46 - ellSize, h * 0.8125 - ellSize * 0.5, ellSize, ellSize);
1086 c.ellipse(w * 0.4 - ellSize, h * 0.9375 - ellSize * 0.5, ellSize, ellSize);
1136 mxShapeERInfEng.prototype.paintVertexShape = function(c, x, y, w, h) argument
1141 w = Math.max(w, h / 1.5);
1143 this.background(c, x, y, w, h);
1145 this.foreground(c, x, y, w, h, fontSize, fontColor);
1148 mxShapeERInfEng.prototype.background = function(c, x, y, w, h) argument
1152 c.lineTo(w, 0);
1153 c.lineTo(w, h);
1159 mxShapeERInfEng.prototype.foreground = function(c, x, y, w, h, fontSize, fontColor) argument
1163 c.lineTo(w, h * 0.2);
1165 c.lineTo(w, h * 0.4);
1167 c.lineTo(w, h * 0.6);
1169 c.lineTo(w, h * 0.8);
1171 c.moveTo(w * 0.5, h * 0.2);
1172 c.lineTo(w * 0.5, h);
1178 …c.text(w * 0.5, h * 0.1, 0, 0, 'ERD Information Engineering Notation', mxConstants.ALIGN_CENTER, m…
1181 …c.text(w * 0.52, h * 0.3, 0, 0, 'Zero or one', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0…
1182 …c.text(w * 0.52, h * 0.5, 0, 0, 'One only', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, n…
1183 …c.text(w * 0.52, h * 0.7, 0, 0, 'Zero or more', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, …
1184 …c.text(w * 0.52, h * 0.9, 0, 0, 'One or more', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0…
1189 c.moveTo(w * 0.04, h * 0.3);
1190 c.lineTo(w * 0.46, h * 0.3);
1191 c.moveTo(w * 0.46 - ellSize, h * 0.25);
1192 c.lineTo(w * 0.46 - ellSize, h * 0.35);
1194 c.moveTo(w * 0.04, h * 0.5);
1195 c.lineTo(w * 0.46, h * 0.5);
1196 c.moveTo(w * 0.46 - ellSize * 2, h * 0.45);
1197 c.lineTo(w * 0.46 - ellSize * 2, h * 0.55);
1198 c.moveTo(w * 0.46 - ellSize * 2.5, h * 0.45);
1199 c.lineTo(w * 0.46 - ellSize * 2.5, h * 0.55);
1201 c.moveTo(w * 0.04, h * 0.7);
1202 c.lineTo(w * 0.46, h * 0.7);
1203 c.moveTo(w * 0.46, h * 0.65);
1204 c.lineTo(w * 0.46 - ellSize * 2, h * 0.7);
1205 c.lineTo(w * 0.46, h * 0.75);
1208 c.moveTo(w * 0.04, h * 0.9);
1209 c.lineTo(w * 0.46, h * 0.9);
1210 c.moveTo(w * 0.46, h * 0.85);
1211 c.lineTo(w * 0.46 - ellSize * 2, h * 0.9);
1212 c.lineTo(w * 0.46, h * 0.95);
1213 c.moveTo(w * 0.46 - ellSize * 2.5, h * 0.85);
1214 c.lineTo(w * 0.46 - ellSize * 2.5, h * 0.95);
1218 c.ellipse(w * 0.46 - ellSize * 3, h * 0.3 - ellSize * 0.5, ellSize, ellSize);
1222 c.ellipse(w * 0.46 - ellSize * 3, h * 0.7 - ellSize * 0.5, ellSize, ellSize);
1439 mxShapeERRRect.prototype.paintVertexShape = function(c, x, y, w, h) argument
1444 c.roundrect(0, 0, w, h, rSize);
1493 mxShapeERAnchor.prototype.paintVertexShape = function(c, x, y, w, h) argument