I had been working on this library to do my MRes assignment, but eventually it took its own way and importance. Having been a flash developer primarily, saw processing and got attracted to it. Of course my first (but not ex) girlfriend flash is not angry with it.
Since the assignment for my current module involves rendering effect data visualization with Processing, felt it would be great to have the features of flash to achieve the effect. I would say for every thing we need to accomplish graphically processing has a way more than one which sometimes could be a problem. For example setting the color where both individual color values or hexadecimal is accepted. True that you can set the mode of your choice but this is something very overwhelming for dumb developers like me trying to maintain consistency throughout the program.
Also some features like bounding boxes, masking and textfields had to be done the raw way for effective rendering and decision making. So my idea was that since processing offers a very good base/ground for drawing graphics an effective wrapper could be written to ease the development using processing(Java) such that people do not have to wonder about how to use processing (relatively to learning plash way of implementation) but rather focus on the application logic. I had to figure out a framework for adapting but fortunately the idea of flash was already there in me which I thought would be a great model. Having known the model, mechanism and the signatures of flash, I started with this mission.
To highlight, the current version of plash supports basic graphic drawing with options to draw circles, rectangles, ellipses and custom shapes with moveTo and lineTo. And other than the abilities of drawing it can render basic textfields without input'able capacity. Also it supports masking of shapes on the same level(belonging to the same parent).
With this post, what is that I wish to say?
Happy to inform that the framework can be used.
Would be happy for someone with greater ideas about processing in guiding this project to the next level.
Also I am looking for people to help on the textfield implementation.
A bigger dream is to port it for processing IDE and eventually use the same code to generate Android and Javascript (Its fair to be very greedy here)
The final step will be to write the animation framework using the Tween library (if it exists use it, or write a new one)
The possible pitfalls that can be anticipated or to be watched out for
The library has not been tested with lots and lots of graphic objects (at least 1000 maybe?)
The library can be used only with Java environments like Netbeans and Eclipse (As of yet)
I am new to library development for processing.org and hence kindly apologize me if my question seems to be too stupid. Coming to the point, I have created a library around processing using core.jar in order to facilitate the Flash/Actionscript style of creating content for processing. Since processing is very powerful and has a good portability factor, wished and started this wonderful journey of writing a wrapper that resembles Actionscript as much as possible.
Even before asking the billion dollar question I want to convey the working model first for you all to understand the question that I will ask.
Basically I have created classes Stage and DisplayObject where Stage inherits the PApplet.
The library works well with the netbeans model of writing the code. Since I have been using only netbeans for processing development, has crippled me about the knowledge of processing ide usage.
In netbeans on the static main method I invoke the entry class by PApplet.main(String[]{"Myclass"}) which extends 'Stage' thus the application runs fine.
But in the processing IDE I believe the code that we write is automatically wrapped as a class which extends the PApplet. Rather I want the code to extend the 'Stage' class that I have written.