Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1009848 // Test CALSpringLayout

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 616K of libraries. Click here for Pure Java version (6288L/46K).

1  
!7
2  
3  
p {
4  
  final new CirclesAndLines cal;
5  
  Circle a = cal.circle_autoVis("Hello", random(), random());
6  
  Circle b = cal.circle_autoVis("World", random(), random());
7  
  Circle c = cal.circle_autoVis("Test", random(), random());
8  
  cal.arrow(a, "", b);
9  
  cal.arrow(a, "", c);
10  
  final Canvas canvas = showCAL(cal);
11  
  final CALSpringLayout layout = new(cal);
12  
  awtCalcEvery(canvas, 100, r {
13  
    layout.step();
14  
    updateCanvas(canvas);
15  
  });
16  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1009848
Snippet name: Test CALSpringLayout
Eternal ID of this version: #1009848/6
Text MD5: 4144466996c812736f9a3f1b89f72d96
Transpilation MD5: fbea4472550b17d2a77ef5fffc8a67c1
Author: stefan
Category: javax / a.i. / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-21 22:45:04
Source code size: 452 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 428 / 1030
Version history: 5 change(s)
Referenced in: [show references]