Changeset 131 for trunk/src/org/expeditee/items/Item.java
- Timestamp:
- 07/10/08 12:32:54 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/Item.java
r130 r131 760 760 761 761 protected Color getPaintHighlightColor() { 762 Color highlightColor = _highlightColor; 763 if (getPaintBackgroundColor().equals(highlightColor)) 764 highlightColor = ALTERNATE_HIGHLIGHT; 762 765 if (getParent() != null 763 && getParent().getPaintBackgroundColor() 764 .equals(_highlightColor)) 765 return getParent().getPaintForegroundColor(); 766 767 return _highlightColor; 766 && getParent().getPaintBackgroundColor().equals(highlightColor)) 767 highlightColor = getParent().getPaintForegroundColor(); 768 769 return highlightColor; 768 770 } 769 771 … … 1111 1113 1112 1114 public void setActionMark(boolean val) { 1115 if (!val) 1116 invalidateCommonTrait(ItemAppearence.LinkChanged); 1113 1117 _poly = null; 1114 1118 _actionMark = val; 1115 invalidateCommonTrait(ItemAppearence.LinkChanged); 1119 if (val) 1120 invalidateCommonTrait(ItemAppearence.LinkChanged); 1116 1121 } 1117 1122 … … 1891 1896 invalidateCommonTrait(ItemAppearence.LinkChanged); 1892 1897 } 1893 if (_actions == null || _actions.size() == 0) {1898 if (_actions == null || _actions.size() == 0) { 1894 1899 _poly = null; 1895 1900 _actions = new LinkedList<String>(); 1896 } else{1901 } else { 1897 1902 _actions.clear(); 1898 1903 } … … 2079 2084 return box.getWidth() * box.getHeight(); 2080 2085 } 2086 2087 public int getEnclosureID(){ 2088 return _enclosure.hashCode(); 2089 } 2081 2090 2082 2091 /**
Note:
See TracChangeset
for help on using the changeset viewer.