Ignore:
Timestamp:
07/10/08 15:50:20 (16 years ago)
Author:
ra33
Message:

Turned search actions into search agents so they are run on a different thread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/agents/Format.java

    r80 r133  
    108108                        int maxX = 0;
    109109                        int maxY = 0;
    110                         for (Item item : list) {
    111                                 maxX = Math.max(maxX, item.getX() + item.getBoundsWidth());
    112                                 maxY = Math.max(maxY, item.getY() + item.getBoundsHeight());
     110                        for (Item it : list) {
     111                                maxX = Math.max(maxX, it.getX() + it.getBoundsWidth());
     112                                maxY = Math.max(maxY, it.getY() + it.getBoundsHeight());
    113113                        }
    114114
    115115                        int xCheck = maxX;
    116                         for (Item item : columns.get(i + 1))
     116                        for (Item it : columns.get(i + 1))
    117117                                xCheck = Math.max(xCheck, maxX
    118                                                 + /* item.getX() + */item.getBoundsWidth());
     118                                                + /* item.getX() + */it.getBoundsWidth());
    119119
    120120                        if (xCheck < FrameGraphics.getMaxSize().width) {
     
    123123                                        columnHeads.get(i + 1).setX(maxX);
    124124
    125                                 for (Item item : columns.get(i + 1))
    126                                         if (item.getX() < maxX && item.getY() < maxY)
    127                                                 item.setX(maxX);
     125                                for (Item it : columns.get(i + 1))
     126                                        if (it.getX() < maxX && it.getY() < maxY)
     127                                                it.setX(maxX);
    128128                        }
    129129
Note: See TracChangeset for help on using the changeset viewer.