Changeset 222


Ignore:
Timestamp:
08/13/08 16:23:44 (16 years ago)
Author:
ra33
Message:
 
Location:
trunk/src/org/expeditee/items/widgets
Files:
3 edited

Legend:

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

    r220 r222  
    10661066
    10671067        /**
     1068         *
     1069         * @return
     1070         *              The current bounds for this widget. Never null.
     1071         */
     1072        public Rectangle getBounds() {
     1073                return new Rectangle(getX(), getY(), getWidth(), getHeight());
     1074        }
     1075
     1076        /**
    10681077         * Due to absolute positioning...
    10691078         *
  • trunk/src/org/expeditee/items/widgets/WidgetCorner.java

    r220 r222  
    156156        @Override
    157157        public boolean contains(int x, int y) {
    158                 return super.contains(x, y) && !getEnclosedShape().contains(x, y);
     158                return super.contains(x, y) && !_widgetSource.getBounds().contains(x, y);
    159159        }
    160160
  • trunk/src/org/expeditee/items/widgets/WidgetEdge.java

    r220 r222  
    9898        @Override
    9999        public boolean contains(int x, int y) {
    100                 return super.contains(x, y) && !getEnclosedShape().contains(x, y);
     100                return super.contains(x, y) && !_widgetSource.getBounds().contains(x, y);
    101101        }
    102102
Note: See TracChangeset for help on using the changeset viewer.