Ignore:
Timestamp:
11/19/08 16:43:35 (16 years ago)
Author:
ra33
Message:

Completed several tasks specified by Rob...

  1. Changing the resize for single text items to use the text items origin as the origin for the resize.
  1. Added message linking to documentation for SIMPLE statements when a statement is used incorrectly.
  1. Other minor changes...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/Text.java

    r404 r410  
    100100        public static final int PAGE_UP = 8;
    101101
    102         private Integer _maxWidth = null;
     102        /*
     103         * Set the width to be IMPLICIT, but as wide as possible, a negative width
     104         * value is one that is implicitly set by the system... a positive value is
     105         * one explicitly set by the user.
     106         */
     107        private Integer _maxWidth = Integer.MIN_VALUE + 1;
    103108
    104109        private Justification _justification = Justification.left;
     
    575580                _text.insert(left, newText);
    576581                rebuild(true);
     582               
     583                clearCache();
    577584
    578585                invalidateAll();
     
    11261133                        List<String> list = new LinkedList<String>();
    11271134
     1135                        // Rebuilding prevents errors when displaying frame bitmaps
     1136                        if (_lineOffsets.size() == 0) {
     1137                                rebuild(false);
     1138                        }
     1139
    11281140                        int last = 0;
    11291141                        for (int offset : _lineOffsets) {
     
    15341546                if (_textLayouts.size() < 1) {
    15351547                        rebuild(true);
    1536                         //System.out.println("Error: " + _text);
    1537                         //return;
     1548                        // System.out.println("Error: " + _text);
     1549                        // return;
    15381550                }
    15391551
     
    16841696                copy.setInitialSpacing(getInitialSpacing());
    16851697
    1686                 copy.setWidth(getWidth());
     1698                copy.setWidth(getWidthToSave());
    16871699                copy.setJustification(getJustification());
    16881700                copy.setLetterSpacing(getLetterSpacing());
    16891701                copy.setWordSpacing(getWordSpacing());
    1690                 copy.setWidth(getWidth());
     1702                copy.setWidth(getWidthToSave());
    16911703                copy.setFont(getFont());
    16921704                if (hasFormula()) {
     
    19801992                                // setRightMargin(frameWidth, false);
    19811993                        }
     1994                }
     1995                String text = _text.toString();
     1996
     1997                // Show the overlay stuff immediately if this is an overlay item
     1998                if (hasLink() && (text.startsWith("@ao") || text.startsWith("@o"))) {
     1999                        FrameKeyboardActions.Refresh();
    19822000                }
    19832001        }
     
    22852303                rebuild(true);
    22862304        }
     2305
     2306        /*
     2307         * Returns the SIMPLE statement contained by this text item.
     2308         *
     2309         */
     2310        public String getStatement() {
     2311                return getText().split("\\s+")[0];
     2312        }
    22872313}
Note: See TracChangeset for help on using the changeset viewer.