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).

!7

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

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: 415 / 996
Version history: 5 change(s)
Referenced in: [show references]