Changeset 1102 for trunk/src/org/expeditee/agents/SwitchyardTree.java
- Timestamp:
- 05/10/18 16:04:51 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/agents/SwitchyardTree.java
r919 r1102 19 19 package org.expeditee.agents; 20 20 21 import java.awt.Color; 22 import java.awt.geom.Point2D; 23 21 import org.expeditee.core.Colour; 22 import org.expeditee.core.Point; 24 23 import org.expeditee.gui.Frame; 25 24 import org.expeditee.gui.FrameIO; … … 44 43 Frame childFrame = FrameIO.LoadFrame(link); 45 44 if (childFrame != null) { 46 Point 2D.FloatlastItemEnd = textItem.getParagraphEndPosition();45 Point lastItemEnd = textItem.getParagraphEndPosition(); 47 46 for (Text childItem : childFrame.getBodyTextItems(false)) { 48 47 // look for red items (remember get color may be null 49 if (Colo r.RED.equals(childItem.getPaintColor())) {48 if (Colour.RED.equals(childItem.getPaintColor())) { 50 49 // make a copy and add to parent frame 51 50 Text itemCopy = childItem.copy(); 52 51 // add to the right of parent item 53 lastItemEnd.set Location(lastItemEnd.x + 20, lastItemEnd.y);52 lastItemEnd.set(lastItemEnd.x + 20, lastItemEnd.y); 54 53 itemCopy.setPosition(lastItemEnd.x, lastItemEnd.y); 55 54 lastItemEnd = itemCopy
Note:
See TracChangeset
for help on using the changeset viewer.