Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.batik.svggen.font
Class Glyph  view Glyph download Glyph.java

java.lang.Object
  extended byorg.apache.batik.svggen.font.Glyph

public class Glyph
extends java.lang.Object

An individual glyph within a font.

Version:
$Id: Glyph.java,v 1.4 2004/08/18 07:15:18 vhardy Exp $

Field Summary
protected  int advanceWidth
           
protected  short leftSideBearing
           
private  Point[] points
           
 
Constructor Summary
Glyph(org.apache.batik.svggen.font.table.GlyphDescription gd, short lsb, int advance)
           
 
Method Summary
private  void describe(org.apache.batik.svggen.font.table.GlyphDescription gd)
          Set the points of a glyph from the GlyphDescription
 int getAdvanceWidth()
           
 short getLeftSideBearing()
           
 Point getPoint(int i)
           
 int getPointCount()
           
 void reset()
          Resets the glyph to the TrueType table settings
 void scale(int factor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

leftSideBearing

protected short leftSideBearing

advanceWidth

protected int advanceWidth

points

private Point[] points
Constructor Detail

Glyph

public Glyph(org.apache.batik.svggen.font.table.GlyphDescription gd,
             short lsb,
             int advance)
Method Detail

getAdvanceWidth

public int getAdvanceWidth()

getLeftSideBearing

public short getLeftSideBearing()

getPoint

public Point getPoint(int i)

getPointCount

public int getPointCount()

reset

public void reset()
Resets the glyph to the TrueType table settings


scale

public void scale(int factor)

describe

private void describe(org.apache.batik.svggen.font.table.GlyphDescription gd)
Set the points of a glyph from the GlyphDescription