简体   繁体   English

Android中的Java.awt.polygon

[英]Java.awt.polygon in android

Is there a way that I can use the java.awt.Polygon class in my android app? 有没有一种方法可以在我的Android应用程序中使用java.awt.Polygon类? I have tried importing at the top but I still cannot use Polygon. 我曾尝试在顶部导入,但仍然无法使用Polygon。

Thanks 谢谢

Download the source code to a version of java.awt.Polygon , refactor it into jonny.Polygon (or whatever), and use it in accordance to the source code license. 将源代码下载java.awt.Polygon版本 ,将其重构为jonny.Polygon (或其他jonny.Polygon ),并根据源代码许可使用它。

This will probably require doing the same thing for many other classes as well (that Polygon depends upon), and eventually you may run into something that you cannot readily convert this way. 这可能还需要对许多其他类做同样的事情( Polygon依赖),最终您可能会遇到无法轻易转换的事情。

Hence, I would recommend that you find some other solution to whatever problem you are trying to solve. 因此,我建议您针对要解决的任何问题找到其他解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM