Screenshots from small technological experiment - implementation of Scratch block editor in Java (Netbeans platform + Widgets Visual Library) are in
http://www.kiwiki.info/mediawiki/index.php/Jasper
Current version - Jasper 001 (basic bloks, zoom, explorer, palette)
Offline
Wow, that's really cool! Is there any way to download it?
Offline
Woah, that's amazing! Nice job. I always found Drag 'n drop tough to implement, but you have made quite a nice implementation just by looking at it. My only question is, do you drag the blocks between windows? I see a panel with the blocks palette detached from the scripting area. Also, it would be great if you could compile applications into Java with Jasper.
Offline
ZeroLuck wrote:
Hey. Can you give us (me and TRocket) the code which you use for drawing the stack-blocks? Thanks!
Blocks are created as vector graphics with standard Java 2D Graphics library and linked with widgets from Visual library (part of Netbeans platform).
Code fragment for creating of stack-block:
// basic coordinates
double bx[]={ 0, 10, 20, 30, 50, 60, 70, 80, 80, 70, 60, 50, 30, 20, 10, 0, 0 };
double by[]={10, 0, 0, 10, 10, 0, 0, 10, 40, 50, 50, 60, 60, 50, 50, 40, 10 };
...
// stack block drawing and filling - without decorations
GeneralPath filledPolygon = new GeneralPath(GeneralPath.WIND_EVEN_ODD, bx.length);
GeneralPath polyline = new GeneralPath(GeneralPath.WIND_EVEN_ODD, bx.length);
filledPolygon.moveTo(bx[0], by[0]);
polyline.moveTo(bx[0], by[0]);
for ( int index = 1; index < bx.length; index++ ) {
filledPolygon.lineTo(bx[index], by[index]);
polyline.lineTo(bx[index], by[index]);
}
filledPolygon.closePath();
g2.setPaint(colorBoxStandard );
g2.fill(filledPolygon);
g2.draw(polyline);
Offline
Hardmath123 wrote:
Woah, that's amazing! Nice job. I always found Drag 'n drop tough to implement, but you have made quite a nice implementation just by looking at it. My only question is, do you drag the blocks between windows? I see a panel with the blocks palette detached from the scripting area.
Drag and Drop is created with standard Data Flavour mechanism used in Java Swing.
Hardmath123 wrote:
Also, it would be great if you could compile applications into Java with Jasper.
At this time is Jasper technological demo only with following test plan:
- internal data structures
- block interpreter
- user defined block scripting with jython
- building of distributed systems (more Jasper-s communicate together via RMI/Corba)
- code generator (from block to compact java code)
- etc ... ... ...
Offline
The domain name seems to be censored. Is it an inappropriate domain name?
Offline
The actual link is http://www.scratch.mit.edu/ext/youtube/ … ;feature=*
Offline
jvvg wrote:
I can't see any inappropriate words in the domain name. Should I post this in bugs and glitches?
* is censored intentionally, actually.
Offline
veggieman001 wrote:
jvvg wrote:
I can't see any inappropriate words in the domain name. Should I post this in bugs and glitches?
youtu.be is censored intentionally, actually.
Offline
Hi all,
video from Jasper 0.004 (pure Java development) with new features (floating block) is available in
http: // youtu . be /VPDyd94smNo
(or)
http://www.scratch.mit.edu/ext/youtube/?v=VPDyd94smNo&feature=*
screenshot is here
https: // picasaweb . google . com/116862838346154358376/July22012?authuser=0&feat=directlink
(or)
https://picasaweb.google.com/116862838346154358376/July22012?authuser=0&feat=directlink
(I hope that links works ...)
Offline
qenix wrote:
Hi all,
video from Jasper 0.004 (pure Java development) with new features (floating block) is available in
http: // youtu . be /VPDyd94smNo
(or)
http://www.scratch.mit.edu/ext/youtube/?v=VPDyd94smNo&feature=*
screenshot is here
https: // picasaweb . google . com/116862838346154358376/July22012?authuser=0&feat=directlink
(or)
https://picasaweb.google.com/116862838346154358376/July22012?authuser=0&feat=directlink
(I hope that links works ...)
Nice!
Offline
Wow! Is this finished and downloadable?
Offline