Changeset 18187 in josm for trunk/test
- Timestamp:
- 2021-08-31T23:17:15+02:00 (3 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/testutils/FakeGraphics.java
r15775 r18187 32 32 */ 33 33 public final class FakeGraphics extends Graphics2D { 34 // This is needed just in case someone wants to fake paint something 35 private Rectangle bounds; 36 34 37 @Override 35 38 public void setXORMode(Color c1) { … … 50 53 @Override 51 54 public void setClip(int x, int y, int width, int height) { 55 this.bounds = new Rectangle(x, y, width, height); 52 56 } 53 57 … … 73 77 @Override 74 78 public Rectangle getClipBounds() { 75 return null;79 return this.bounds; 76 80 } 77 81
Note:
See TracChangeset
for help on using the changeset viewer.