Project

General

Profile

Change Request #3978

[UI] Resolve code duplication in the link-method of link visuals

Added by Tiziano Munaro 8 months ago. Updated 8 months ago.

Status:
New
Priority:
Normal
Category:
-
Start date:
03/27/2020
Due date:
% Done:

0%

Estimated time:

Description

The `link` methods of the `CurvedLinkLayoutedContentAnchorangeController` and `CurvedLinkLayoutedDiagramAnchorangeController` are currently identical. However, as the division in the class hierarchy of anchorage- and diagram controllers comes before the one of lines and curves, the removal of this code duplication by moving it to a common subclass is not trivial. A utility method is not ideal either, as the method contains a `super` call to a protected method.

In the following illustration the code dupliction is between CAC and CDC:

        CB
    /       \
   AC       DC
  / \      / \
LAC CAC  LDG  CDC

History

#1 Updated by Tiziano Munaro 8 months ago

  • Description updated (diff)

Also available in: Atom PDF