Changeset 905 for trunk/src/org/expeditee/io
- Timestamp:
- 04/13/14 22:33:29 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/io/flowlayout/XRawItem.java
r457 r905 2 2 3 3 import org.expeditee.items.Item; 4 import org.expeditee.items.Text; 4 5 5 6 public class XRawItem extends XItem … … 11 12 this.item = item; 12 13 13 bounding_rect = item.getArea().getBounds(); 14 if (item instanceof Text) { 15 // Expecting it to be a text item 16 // For it's bounding rectangle, go with the tighter 'PixelBounds' version 17 18 Text text_item = (Text)item; 19 bounding_rect = text_item.getPixelBoundsUnion(); 20 } 21 else { 22 // Just in case it isn't a text item 23 bounding_rect = item.getArea().getBounds(); 24 } 14 25 15 26 }
Note:
See TracChangeset
for help on using the changeset viewer.