Changeset 1152 for trunk/src/org/expeditee/items/widgets
- Timestamp:
- 09/19/18 11:54:36 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/widgets/SwingWidget.java
r1143 r1152 109 109 110 110 Graphics2D g = SwingMiscManager.getIfUsingSwingGraphicsManager().getCurrentSurface(); 111 112 final Point location = _swingComponent.getLocation();113 int x = location.x;114 int y = location.y;115 111 116 g.translate(x, y);117 112 paintSwingWidget(g); 118 g.translate(-x, -y);119 113 } 120 114 … … 122 116 protected void paintSwingWidget(Graphics2D g) 123 117 { 118 final Point location = _swingComponent.getLocation(); 119 int x = location.x; 120 int y = location.y; 121 g.translate(x, y); 124 122 _swingComponent.paint(g); 123 g.translate(-x, -y); 125 124 } 126 125
Note:
See TracChangeset
for help on using the changeset viewer.