ImageGraphicAttribute
183184185186187188189190191192193
/* * Test method for 'java.awt.font.GraphicAttribute.getJustificationInfo()' */ public final void testGetJustificationInfo() { iga = new ImageGraphicAttribute(img, alignment); float advance = iga.getAdvance(); GlyphJustificationInfo gji = new GlyphJustificationInfo( advance, false, GlyphJustificationInfo.PRIORITY_INTERCHAR,
821822823824825826827
ww = 1; BufferedImage img = new BufferedImage(ww, 10, BufferedImage.TYPE_INT_ARGB); Graphics g = img.getGraphics(); g.setColor(new Color(255, 255, 255, 0)); g.fillRect(0,0,img.getWidth(), img.getHeight()); return new ImageGraphicAttribute(img, GraphicAttribute.TOP_ALIGNMENT); }
554555556557558559560