本文介绍了在复合中绘制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个名为Workspace的Composite。在这个组合中,我想添加一些图形对象。每个对象都可以被选中,拖动,移动,并且可以具有复杂的形状(圆形,椭圆形,多边形等)。我可以点击每个对象来查看它的属性。什么是最好的实现方式?

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?

推荐答案

查看。 是使用Zest的非常好的教程。

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:

这篇关于在复合中绘制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 13:40