Last change
on this file since 457 was 457, checked in by davidb, 11 years ago |
Classes that support a more sophisticated traversal of items on a frame, than the default: sort by 'y' and then by 'x' for any items with the same values of 'y'. Using these classes: i) items that spatially overlap in the y-dimension are treated as being part of the same line (and therefore ordered left to right, even it the second item's 'y' value is technically higher; ii) text items can be group by polygon shapes (typically a rectangle, other any polygon shape will do) and furthermore, enclosure can be nested arbitrarially deep; iii) arrows can be used to hook in 'out-of-flow' box/polygon area (specifically, drawing an arrow that ends in a box/polygon will cause the items in that box/polygon to be treated as if it was position at the (x,y) start position of the line
|
-
Property svn:executable
set to
*
|
File size:
313 bytes
|
Line | |
---|
1 | package org.expeditee.io.flowlayout;
|
---|
2 |
|
---|
3 | import org.expeditee.items.Item;
|
---|
4 |
|
---|
5 | public class XRawItem extends XItem
|
---|
6 | {
|
---|
7 | protected Item item;
|
---|
8 |
|
---|
9 | public XRawItem(Item item)
|
---|
10 | {
|
---|
11 | this.item = item;
|
---|
12 |
|
---|
13 | bounding_rect = item.getArea().getBounds();
|
---|
14 |
|
---|
15 | }
|
---|
16 |
|
---|
17 | public Item getItem()
|
---|
18 | {
|
---|
19 | return item;
|
---|
20 | }
|
---|
21 |
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.