Posted by harax
on July 31, 2008 at 7:04 AM PDT
I'm very excited to use JXLayer. I just started using it and getting into it.
Now I'm wondering whether the following scenario can be accomplished using JXLayer:
I've a JPanel with lots of custom painting in it. I would like to use some stuff from JHotDraw to "annotate" some of my paintings using a text and an arrow to mark the point of interest.
My 1st thought was to use JXLayer to "lock" my custom painting (yes, you can "edit" the painting as well :-)) and somehow draw the JHotDraw stuff inside the JXLayer.
One problem is, I need to use JHotDraw in an editing mode to create new text labels and arrows and to arrange them as desired. This should happen when my custom painting is locked.
On the other hand, I need to "just" paint the JHotDraw stuff on top of my custom painting in normal mode.
Is it possible to accomplish this task using JXLayer? Does anyone have a general hint to get this done?
Thanks 4 your work, Alex.
I'd like to use JXLayer more in the future and clean up some of my own work to achieve similar effects :-).