-
I am using the method For example some elements can contain only specific other elements. I can define this by calling the ShapeTypeHint shapeTypeHint = new ShapeTypeHint("Container", true, true, false, true);
shapeTypeHint.setContainableElementTypeIds(Arrays.asList(new String[] { "StartType","EndType" });); But what I can't figure out is, how to define which of my elements are containable in the root plane? Currently every element can be placed to the root diagram, but I want to restrict the list to a subset. Is this possible? Thanks for any hints. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @rsoika, ShapeTypeHint rootTypeHint = new ShapeTypeHint(DefaultTypes.GRAPH, false, false, false, false);
rootTypeHint.setContainableElementTypeIds(...); |
Beta Was this translation helpful? Give feedback.
Hi @rsoika,
you can also use a ShapeTypeHint to restrict the containable elements of the root plane (i.e. the graph element):