25 26 package sun.java2d.pipe; 27 28 import java.awt.font.GlyphVector; 29 import sun.awt.SunHints; 30 import sun.java2d.SunGraphics2D; 31 import sun.font.GlyphList; 32 33 /** 34 * A delegate pipe of SG2D which implements redispatching of 35 * for the src mode loops in the drawGlyphVector case where 36 * the installed loop may not match the glyphvector. 37 */ 38 39 public abstract class GlyphListLoopPipe extends GlyphListPipe { 40 41 protected void drawGlyphList(SunGraphics2D sg2d, GlyphList gl, 42 int aaHint) { 43 switch (aaHint) { 44 case SunHints.INTVAL_TEXT_ANTIALIAS_OFF: 45 sg2d.loops.drawGlyphListLoop. 46 DrawGlyphList(sg2d, sg2d.surfaceData, gl); 47 return; 48 case SunHints.INTVAL_TEXT_ANTIALIAS_ON: 49 sg2d.loops.drawGlyphListAALoop. 50 DrawGlyphListAA(sg2d, sg2d.surfaceData, gl); 51 return; 52 case SunHints.INTVAL_TEXT_ANTIALIAS_LCD_HRGB: 53 case SunHints.INTVAL_TEXT_ANTIALIAS_LCD_VRGB: 54 sg2d.loops.drawGlyphListLCDLoop. 55 DrawGlyphListLCD(sg2d,sg2d.surfaceData, gl); 56 return; 57 } 58 } 59 } | 25 26 package sun.java2d.pipe; 27 28 import java.awt.font.GlyphVector; 29 import sun.awt.SunHints; 30 import sun.java2d.SunGraphics2D; 31 import sun.font.GlyphList; 32 33 /** 34 * A delegate pipe of SG2D which implements redispatching of 35 * for the src mode loops in the drawGlyphVector case where 36 * the installed loop may not match the glyphvector. 37 */ 38 39 public abstract class GlyphListLoopPipe extends GlyphListPipe { 40 41 protected void drawGlyphList(SunGraphics2D sg2d, GlyphList gl, 42 int aaHint) { 43 switch (aaHint) { 44 case SunHints.INTVAL_TEXT_ANTIALIAS_OFF: 45 sg2d.getLoops().drawGlyphListLoop. 46 DrawGlyphList(sg2d, sg2d.surfaceData, gl); 47 return; 48 case SunHints.INTVAL_TEXT_ANTIALIAS_ON: 49 sg2d.getLoops().drawGlyphListAALoop. 50 DrawGlyphListAA(sg2d, sg2d.surfaceData, gl); 51 return; 52 case SunHints.INTVAL_TEXT_ANTIALIAS_LCD_HRGB: 53 case SunHints.INTVAL_TEXT_ANTIALIAS_LCD_VRGB: 54 sg2d.getLoops().drawGlyphListLCDLoop. 55 DrawGlyphListLCD(sg2d,sg2d.surfaceData, gl); 56 return; 57 } 58 } 59 } |