Changeset 410 for trunk/src/org/expeditee/items/Text.java
- Timestamp:
- 11/19/08 16:43:35 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/Text.java
r404 r410 100 100 public static final int PAGE_UP = 8; 101 101 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; 103 108 104 109 private Justification _justification = Justification.left; … … 575 580 _text.insert(left, newText); 576 581 rebuild(true); 582 583 clearCache(); 577 584 578 585 invalidateAll(); … … 1126 1133 List<String> list = new LinkedList<String>(); 1127 1134 1135 // Rebuilding prevents errors when displaying frame bitmaps 1136 if (_lineOffsets.size() == 0) { 1137 rebuild(false); 1138 } 1139 1128 1140 int last = 0; 1129 1141 for (int offset : _lineOffsets) { … … 1534 1546 if (_textLayouts.size() < 1) { 1535 1547 rebuild(true); 1536 // System.out.println("Error: " + _text);1537 // return;1548 // System.out.println("Error: " + _text); 1549 // return; 1538 1550 } 1539 1551 … … 1684 1696 copy.setInitialSpacing(getInitialSpacing()); 1685 1697 1686 copy.setWidth(getWidth ());1698 copy.setWidth(getWidthToSave()); 1687 1699 copy.setJustification(getJustification()); 1688 1700 copy.setLetterSpacing(getLetterSpacing()); 1689 1701 copy.setWordSpacing(getWordSpacing()); 1690 copy.setWidth(getWidth ());1702 copy.setWidth(getWidthToSave()); 1691 1703 copy.setFont(getFont()); 1692 1704 if (hasFormula()) { … … 1980 1992 // setRightMargin(frameWidth, false); 1981 1993 } 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(); 1982 2000 } 1983 2001 } … … 2285 2303 rebuild(true); 2286 2304 } 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 } 2287 2313 }
Note:
See TracChangeset
for help on using the changeset viewer.