Libraryless. Click here for Pure Java version (15944L/94K).
persistable asclass AbstractSSIList<MySSI extends AbstractSSI> extends NotifyingList<MySSI> is StringIO { *() { init(); } *(Cl<? extends AbstractSSI> l) { initAndAddAll(importSSIs(l)); } L<MySSI> importSSIs(Cl<? extends AbstractSSI> l) { ret map importSSI(l); } abstract MySSI importSSI(AbstractSSI ssi); BufferedImage render(WidthAndHeight size) { ret renderAll(this, size); } BufferedImage render(BufferedImage canvas) { ret renderAll(this, canvas); } BufferedImage renderOutlines(WidthAndHeight size) { ret toSSIList().renderOutlines(size); } SSIList toSSIList() { ret new SSIList(map(this, -> .toSSI())); } public void readWrite(StringHead head) { head.exchangeAll(this); } L<VectorSSI> vectorSSIs() { ret instancesOf VectorSSI(this); } L<SSI> directSSIs aka literalSSIs() { ret instancesOf SSI(this); } Percent percentageVectorized() { ret Percent.ratio(l(vectorSSIs()), l(this)); } }
Began life as a copy of #1035711
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035713 |
Snippet name: | AbstractSSIList |
Eternal ID of this version: | #1035713/8 |
Text MD5: | 6deddca2b75f6d79a492ec0248ab02c3 |
Transpilation MD5: | 50573023611012497bb532814b607a85 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-07-25 15:20:02 |
Source code size: | 1018 bytes / 37 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 179 / 265 |
Version history: | 7 change(s) |
Referenced in: | #1003674 - Standard Classes + Interfaces (LIVE continued in #1034167) |