1 18 package org.apache.batik.gvt.font; 19 20 import java.awt.Graphics2D ; 21 import java.awt.Shape ; 22 import java.awt.font.FontRenderContext ; 23 import java.awt.font.GlyphJustificationInfo ; 24 import java.awt.geom.AffineTransform ; 25 import java.awt.geom.Point2D ; 26 import java.awt.geom.Rectangle2D ; 27 import java.text.AttributedCharacterIterator ; 28 29 35 public interface GVTGlyphVector { 36 37 40 GVTFont getFont(); 41 42 45 FontRenderContext getFontRenderContext(); 46 47 50 int getGlyphCode(int glyphIndex); 51 52 55 int[] getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn); 56 57 61 GlyphJustificationInfo getGlyphJustificationInfo(int glyphIndex); 62 63 69 Shape getGlyphLogicalBounds(int glyphIndex); 70 71 75 GVTGlyphMetrics getGlyphMetrics(int glyphIndex); 76 77 81 Shape getGlyphOutline(int glyphIndex); 82 83 86 Point2D getGlyphPosition(int glyphIndex); 87 88 91 float[] getGlyphPositions(int beginGlyphIndex, 92 int numEntries, 93 float[] positionReturn); 94 95 98 AffineTransform getGlyphTransform(int glyphIndex); 99 100 103 Shape getGlyphVisualBounds(int glyphIndex); 104 105 111 Rectangle2D getLogicalBounds(); 112 113 116 int getNumGlyphs(); 117 118 122 Shape getOutline(); 123 124 128 Shape getOutline(float x, float y); 129 130 135 Rectangle2D getGeometricBounds(); 136 137 141 Rectangle2D getBounds2D(AttributedCharacterIterator aci); 142 143 146 void performDefaultLayout(); 147 148 151 void setGlyphPosition(int glyphIndex, Point2D newPos); 152 153 156 void setGlyphTransform(int glyphIndex, AffineTransform newTX); 157 158 161 void setGlyphVisible(int glyphIndex, boolean visible); 162 163 166 public boolean isGlyphVisible(int glyphIndex); 167 168 176 int getCharacterCount(int startGlyphIndex, int endGlyphIndex); 177 178 181 void draw(Graphics2D graphics2D, 182 AttributedCharacterIterator aci); 183 } 184 | Popular Tags |