Changeset 218
- Timestamp:
- 08/11/08 22:26:45 (16 years ago)
- Location:
- trunk/src/org/expeditee/items/widgets
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/widgets/InteractiveWidget.java
r217 r218 1062 1062 _swingComponent.setBounds(getX(), getY(), getWidth(), getHeight()); 1063 1063 } 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 } 1064 1073 1065 1074 /** -
trunk/src/org/expeditee/items/widgets/WidgetCorner.java
r214 r218 166 166 @Override 167 167 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); 169 169 } 170 170 -
trunk/src/org/expeditee/items/widgets/WidgetEdge.java
r214 r218 103 103 @Override 104 104 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); 106 106 } 107 107
Note:
See TracChangeset
for help on using the changeset viewer.