问题
I have a Composite called Workspace. In this composite I want to add some graphics object. Each object can be selected, dragged, moved and can have complicated shape (circle, ellipse, polygon,...). I can click at each object to see its properties. What is the best way to implement?
回答1:
Have a look at Zest. Here is a very good tutorial for using Zest.
As an alternative, there is Draw2d. And again, here is a nice simple example:
来源:https://stackoverflow.com/questions/13976235/draw-in-composite