1 18 package org.apache.batik.gvt.font; 19 20 import java.awt.font.GlyphMetrics ; 21 import java.awt.geom.Rectangle2D ; 22 23 30 public class GVTGlyphMetrics { 31 32 private GlyphMetrics gm; 33 private float verticalAdvance; 34 35 42 public GVTGlyphMetrics(GlyphMetrics gm, float verticalAdvance) { 43 this.gm = gm; 44 this.verticalAdvance = verticalAdvance; 45 } 46 47 55 public GVTGlyphMetrics(float horizontalAdvance, 56 float verticalAdvance, 57 Rectangle2D bounds, 58 byte glyphType) { 59 this.gm = new GlyphMetrics (horizontalAdvance, bounds, glyphType); 60 this.verticalAdvance = verticalAdvance; 61 } 62 63 66 public float getHorizontalAdvance() { 67 return gm.getAdvance(); 68 } 69 70 73 public float getVerticalAdvance() { 74 return verticalAdvance; 75 } 76 77 80 public Rectangle2D getBounds2D() { 81 return gm.getBounds2D(); 82 } 83 84 87 public float getLSB() { 88 return gm.getLSB(); 89 } 90 91 94 public float getRSB() { 95 return gm.getRSB(); 96 } 97 98 101 public int getType() { 102 return gm.getType(); 103 } 104 105 108 public boolean isCombining() { 109 return gm.isCombining(); 110 } 111 112 115 public boolean isComponent() { 116 return gm.isComponent(); 117 } 118 119 122 public boolean isLigature() { 123 return gm.isLigature(); 124 } 125 126 129 public boolean isStandard() { 130 return gm.isStandard(); 131 } 132 133 136 public boolean isWhitespace() { 137 return gm.isWhitespace(); 138 } 139 140 } 141 | Popular Tags |