문제

In booggie 2, I can export graphs to yEd's graphML-Format. However, I've no clue how the node and edge type definitions in the metamodel should look like such that I can control their visual appearance

Could anyone please provide an example?

도움이 되었습니까?

해결책

This is how a node type definition (has to be named YEdNode) with some yEd-attribute definitions looks like:

node class YEdNode{
    height: int = 50;
    width: int = 100;
    x: int = 0;
    y: int = 0;
    color : string = "#FFFFFF";
    shape : Shape = Shape::RECTANGLE;
    label : string = "";
}

And the same for an edge type definition (has to be named YEdEdge):

edge class YEdEdge{
    color : string = "#000000";
    lineWidth: int = 2;
    label : string ="";
    lineType : string = "line";
}

The shape-ENUM should look like that:

enum Shape {RECTANGLE, ROUNDRECTANGLE, ELLIPSE, PARALLELOGRAM, HEXAGON, TRIANGLE, RECTANGLE3D, OCTAGON, DIAMOND, TRAPEZOID, TRAPEZOID2}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top