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

14
LINES

< > BotCompany Repo | #1009849 // Test CALSpringLayout 2

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

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

!7

p {
  final new CirclesAndLines cal;
  Circle a = cal.circle_autoVis("Hello", 0.2, 0.5);
  Circle b = cal.circle_autoVis("World", 0.8, 0.5);
  cal.arrow(a, "", b);
  final Canvas canvas = showCAL(cal);
  final CALSpringLayout layout = new(cal);
  awtCalcEvery(canvas, 100, r {
    layout.step();
    updateCanvas(canvas);
  });
}

Author comment

Began life as a copy of #1009848

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: #1009849
Snippet name: Test CALSpringLayout 2
Eternal ID of this version: #1009849/2
Text MD5: 7ba3697c7fb79181cec0c9b94d2f43f9
Transpilation MD5: 2130f73ee10d8c0a3fcb8a795da9bf2c
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:44:29
Source code size: 346 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 536 / 1282
Version history: 1 change(s)
Referenced in: #1009856 - Test Auto-Layout Switch [OK]