Skip to main content



      Home
Home » Modeling » Eclipse Layout Kernel » Feature of adding custom processors in existing layouting algorithms
Feature of adding custom processors in existing layouting algorithms [message #1759019] Wed, 05 April 2017 06:49 Go to next message
Eclipse UserFriend
Hello,

i've implemented a new processor (ILayoutProcessor) and I'm adding it hardcoded to the existing Layered Layout Provider. For this approach i have added a line in the GraphConfigurator.prepareGraphForLayout method (algorithm.add(15, new LayerSizeProcessor())).

Is there a more convenient way of adding a processor to the algorithm list (Property InternalProperties.PROCESSORS)? Thanks in advance.

Best regards
Mehmet Karaman
Re: Feature of adding custom processors in existing layouting algorithms [message #1759020 is a reply to message #1759019] Wed, 05 April 2017 06:51 Go to previous messageGo to next message
Eclipse UserFriend
Hi Mehmet,

no, the algorithm is not designed to be augmented from the outside because of the way dependency resolution between processors works. What exactly does your processor do? If the feature is generally useful enough, we could consider adding it to the algorithm.

Cheers,
Christoph Daniel
Re: Feature of adding custom processors in existing layouting algorithms [message #1759023 is a reply to message #1759020] Wed, 05 April 2017 07:42 Go to previous messageGo to next message
Eclipse UserFriend
Hello Christoph,

thanks for answering. My processor finds the average or max width of nodes in the contained layer and sets to all nodes in the current layer. At the end it looks like rasterized and aligned on the left side with the same width of all nodes in one layer. If you find it useful i could provide the source code.

Best regards
Mehmet Karaman

[Updated on: Wed, 05 April 2017 10:30] by Moderator

Re: Feature of adding custom processors in existing layouting algorithms [message #1759169 is a reply to message #1759023] Fri, 07 April 2017 04:51 Go to previous message
Eclipse UserFriend
Hi Mehmet,

thanks a lot for your offer, but I think that's a bit too specific of a feature and not that easy to implement such that it works in the general case.

Cheers,
Christoph Daniel
Previous Topic:Turn off random layouting
Next Topic:Unwanted child nodes resize
Goto Forum:
  


Current Time: Mon May 19 18:11:36 EDT 2025

Powered by FUDForum. Page generated in 0.05280 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top