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

19
LINES

< > BotCompany Repo | #1009517 // showCAL

JavaX fragment (include)

1  
static Canvas showCAL(CirclesAndLines cal) {
2  
  Pt p = showCAL_defaultSize();
3  
  ret p != null ? cal.show(p.x, p.y) : cal.show();
4  
}
5  
6  
static Canvas showCAL(CirclesAndLines cal, int w, int h) {
7  
  ret cal.show(w, h);
8  
}
9  
10  
static Canvas showCAL(CirclesAndLines cal, Canvas canvas) {
11  
  if (canvas == null) ret cal.show();
12  
  Canvas c2 = cal.makeCanvas();
13  
  awtReplaceComponent(canvas, c2);
14  
  ret c2;
15  
}
16  
17  
static Canvas showCAL(S calStructure) {
18  
  ret showCAL(calFromStructure(calStructure));
19  
}

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: #1009517
Snippet name: showCAL
Eternal ID of this version: #1009517/7
Text MD5: 71a08c14cc15fd5055ef5135e38be852
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-19 22:18:46
Source code size: 499 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 621 / 628
Version history: 6 change(s)
Referenced in: [show references]