标签: java awt graphics2d
我正在做一个关于使用Graphics绘图的在线教程。
我想使用Graphics2D,因为我想要浮点功能。由于Graphics2D继承了Graphics,我认为只使用“Graphics2D”换掉所有“Graphics”就行了。它不是。
我想避免使用铸造。有什么帮助吗?