Changeset 1143 for trunk/src/org/expeditee/items/widgets
- Timestamp:
- 09/18/18 12:00:17 (6 years ago)
- Location:
- trunk/src/org/expeditee/items/widgets
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/widgets/HeavyDutyInteractiveWidget.java
r1102 r1143 273 273 // Render shaded window over widget 274 274 g.setColor(SwingConversions.toSwingColor(backgroundColor)); 275 g.fillRect(getX(), getY(), getWidth(), getHeight()); 276 275 final int x = getX(); 276 final int y = getY(); 277 final int width = getWidth(); 278 final int height = getHeight(); 279 g.fillRect(x, y, width, height); 280 277 281 // Center the bar 278 int barX = getX()+ BAR_HOROZONTIAL_MARGIN;279 int barY = getY() + (getHeight()>> 1) - (BAR_HEIGHT >> 1);280 281 int barWidth = getWidth()- (BAR_HOROZONTIAL_MARGIN * 2);282 int barX = x + BAR_HOROZONTIAL_MARGIN; 283 int barY = y + (height >> 1) - (BAR_HEIGHT >> 1); 284 285 int barWidth = width - (BAR_HOROZONTIAL_MARGIN * 2); 282 286 if (barWidth <= 0) barWidth = 10; 283 287 -
trunk/src/org/expeditee/items/widgets/SwingWidget.java
r1098 r1143 4 4 import java.awt.Container; 5 5 import java.awt.Graphics2D; 6 import java.awt.Point; 6 7 7 8 import javax.swing.JComponent; … … 109 110 Graphics2D g = SwingMiscManager.getIfUsingSwingGraphicsManager().getCurrentSurface(); 110 111 111 int x = getX(); 112 int y = getY(); 112 final Point location = _swingComponent.getLocation(); 113 int x = location.x; 114 int y = location.y; 113 115 114 116 g.translate(x, y); -
trunk/src/org/expeditee/items/widgets/Widget.java
r1098 r1143 900 900 901 901 _settingPositionFlag = true; 902 902 903 903 invalidateLink(); 904 904 -
trunk/src/org/expeditee/items/widgets/charts/AbstractChart.java
r1102 r1143 175 175 Point origin = getOrigin(); 176 176 return new MouseEvent((Component) e.getSource(), e.getID(), e 177 .getWhen(), e.getModifiers(), origin. x+ e.getX(),178 origin. y+ e.getY(), e.getXOnScreen(),177 .getWhen(), e.getModifiers(), origin.getX() + e.getX(), 178 origin.getY() + e.getY(), e.getXOnScreen(), 179 179 e.getYOnScreen(), e.getClickCount(), false, e 180 180 .getButton());
Note:
See TracChangeset
for help on using the changeset viewer.