to make adding components easier, convert the existing components to plugins written in javascript. NOTE: this could have a performance impact so it will require some exploration to determine an efficient way to do this.
Expose rendering callbacks via javascript based plugins.
If performance is an issue we can try changing the renderer to generate component images which are drawn directly rather than re-rendering each frame. determine how to do translucent image rendering in java
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this could potentially be done by storing an image for each base component and have an event fire when the component needs to be repainted (like a "dirty" flag) when the dirty flag is set, generate the image for the component and clear the dirty flag. When rendering, render the image rather than drawing directly. NOTE: probably only containers need a rendering image. Normal components would be represented in thier respective parent container image.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Expose rendering callbacks via javascript based plugins.
If performance is an issue we can try changing the renderer to generate component images which are drawn directly rather than re-rendering each frame. determine how to do translucent image rendering in java
this could potentially be done by storing an image for each base component and have an event fire when the component needs to be repainted (like a "dirty" flag) when the dirty flag is set, generate the image for the component and clear the dirty flag. When rendering, render the image rather than drawing directly. NOTE: probably only containers need a rendering image. Normal components would be represented in thier respective parent container image.