|
Lines 137-150
Link Here
|
| 137 |
|
137 |
|
| 138 |
public static val GLOBAL_EDGE_LABEL_AD_HOC_NODES = ''' |
138 |
public static val GLOBAL_EDGE_LABEL_AD_HOC_NODES = ''' |
| 139 |
graph { |
139 |
graph { |
| 140 |
edge[label="TEXT"] |
140 |
edge[label=TEXT] |
| 141 |
1--2 |
141 |
1--2 |
| 142 |
} |
142 |
} |
| 143 |
''' |
143 |
''' |
| 144 |
|
144 |
|
| 145 |
public static val GLOBAL_NODE_LABEL_AD_HOC_NODES = ''' |
145 |
public static val GLOBAL_NODE_LABEL_AD_HOC_NODES = ''' |
| 146 |
graph { |
146 |
graph { |
| 147 |
node[label="TEXT"] |
147 |
node[label=TEXT] |
| 148 |
1--2 |
148 |
1--2 |
| 149 |
} |
149 |
} |
| 150 |
''' |
150 |
''' |
|
Lines 263-312
Link Here
|
| 263 |
|
263 |
|
| 264 |
/* |
264 |
/* |
| 265 |
************************************************************************************************************ |
265 |
************************************************************************************************************ |
| 266 |
* Sample dot graphs with local/global/override dot attributes |
266 |
* Sample dot graphs with global/local/override dot attributes |
| 267 |
************************************************************************************************************ |
267 |
************************************************************************************************************ |
| 268 |
*/ |
268 |
*/ |
| 269 |
|
269 |
public static val EDGE_ARROWHEAD_GLOBAL = ''' |
| 270 |
public static val NODE_LABEL_LOCAL = ''' |
270 |
digraph { |
| 271 |
graph { |
271 |
edge[arrowhead=crow] |
| 272 |
1[label="Node1"] |
272 |
1->2 |
|
|
273 |
3->4 |
| 273 |
} |
274 |
} |
| 274 |
''' |
275 |
''' |
| 275 |
|
276 |
|
| 276 |
public static val NODE_LABEL_GLOBAL = ''' |
277 |
public static val EDGE_ARROWHEAD_LOCAL = ''' |
| 277 |
graph { |
278 |
digraph { |
| 278 |
node[label="Node1"] |
279 |
1->2[arrowhead=diamond] |
| 279 |
1 |
280 |
3->4[arrowhead=dot] |
| 280 |
} |
281 |
} |
| 281 |
''' |
282 |
''' |
| 282 |
|
283 |
|
| 283 |
public static val EDGE_LABEL_LOCAL = ''' |
284 |
public static val EDGE_ARROWHEAD_OVERRIDE = ''' |
|
|
285 |
digraph { |
| 286 |
edge[arrowhead=tee] |
| 287 |
1->2[arrowhead=vee] |
| 288 |
3->4 |
| 289 |
} |
| 290 |
''' |
| 291 |
|
| 292 |
public static val EDGE_ARROWSIZE_GLOBAL = ''' |
| 293 |
digraph { |
| 294 |
edge[arrowsize=1.5] |
| 295 |
1->2 |
| 296 |
3->4 |
| 297 |
} |
| 298 |
''' |
| 299 |
|
| 300 |
public static val EDGE_ARROWSIZE_LOCAL = ''' |
| 301 |
digraph { |
| 302 |
1->2[arrowsize=2.0] |
| 303 |
3->4[arrowsize=2.1] |
| 304 |
} |
| 305 |
''' |
| 306 |
|
| 307 |
public static val EDGE_ARROWSIZE_OVERRIDE = ''' |
| 308 |
digraph { |
| 309 |
edge[arrowsize=2.2] |
| 310 |
1->2[arrowsize=2.3] |
| 311 |
3->4 |
| 312 |
} |
| 313 |
''' |
| 314 |
|
| 315 |
public static val EDGE_ARROWTAIL_GLOBAL = ''' |
| 316 |
digraph { |
| 317 |
edge[arrowtail=box] |
| 318 |
1->2 |
| 319 |
3->4 |
| 320 |
} |
| 321 |
''' |
| 322 |
|
| 323 |
public static val EDGE_ARROWTAIL_LOCAL = ''' |
| 324 |
digraph { |
| 325 |
1->2[arrowtail=lbox] |
| 326 |
3->4[arrowtail=rbox] |
| 327 |
} |
| 328 |
''' |
| 329 |
|
| 330 |
public static val EDGE_ARROWTAIL_OVERRIDE = ''' |
| 331 |
digraph { |
| 332 |
edge[arrowtail=obox] |
| 333 |
1->2[arrowtail=olbox] |
| 334 |
3->4 |
| 335 |
} |
| 336 |
''' |
| 337 |
|
| 338 |
public static val EDGE_DIR_GLOBAL = ''' |
| 339 |
digraph { |
| 340 |
edge[dir=forward] |
| 341 |
1->2 |
| 342 |
3->4 |
| 343 |
} |
| 344 |
''' |
| 345 |
|
| 346 |
public static val EDGE_DIR_LOCAL = ''' |
| 347 |
digraph { |
| 348 |
1->2[dir=forward] |
| 349 |
3->4[dir=back] |
| 350 |
} |
| 351 |
''' |
| 352 |
|
| 353 |
public static val EDGE_DIR_OVERRIDE = ''' |
| 354 |
digraph { |
| 355 |
edge[dir=back] |
| 356 |
1->2[dir=both] |
| 357 |
3->4 |
| 358 |
} |
| 359 |
''' |
| 360 |
|
| 361 |
public static val EDGE_HEADLABEL_GLOBAL = ''' |
| 284 |
graph { |
362 |
graph { |
| 285 |
1;2; |
363 |
edge[headlabel=EdgeHeadLabel1] |
| 286 |
1--2[label="Edge1"] |
364 |
1--2 |
|
|
365 |
3--4 |
| 366 |
} |
| 367 |
''' |
| 368 |
|
| 369 |
public static val EDGE_HEADLABEL_LOCAL = ''' |
| 370 |
graph { |
| 371 |
1--2[headlabel=EdgeHeadLabel2] |
| 372 |
3--4[headlabel=EdgeHeadLabel3] |
| 373 |
} |
| 374 |
''' |
| 375 |
|
| 376 |
public static val EDGE_HEADLABEL_OVERRIDE = ''' |
| 377 |
graph { |
| 378 |
edge[headlabel=EdgeHeadLabel4] |
| 379 |
1--2[headlabel=EdgeHeadLabel5] |
| 380 |
3--4 |
| 381 |
} |
| 382 |
''' |
| 383 |
|
| 384 |
public static val EDGE_HEAD_LP_LOCAL = ''' |
| 385 |
graph { |
| 386 |
1--2[head_lp="2.2,3.3" ] |
| 387 |
3--4[head_lp="-2.2,-3.3"] |
| 388 |
} |
| 389 |
''' |
| 390 |
|
| 391 |
public static val EDGE_ID_LOCAL = ''' |
| 392 |
graph { |
| 393 |
1--2[id=edgeID2] |
| 394 |
3--4[id=edgeID3] |
| 287 |
} |
395 |
} |
| 288 |
''' |
396 |
''' |
| 289 |
|
397 |
|
| 290 |
public static val EDGE_LABEL_GLOBAL = ''' |
398 |
public static val EDGE_LABEL_GLOBAL = ''' |
| 291 |
graph { |
399 |
graph { |
| 292 |
edge[label="Edge1"] |
400 |
edge[label=Edge1] |
| 293 |
1;2 |
|
|
| 294 |
1--2 |
401 |
1--2 |
|
|
402 |
3--4 |
| 403 |
} |
| 404 |
''' |
| 405 |
|
| 406 |
public static val EDGE_LABEL_LOCAL = ''' |
| 407 |
graph { |
| 408 |
1--2[label=Edge1] |
| 409 |
3--4[label=Edge2] |
| 410 |
} |
| 411 |
''' |
| 412 |
|
| 413 |
public static val EDGE_LABEL_OVERRIDE = ''' |
| 414 |
graph { |
| 415 |
edge[label=Edge3] |
| 416 |
1--2[label=Edge4] |
| 417 |
3--4 |
| 418 |
} |
| 419 |
''' |
| 420 |
|
| 421 |
public static val EDGE_LP_LOCAL = ''' |
| 422 |
graph { |
| 423 |
1--2[lp="0.3,0.4"] |
| 424 |
3--4[lp="0.5,0.6"] |
| 425 |
} |
| 426 |
''' |
| 427 |
|
| 428 |
public static val EDGE_POS_LOCAL = ''' |
| 429 |
graph { |
| 430 |
1--2[pos="0.0,0.0 1.0,1.0 2.0,2.0 3.0,3.0"] |
| 431 |
3--4[pos="4.0,4.0 5.0,5.0 6.0,6.0 7.0,7.0"] |
| 295 |
} |
432 |
} |
| 296 |
''' |
433 |
''' |
| 297 |
|
434 |
|
| 298 |
public static val EDGE_STYLE_GLOBAL = ''' |
435 |
public static val EDGE_STYLE_GLOBAL = ''' |
| 299 |
graph { |
436 |
graph { |
| 300 |
edge[style=dashed] |
437 |
edge[style=dashed] |
| 301 |
1;2 |
|
|
| 302 |
1--2 |
438 |
1--2 |
|
|
439 |
3--4 |
| 303 |
} |
440 |
} |
| 304 |
''' |
441 |
''' |
| 305 |
|
442 |
|
| 306 |
public static val EDGE_STYLE_LOCAL = ''' |
443 |
public static val EDGE_STYLE_LOCAL = ''' |
| 307 |
graph { |
444 |
graph { |
| 308 |
1;2; |
445 |
1--2[style=dashed] |
| 309 |
1->2[style=dashed] |
446 |
3--4[style=dotted] |
|
|
447 |
} |
| 448 |
''' |
| 449 |
|
| 450 |
public static val EDGE_STYLE_OVERRIDE = ''' |
| 451 |
graph { |
| 452 |
edge[style=bold] |
| 453 |
1--2[style="bold, dotted"] |
| 454 |
3--4 |
| 455 |
} |
| 456 |
''' |
| 457 |
|
| 458 |
public static val EDGE_TAILLABEL_GLOBAL = ''' |
| 459 |
graph { |
| 460 |
edge[taillabel=EdgeTailLabel1] |
| 461 |
1--2 |
| 462 |
3--4 |
| 463 |
} |
| 464 |
''' |
| 465 |
|
| 466 |
public static val EDGE_TAILLABEL_LOCAL = ''' |
| 467 |
graph { |
| 468 |
1--2[taillabel=EdgeTailLabel2] |
| 469 |
3--4[taillabel=EdgeTailLabel3] |
| 470 |
} |
| 471 |
''' |
| 472 |
|
| 473 |
public static val EDGE_TAILLABEL_OVERRIDE = ''' |
| 474 |
graph { |
| 475 |
edge[taillabel=EdgeTailLabel4] |
| 476 |
1--2[taillabel=EdgeTailLabel5] |
| 477 |
3--4 |
| 478 |
} |
| 479 |
''' |
| 480 |
|
| 481 |
public static val EDGE_TAIL_LP_LOCAL = ''' |
| 482 |
graph { |
| 483 |
1--2[tail_lp="-4.5,-6.7" ] |
| 484 |
3--4[tail_lp="-8.9,-10.11"] |
| 485 |
} |
| 486 |
''' |
| 487 |
|
| 488 |
public static val EDGE_XLABEL_GLOBAL = ''' |
| 489 |
graph { |
| 490 |
edge[xlabel=EdgeExternalLabel1] |
| 491 |
1--2 |
| 492 |
3--4 |
| 493 |
} |
| 494 |
''' |
| 495 |
|
| 496 |
public static val EDGE_XLABEL_LOCAL = ''' |
| 497 |
graph { |
| 498 |
1--2[xlabel=EdgeExternalLabel2] |
| 499 |
3--4[xlabel=EdgeExternalLabel3] |
| 500 |
} |
| 501 |
''' |
| 502 |
|
| 503 |
public static val EDGE_XLABEL_OVERRIDE = ''' |
| 504 |
graph { |
| 505 |
edge[xlabel=EdgeExternalLabel4] |
| 506 |
1--2[xlabel=EdgeExternalLabel5] |
| 507 |
3--4 |
| 508 |
} |
| 509 |
''' |
| 510 |
|
| 511 |
public static val EDGE_XLP_LOCAL = ''' |
| 512 |
graph { |
| 513 |
1--2[xlp=".3,.4"] |
| 514 |
3--4[xlp=".5,.6"] |
| 515 |
} |
| 516 |
''' |
| 517 |
|
| 518 |
public static val NODE_DISTORTION_GLOBAL = ''' |
| 519 |
graph { |
| 520 |
node[distortion=1.1] |
| 521 |
1 |
| 522 |
2 |
| 523 |
} |
| 524 |
''' |
| 525 |
|
| 526 |
public static val NODE_DISTORTION_LOCAL = ''' |
| 527 |
graph { |
| 528 |
1[distortion=1.2] |
| 529 |
2[distortion=1.3] |
| 530 |
} |
| 531 |
''' |
| 532 |
|
| 533 |
public static val NODE_DISTORTION_OVERRIDE = ''' |
| 534 |
graph { |
| 535 |
node[distortion=1.4] |
| 536 |
1[distortion=1.5] |
| 537 |
2 |
| 538 |
} |
| 539 |
''' |
| 540 |
|
| 541 |
public static val NODE_FIXEDSIZE_GLOBAL = ''' |
| 542 |
graph { |
| 543 |
node[fixedsize=true] |
| 544 |
1 |
| 545 |
2 |
| 546 |
} |
| 547 |
''' |
| 548 |
|
| 549 |
public static val NODE_FIXEDSIZE_LOCAL = ''' |
| 550 |
graph { |
| 551 |
1[fixedsize=true] |
| 552 |
2[fixedsize=false] |
| 553 |
} |
| 554 |
''' |
| 555 |
|
| 556 |
public static val NODE_FIXEDSIZE_OVERRIDE = ''' |
| 557 |
graph { |
| 558 |
node[fixedsize=true] |
| 559 |
1[fixedsize=false] |
| 560 |
2 |
| 561 |
} |
| 562 |
''' |
| 563 |
|
| 564 |
public static val NODE_HEIGHT_GLOBAL = ''' |
| 565 |
graph { |
| 566 |
node[height=1.2] |
| 567 |
1 |
| 568 |
2 |
| 569 |
} |
| 570 |
''' |
| 571 |
|
| 572 |
public static val NODE_HEIGHT_LOCAL = ''' |
| 573 |
graph { |
| 574 |
1[height=3.4] |
| 575 |
2[height=5.6] |
| 576 |
} |
| 577 |
''' |
| 578 |
|
| 579 |
public static val NODE_HEIGHT_OVERRIDE = ''' |
| 580 |
graph { |
| 581 |
node[height=7.8] |
| 582 |
1[height=9.11] |
| 583 |
2 |
| 584 |
} |
| 585 |
''' |
| 586 |
|
| 587 |
public static val NODE_ID_LOCAL = ''' |
| 588 |
graph { |
| 589 |
1[id=NodeID1] |
| 590 |
2[id=NodeID2] |
| 591 |
} |
| 592 |
''' |
| 593 |
|
| 594 |
public static val NODE_LABEL_GLOBAL = ''' |
| 595 |
graph { |
| 596 |
node[label=Node1] |
| 597 |
1 |
| 598 |
2 |
| 599 |
} |
| 600 |
''' |
| 601 |
|
| 602 |
public static val NODE_LABEL_LOCAL = ''' |
| 603 |
graph { |
| 604 |
1[label=Node1] |
| 605 |
2[label=Node2] |
| 606 |
} |
| 607 |
''' |
| 608 |
|
| 609 |
public static val NODE_LABEL_OVERRIDE = ''' |
| 610 |
graph { |
| 611 |
node[label=Node3] |
| 612 |
1[label=Node4] |
| 613 |
2 |
| 614 |
} |
| 615 |
''' |
| 616 |
|
| 617 |
public static val NODE_POS_LOCAL = ''' |
| 618 |
graph { |
| 619 |
1[pos=".1,.2!"] |
| 620 |
2[pos="-0.1,-2.3!"] |
| 621 |
} |
| 622 |
''' |
| 623 |
|
| 624 |
public static val NODE_SHAPE_GLOBAL = ''' |
| 625 |
graph { |
| 626 |
node[shape=box] |
| 627 |
1 |
| 628 |
2 |
| 629 |
} |
| 630 |
''' |
| 631 |
|
| 632 |
public static val NODE_SHAPE_LOCAL = ''' |
| 633 |
graph { |
| 634 |
1[shape=oval] |
| 635 |
2[shape=house] |
| 636 |
} |
| 637 |
''' |
| 638 |
|
| 639 |
public static val NODE_SHAPE_OVERRIDE = ''' |
| 640 |
graph { |
| 641 |
node[shape=pentagon] |
| 642 |
1[shape=circle] |
| 643 |
2 |
| 644 |
} |
| 645 |
''' |
| 646 |
|
| 647 |
public static val NODE_SIDES_GLOBAL = ''' |
| 648 |
graph { |
| 649 |
node[sides=3] |
| 650 |
1 |
| 651 |
2 |
| 652 |
} |
| 653 |
''' |
| 654 |
|
| 655 |
public static val NODE_SIDES_LOCAL = ''' |
| 656 |
graph { |
| 657 |
1[sides=4] |
| 658 |
2[sides=5] |
| 659 |
} |
| 660 |
''' |
| 661 |
|
| 662 |
public static val NODE_SIDES_OVERRIDE = ''' |
| 663 |
graph { |
| 664 |
node[sides=6] |
| 665 |
1[sides=7] |
| 666 |
2 |
| 667 |
} |
| 668 |
''' |
| 669 |
|
| 670 |
public static val NODE_SKEW_GLOBAL = ''' |
| 671 |
graph { |
| 672 |
node[skew=1.2] |
| 673 |
1 |
| 674 |
2 |
| 675 |
} |
| 676 |
''' |
| 677 |
|
| 678 |
public static val NODE_SKEW_LOCAL = ''' |
| 679 |
graph { |
| 680 |
1[skew=3.4] |
| 681 |
2[skew=5.6] |
| 682 |
} |
| 683 |
''' |
| 684 |
|
| 685 |
public static val NODE_SKEW_OVERRIDE = ''' |
| 686 |
graph { |
| 687 |
node[skew=7.8] |
| 688 |
1[skew="-7.8"] |
| 689 |
2 |
| 690 |
} |
| 691 |
''' |
| 692 |
|
| 693 |
public static val NODE_STYLE_GLOBAL = ''' |
| 694 |
graph { |
| 695 |
node[style="solid, dashed"] |
| 696 |
1 |
| 697 |
2 |
| 698 |
} |
| 699 |
''' |
| 700 |
|
| 701 |
public static val NODE_STYLE_LOCAL = ''' |
| 702 |
graph { |
| 703 |
1[style=bold] |
| 704 |
2[style=dotted] |
| 705 |
} |
| 706 |
''' |
| 707 |
|
| 708 |
public static val NODE_STYLE_OVERRIDE = ''' |
| 709 |
graph { |
| 710 |
node[style="bold, filled"] |
| 711 |
1[style=rounded] |
| 712 |
2 |
| 713 |
} |
| 714 |
''' |
| 715 |
|
| 716 |
public static val NODE_WIDTH_GLOBAL = ''' |
| 717 |
graph { |
| 718 |
node[width=1.2] |
| 719 |
1 |
| 720 |
2 |
| 721 |
} |
| 722 |
''' |
| 723 |
|
| 724 |
public static val NODE_WIDTH_LOCAL = ''' |
| 725 |
graph { |
| 726 |
1[width=3.4] |
| 727 |
2[width=5.6] |
| 728 |
} |
| 729 |
''' |
| 730 |
|
| 731 |
public static val NODE_WIDTH_OVERRIDE = ''' |
| 732 |
graph { |
| 733 |
node[width=7.8] |
| 734 |
1[width=9.11] |
| 735 |
2 |
| 736 |
} |
| 737 |
''' |
| 738 |
|
| 739 |
public static val NODE_XLABEL_GLOBAL = ''' |
| 740 |
graph { |
| 741 |
node[xlabel=NodeExternalLabel1] |
| 742 |
1 |
| 743 |
2 |
| 744 |
} |
| 745 |
''' |
| 746 |
|
| 747 |
public static val NODE_XLABEL_LOCAL = ''' |
| 748 |
graph { |
| 749 |
1[xlabel=NodeExternalLabel2] |
| 750 |
2[xlabel=NodeExternalLabel3] |
| 751 |
} |
| 752 |
''' |
| 753 |
|
| 754 |
public static val NODE_XLABEL_OVERRIDE = ''' |
| 755 |
graph { |
| 756 |
node[xlabel=NodeExternalLabel4] |
| 757 |
1[xlabel=NodeExternalLabel5] |
| 758 |
2 |
| 759 |
} |
| 760 |
''' |
| 761 |
|
| 762 |
public static val NODE_XLP_LOCAL = ''' |
| 763 |
graph { |
| 764 |
1[xlp="-0.3,-0.4"] |
| 765 |
2[xlp="-1.5,-1.6"] |
| 310 |
} |
766 |
} |
| 311 |
''' |
767 |
''' |
| 312 |
} |
768 |
} |