Ignore:
Timestamp:
05/16/08 10:25:28 (16 years ago)
Author:
ra33
Message:

A whole day of big changes.
Adding the ability to have Text at the end of Lines.
Also a lot of refactoring to improve the quality of code relating to constraints and lines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/Frame.java

    r47 r50  
    231231        public List<Text> getBodyTextItems(boolean includeAnnotations) {
    232232                List<Text> bodyTextItems = new ArrayList<Text>();
    233                 Text frameTitle = getTitle();
    234 
    235233                for (Item i : getItems()) {
    236234                        // only add up normal body text items
     
    426424
    427425                for (Item i : _body)
    428                         if (i.isVisible() && i != _frameName && i.intersects(poly)) {
     426                        if (i.isVisible() /*&& i != _frameName*/ && i.intersects(poly)) {
    429427                                if (!results.contains(i))
    430428                                        results.add(i);
     
    730728                                        line.getStartItem().addLine(line);
    731729                                        line.getEndItem().addLine(line);
     730                                } else {
     731                                        i.setOffset(0, 0);
    732732                                }
    733733                        }
     
    11331133
    11341134        /**
    1135          * Creates a new Text Item with no text. The newly created Item is a copy
    1136          * the ItemTemplate if one is present, and inherits all the attributes of
    1137          * the Template
    1138          *
    1139          * @return The newly created Text Item
     1135         * Creates a new text item with the given text.
     1136         * @param text
     1137         * @return
    11401138         */
    11411139        public Text createNewText(String text) {
     
    11451143        }
    11461144
     1145        /**
     1146         * Creates a new Text Item with no text. The newly created Item is a copy
     1147         * the ItemTemplate if one is present, and inherits all the attributes of
     1148         * the Template
     1149         *
     1150         * @return The newly created Text Item
     1151         */
    11471152        public Text createBlankText(String templateType) {
    11481153                Text t;
Note: See TracChangeset for help on using the changeset viewer.