FileDocCategorySizeDatePackage
AndroidGlyphVector.javaAPI DocAndroid 1.5 API5533Wed May 06 22:41:54 BST 2009org.apache.harmony.awt.gl.font

AndroidGlyphVector

public class AndroidGlyphVector extends GlyphVector

Fields Summary
public char[]
charVector
public Glyph[]
vector
float[]
defaultPositions
float[]
logicalPositions
public float[]
visualPositions
protected FontRenderContext
vectorFRC
protected int
layoutFlags
protected Shape[]
gvShapes
FontPeerImpl
peer
Font
font
float
ascent
float
height
float
leading
float
descent
AffineTransform
transform
Constructors Summary
public AndroidGlyphVector(char[] chars, FontRenderContext frc, Font fnt, int flags)

        int len = chars.length;
        this.font = fnt;
        LineMetricsImpl lmImpl = (LineMetricsImpl)fnt.getLineMetrics(String.valueOf(chars), frc);     	
        this.ascent = lmImpl.getAscent();
        this.height = lmImpl.getHeight();
        this.leading = lmImpl.getLeading();
        this.descent = lmImpl.getDescent();
        this.charVector = chars;
        this.vectorFRC = frc;
    
public AndroidGlyphVector(char[] chars, FontRenderContext frc, Font fnt)

        this(chars, frc, fnt, 0);
    
public AndroidGlyphVector(String str, FontRenderContext frc, Font fnt)

        this(str.toCharArray(), frc, fnt, 0);
    
public AndroidGlyphVector(String str, FontRenderContext frc, Font fnt, int flags)

        this(str.toCharArray(), frc, fnt, flags);
    
Methods Summary
public booleanequals(java.awt.font.GlyphVector glyphVector)

		return false;
	
public android.graphics.PathgetAndroidGlyphOutline(int glyphIndex)

		AndroidGraphics2D g = AndroidGraphics2D.getInstance();
        Path path = new Path();
        char tmp[] = new char[1];
        tmp[0] = charVector[glyphIndex];
        ((AndroidGraphics2D)g).getAndroidPaint().getTextPath(new String(tmp), 0, 1, 0, 0, path);
        return path;
	
public android.graphics.PathgetAndroidOutline()

		AndroidGraphics2D g = AndroidGraphics2D.getInstance();
        Path path = new Path();
        ((AndroidGraphics2D)g).getAndroidPaint().getTextPath(new String(charVector), 0, charVector.length, 0, 0, path);
        return path;
	
public java.awt.FontgetFont()

		return this.font;
	
public java.awt.font.FontRenderContextgetFontRenderContext()

		return this.vectorFRC;
	
public intgetGlyphCode(int glyphIndex)

		return charVector[glyphIndex];
	
public int[]getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn)

		throw new RuntimeException("Not implemented!");
	
public java.awt.font.GlyphJustificationInfogetGlyphJustificationInfo(int glyphIndex)

		throw new RuntimeException("Not implemented!");
	
public java.awt.ShapegetGlyphLogicalBounds(int glyphIndex)

		throw new RuntimeException("Not implemented!");
	
public java.awt.font.GlyphMetricsgetGlyphMetrics(int glyphIndex)

		throw new RuntimeException("Not implemented!");
	
public java.awt.ShapegetGlyphOutline(int glyphIndex)

		throw new RuntimeException("Not implemented!");
	
public java.awt.geom.Point2DgetGlyphPosition(int glyphIndex)

		throw new RuntimeException("Not implemented!");
	
public float[]getGlyphPositions(int beginGlyphIndex, int numEntries, float[] positionReturn)

		throw new RuntimeException("Not implemented!");
	
public java.awt.geom.AffineTransformgetGlyphTransform(int glyphIndex)

		throw new RuntimeException("Not implemented!");
	
public java.awt.ShapegetGlyphVisualBounds(int glyphIndex)

		throw new RuntimeException("Not implemented!");
	
public char[]getGlyphs()

		return this.charVector;
	
public java.awt.geom.Rectangle2DgetLogicalBounds()

		throw new RuntimeException("Not implemented!");
	
public intgetNumGlyphs()

		return charVector.length;
	
public java.awt.ShapegetOutline(float x, float y)

		throw new RuntimeException("Not implemented!");
	
public java.awt.ShapegetOutline()

		throw new RuntimeException("Not implemented!");
	
public java.awt.geom.Rectangle2DgetVisualBounds()

		throw new RuntimeException("Not implemented!");
	
public voidperformDefaultLayout()

		throw new RuntimeException("Not implemented!");
	
public voidsetGlyphPosition(int glyphIndex, java.awt.geom.Point2D newPos)

		throw new RuntimeException("Not implemented!");
	
public voidsetGlyphTransform(int glyphIndex, java.awt.geom.AffineTransform trans)

		throw new RuntimeException("Not implemented!");