Creating Intercardinal BorderNodes [message #1789914] |
Thu, 31 May 2018 18:48 |
Parsa Pourali Messages: 210 Registered: February 2014 |
Senior Member |
|
|
Hello,
I was wondering if there is a simple way of creating border nodes on the NorthEast, NorthWest, SouthEast or SouthWest of a node? Currently, sirius only allows for NEWS directions in its border node declaration. (And I can't use decorations as well). I guess setting an offset for a shape can also help, i.e., we say North direction , but set some offset and the figure moves forward so that it looks like NorthEast.
Thanks,
Parsa
[Updated on: Thu, 31 May 2018 22:07] Report message to a moderator
|
|
|
|
|
|
|
Re: Creating Intercardinal BorderNodes [message #1790639 is a reply to message #1789984] |
Wed, 13 June 2018 19:19 |
Parsa Pourali Messages: 210 Registered: February 2014 |
Senior Member |
|
|
Hi,
I have found that BorderItemLocator has an attribute to set the offset of the item. So, I attempted to set the offset to x=50 and y=50 to move the borderItem to kind of NorthWest side of the node. However, the getPreferredLocation() method of the BorderItemLocator class is written very rigidly. That is, even if I set both X and Y points of the offset, it can only move to one direction. For instance, if the side of the borderItem is set to North, then it only moves 50 points to up and completely ignores the X offset. You can simply see it in the getPreferredLocation() method. Is there any extension point that I could change this behaviour ?
Thanks,
Regards,
Parsa
|
|
|
Powered by
FUDForum. Page generated in 0.02454 seconds