Libraryless. Click here for Pure Java version (17031L/104K).
1 | set flag revalidateIncludingFullCenterContainer_debug. |
2 | |
3 | svoid test_imageSurfaceRevalidationInFullCenter() {
|
4 | ImageSurface imageSurface = imageSurface(); |
5 | imageSurface.setImage(whiteImage(50, 50)); |
6 | imageSurface.verbose(true); |
7 | enableScaffolding(imageSurface); |
8 | showFrame(jMinSize(500, 500, jscroll_borderless(setBackground(Color.gray, jFullCenter(imageSurface))))); |
9 | sleepSeconds(1); |
10 | var parent = getParent(imageSurface); |
11 | print("Parent layout: " + parent.getLayout());
|
12 | print("Parent: " + parent);
|
13 | assertEqualsVerbose("Image surface size (base line)", new Dimension(50, 50), jGetSize(imageSurface));
|
14 | imageSurface.setImage(whiteImage(100, 100)); |
15 | sleepSeconds(1); |
16 | assertEqualsVerbose("Image surface size after image change", new Dimension(100, 100), jGetSize(imageSurface));
|
17 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035034 |
| Snippet name: | test_imageSurfaceRevalidationInFullCenter [OK] |
| Eternal ID of this version: | #1035034/13 |
| Text MD5: | ca491dcde19a55917b5b8f045ab3e51c |
| Transpilation MD5: | d5eb750bc122e9dd63d43ca74999c620 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-24 15:08:13 |
| Source code size: | 809 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 373 / 497 |
| Version history: | 12 change(s) |
| Referenced in: | [show references] |