age(Graphics2D g2) { FontRenderContext context = g2.getFontRenderContext(); Font f = new Font( "宋体", Font.PLAIN, 18); GeneralPath clipShape = new GeneralPath(); TextLayout layout = new TextLayout( "公司订购单 ", f, context); AffineTransform transform = AffineTransform.getTranslateInstance(50, 18); Shape outline = layout.getOutline(transform); clipShape.append(outline, false); layout = new TextLayout( "公司名: AAAA 日期:2010-10-10 ", f, context); transform = AffineTransform.getTranslateInstance(0, 50); outline = layout.getOutline(transform); clipShape.append(outline, false); &n
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>