如何在java中绘制x,y坐标 [英] how to draw x,y coordinate in java

查看:1439
本文介绍了如何在java中绘制x,y坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在框架中绘制x,y坐标(计算机屏幕上的小区域)然后我想放置一个小物体(如小球)并根据一些已知指令(算法)开始运动。



框架(小面积)应该如此,我可以放一些其他球,一些障碍物(墙式物体)



simillarly我想删除一些障碍物。



i需要一些基本的想法。怎么开发??



那个fram ..

怎么放球?

等?



我应该创建一个类似于Area of​​ Area的类。它应该包含球,墙,洞等的列表(或数组)??



提前感谢

解决方案

请参阅 http://docs.oracle.com/javase/tutorial/2d/ index.html [ ^ ]

i want to draw x,y co-ordinate in frame ( small area on computer screen) then i want to put a small object ( like a small ball) and it starts motion according some known instruction (Algorithm).

the frame ( small area) should be as that, i could be able to put some other ball , some obstical ( wall type objects)

simillarly i would like to remove some obsticals.

i need some basic idea. how to develop??

that fram..
how to put ball??
etc?

should i create a class like with the Name of Area. and it should contains list ( or Array) of ball , walls, holes, etc in it??

thanks in advance

解决方案

See http://docs.oracle.com/javase/tutorial/2d/index.html[^].


这篇关于如何在java中绘制x,y坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆