Ignore:
Timestamp:
07/10/08 12:32:54 (16 years ago)
Author:
ra33
Message:

Fixed a couple of minor repaint issues such problems when TwoEnclosed areas of identical size where on a vector frame

Also fixed cutting and pasting...

Added functionality to be able to cut and paste a selected region in a text item

File:
1 edited

Legend:

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

    r130 r131  
    760760
    761761        protected Color getPaintHighlightColor() {
     762                Color highlightColor = _highlightColor;
     763                if (getPaintBackgroundColor().equals(highlightColor))
     764                        highlightColor = ALTERNATE_HIGHLIGHT;
    762765                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;
    768770        }
    769771
     
    11111113
    11121114        public void setActionMark(boolean val) {
     1115                if (!val)
     1116                        invalidateCommonTrait(ItemAppearence.LinkChanged);
    11131117                _poly = null;
    11141118                _actionMark = val;
    1115                 invalidateCommonTrait(ItemAppearence.LinkChanged);
     1119                if (val)
     1120                        invalidateCommonTrait(ItemAppearence.LinkChanged);
    11161121        }
    11171122
     
    18911896                        invalidateCommonTrait(ItemAppearence.LinkChanged);
    18921897                }
    1893                 if(_actions == null || _actions.size() == 0) {
     1898                if (_actions == null || _actions.size() == 0) {
    18941899                        _poly = null;
    18951900                        _actions = new LinkedList<String>();
    1896                 }else{
     1901                } else {
    18971902                        _actions.clear();
    18981903                }
     
    20792084                return box.getWidth() * box.getHeight();
    20802085        }
     2086       
     2087        public int getEnclosureID(){
     2088                return _enclosure.hashCode();
     2089        }
    20812090
    20822091        /**
Note: See TracChangeset for help on using the changeset viewer.