OFFICE技术讲座:JDK绘制旋转字体的效果(水平)_柳鲲鹏的博客-CSDN博客
善于用继承,这才是高级程序员的做法。
测试源码-RotateFontFrameVerticalpackage taishan;
import java.awt.Graphics;
@SuppressWarnings("serial")
public class RotateFontFrameVertical extends RotateFontFrameAbstract
{
@Override
protected void drawRotateFonts(Graphics g)
{
antiAliasing((java.awt.Graphics2D)g);
int xunit = 50;
int yunit = 20;
g.setColor(COLOR_LINE);
g.drawLine(POS_OFFSET, POS_OFFSET, POS_OFFSET+200, POS_OFFSET);
for (int i=0; i
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)