Changeset 190 for trunk/src/org/expeditee/gui/Frame.java
- Timestamp:
- 08/07/08 10:23:55 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/Frame.java
r185 r190 477 477 if (i instanceof XRayable) { 478 478 results.addAll(i.getConnected()); 479 // Dont add circle centers480 // TODO change this to be isCircle center481 } else if (!i.hasEnclosures()) {479 // Dont add circle centers 480 // TODO change this to be isCircle center 481 } else if (!i.hasEnclosures()) { 482 482 results.add(i); 483 483 } … … 662 662 item.setParent(this); 663 663 item.setFloating(false); // esnure that it is anchored 664 664 665 665 item.invalidateCommonTrait(ItemAppearence.Added); 666 666 … … 685 685 item.onParentStateChanged(new ItemParentStateChangedEvent(this, 686 686 ItemParentStateChangedEvent.EVENT_TYPE_ADDED)); 687 if (item.recalculateWhenChanged()) 688 recalculate(); 687 689 688 690 change(); … … 722 724 if (i.isAnnotation()) 723 725 i.getParentOrCurrentFrame().clearAnnotations(); 726 // TODO Improve efficiency when addAll is called 724 727 addItem(i); 725 728 } … … 751 754 item.invalidateCommonTrait(ItemAppearence.Removed); 752 755 } 753 756 // TODO Improve efficiency when removeAll is called 757 if (item.recalculateWhenChanged()) 758 recalculate(); 754 759 } 755 760 } … … 1553 1558 if (t.getText().toLowerCase().startsWith("@start") 1554 1559 || t.getText().toLowerCase().equals("@start:")) { 1555 //Used to allow users the option of putting an initial bullet after the @start 1556 //This was replaced by width 1557 //t.stripFirstWord(); 1560 // Used to allow users the option of putting an initial 1561 // bullet after the @start 1562 // This was replaced by width 1563 // t.stripFirstWord(); 1558 1564 t.setText(""); 1559 1565 … … 1909 1915 return _annotations.get(annotation.toLowerCase()); 1910 1916 } 1911 1917 1912 1918 public void recalculate() { 1913 1919 for (Item i : getItems()) { 1914 if (i.hasFormula() && !i.isAnnotation()){1920 if (i.hasFormula() && !i.isAnnotation()) { 1915 1921 i.calculate(i.getFormula()); 1916 1922 }
Note:
See TracChangeset
for help on using the changeset viewer.