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

19
LINES

< > BotCompany Repo | #1009517 // showCAL

JavaX fragment (include)

static Canvas showCAL(CirclesAndLines cal) {
  Pt p = showCAL_defaultSize();
  ret p != null ? cal.show(p.x, p.y) : cal.show();
}

static Canvas showCAL(CirclesAndLines cal, int w, int h) {
  ret cal.show(w, h);
}

static Canvas showCAL(CirclesAndLines cal, Canvas canvas) {
  if (canvas == null) ret cal.show();
  Canvas c2 = cal.makeCanvas();
  awtReplaceComponent(canvas, c2);
  ret c2;
}

static Canvas showCAL(S calStructure) {
  ret showCAL(calFromStructure(calStructure));
}

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: 622 / 628
Version history: 6 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1009525 - showCAL_2 - flickers less