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

42
LINES

< > BotCompany Repo | #1010640 // Web Analysis v1 [dev.]

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

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (15201L/109K).

1  
!7
2  
3  
static Canvas canvas;
4  
static CirclesAndLines cal;
5  
sbool commentLayout;
6  
7  
p-subst {
8  
  Pair<CirclesAndLines, Canvas> p = showWeb(randomWeb(), 800, 600);
9  
  cal = p.a;
10  
  canvas = p.b;
11  
  doFrameTitle();
12  
  addButtonsToWindow2(canvas, "Comment", f comment, "Next", r {
13  
    CirclesAndLines newCAL = webToCAL(randomWeb());
14  
    canvas = showCAL_2(cal, newCAL, canvas);
15  
    doFrameTitle();
16  
  });
17  
  focusButton(canvas, "Next");
18  
}
19  
20  
svoid doFrameTitle {
21  
  frameTitle(canvas, joinNempties(" - ", cal.globalID, quoteIfNempty(cal.title)));
22  
}
23  
24  
svoid comment {
25  
  if (commentLayout) ret;
26  
  set commentLayout;
27  
  cal.scale = 0.5;
28  
  
29  
  JFrame f = getFrame(canvas);
30  
  Container cp = f.getContentPane();
31  
  
32  
  new JPanel newCP;
33  
  newCP.setLayout(null);
34  
  newCP.add(cp);
35  
  
36  
  f.setContentPane(newCP);
37  
  revalidate(f);
38  
  
39  
  animateBounds((JComponent) cp,
40  
    rect(0, 0, newCP.getWidth(), newCP.getHeight()),
41  
    rect(100, 100, 200, 200), 0.4);
42  
}

Author comment

Began life as a copy of #1010628

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1010640
Snippet name: Web Analysis v1 [dev.]
Eternal ID of this version: #1010640/16
Text MD5: 89bbe077d7f008d07a9ab815cb4cba8a
Transpilation MD5: 30d9438e8e3d91ab354b1d03fc8f1fbf
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-24 03:14:16
Source code size: 961 bytes / 42 lines
Pitched / IR pitched: No / No
Views / Downloads: 459 / 1099
Version history: 15 change(s)
Referenced in: [show references]