Changeset 968


Ignore:
Timestamp:
10/13/15 13:16:45 (9 years ago)
Author:
bln4
Message:

Altered the YXLayout algorithm to handle daisy chaining. This was achieved by modifying the algorithm so that when it is following a arrow to construct a line it continues right to the end of the chain and works backwards (recursively).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/io/flowlayout/XGroupItem.java

    r959 r968  
    412412
    413413       
    414        
    415414        protected void repositionOutOfFlowGroupsFollowLine(XGroupItem toplevel_xgroup, Item remaining_item, Collection<XGroupItem> out_of_flow)
    416415        {
     
    454453                                                if (xgroup_item != this) {
    455454                                                       
     455                                                        if(out_of_flow.contains(xgroup_item)) continue;
     456                                                       
    456457                                                        out_of_flow.add(xgroup_item);
     458                                                       
     459                                                        for (Item remaining_item_deeper: xgroup_item.getRemainingItemList()) {
     460                                                                xgroup_item.repositionOutOfFlowGroupsFollowLine(toplevel_xgroup,remaining_item_deeper,out_of_flow);
     461                                                        }
     462                                                                                                               
     463                                                       
     464                                                       
    457465                                                        // Can't delete here, as it causes a concurrent exception => add to 'out_of_flow' hashmap and perform removal later
    458466                                                       
     
    462470
    463471                                                        Rectangle start_rect = start_item.getArea().getBounds();
    464                                                        
    465472                                                       
    466473                                                        XGroupItem xgroup_item_shallow_copy = new XGroupItem(xgroup_item,start_rect);
Note: See TracChangeset for help on using the changeset viewer.