Changeset 218


Ignore:
Timestamp:
08/11/08 22:26:45 (16 years ago)
Author:
bjn8
Message:

Fixed bug

Location:
trunk/src/org/expeditee/items/widgets
Files:
3 edited

Legend:

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

    r217 r218  
    10621062                        _swingComponent.setBounds(getX(), getY(), getWidth(), getHeight());
    10631063        }
     1064       
     1065        /**
     1066         *
     1067         * @return
     1068         *              The current bounds for this widget. Never null.
     1069         */
     1070        public Rectangle getBounds() {
     1071                return new Rectangle(getX(), getY(), getWidth(), getHeight());
     1072        }
    10641073
    10651074        /**
  • trunk/src/org/expeditee/items/widgets/WidgetCorner.java

    r214 r218  
    166166        @Override
    167167        public boolean contains(int x, int y) {
    168                 return super.contains(x, y) && !getEnclosedShape().contains(x, y);
     168                return super.contains(x, y) && !_widgetSource.getBounds().contains(x, y);
    169169        }
    170170
  • trunk/src/org/expeditee/items/widgets/WidgetEdge.java

    r214 r218  
    103103        @Override
    104104        public boolean contains(int x, int y) {
    105                 return super.contains(x, y) && !getEnclosedShape().contains(x, y);
     105                return super.contains(x, y) && !_widgetSource.getBounds().contains(x, y);
    106106        }
    107107
Note: See TracChangeset for help on using the changeset viewer.