org.apache.fontbox.afm

Class CharMetric

public class CharMetric extends Object

This class represents a single character metric.

Version: $Revision: 1.1 $

Author: Ben Litchfield (ben@benlitchfield.com)

Method Summary
voidaddLigature(Ligature ligature)
This will add an entry to the list of ligatures.
BoundingBoxgetBoundingBox()
Getter for property boundingBox.
intgetCharacterCode()
Getter for property characterCode.
List<Ligature>getLigatures()
Getter for property ligatures.
StringgetName()
Getter for property name.
float[]getVv()
Getter for property vv.
float[]getW()
Getter for property w.
float[]getW0()
Getter for property w0.
floatgetW0x()
Getter for property w0x.
floatgetW0y()
Getter for property w0y.
float[]getW1()
Getter for property w1.
floatgetW1x()
Getter for property w1x.
floatgetW1y()
Getter for property w1y.
floatgetWx()
Getter for property wx.
floatgetWy()
Getter for property wy.
voidsetBoundingBox(BoundingBox bBox)
Setter for property boundingBox.
voidsetCharacterCode(int cCode)
Setter for property characterCode.
voidsetLigatures(List<Ligature> lig)
Setter for property ligatures.
voidsetName(String n)
Setter for property name.
voidsetVv(float[] vvValue)
Setter for property vv.
voidsetW(float[] wValue)
Setter for property w.
voidsetW0(float[] w0Value)
Setter for property w0.
voidsetW0x(float w0xValue)
Setter for property w0x.
voidsetW0y(float w0yValue)
Setter for property w0y.
voidsetW1(float[] w1Value)
Setter for property w1.
voidsetW1x(float w1xValue)
Setter for property w1x.
voidsetW1y(float w1yValue)
Setter for property w1y.
voidsetWx(float wxValue)
Setter for property wx.
voidsetWy(float wyValue)
Setter for property wy.

Method Detail

addLigature

public void addLigature(Ligature ligature)
This will add an entry to the list of ligatures.

Parameters: ligature The ligature to add.

getBoundingBox

public BoundingBox getBoundingBox()
Getter for property boundingBox.

Returns: Value of property boundingBox.

getCharacterCode

public int getCharacterCode()
Getter for property characterCode.

Returns: Value of property characterCode.

getLigatures

public List<Ligature> getLigatures()
Getter for property ligatures.

Returns: Value of property ligatures.

getName

public String getName()
Getter for property name.

Returns: Value of property name.

getVv

public float[] getVv()
Getter for property vv.

Returns: Value of property vv.

getW

public float[] getW()
Getter for property w.

Returns: Value of property w.

getW0

public float[] getW0()
Getter for property w0.

Returns: Value of property w0.

getW0x

public float getW0x()
Getter for property w0x.

Returns: Value of property w0x.

getW0y

public float getW0y()
Getter for property w0y.

Returns: Value of property w0y.

getW1

public float[] getW1()
Getter for property w1.

Returns: Value of property w1.

getW1x

public float getW1x()
Getter for property w1x.

Returns: Value of property w1x.

getW1y

public float getW1y()
Getter for property w1y.

Returns: Value of property w1y.

getWx

public float getWx()
Getter for property wx.

Returns: Value of property wx.

getWy

public float getWy()
Getter for property wy.

Returns: Value of property wy.

setBoundingBox

public void setBoundingBox(BoundingBox bBox)
Setter for property boundingBox.

Parameters: bBox New value of property boundingBox.

setCharacterCode

public void setCharacterCode(int cCode)
Setter for property characterCode.

Parameters: cCode New value of property characterCode.

setLigatures

public void setLigatures(List<Ligature> lig)
Setter for property ligatures.

Parameters: lig New value of property ligatures.

setName

public void setName(String n)
Setter for property name.

Parameters: n New value of property name.

setVv

public void setVv(float[] vvValue)
Setter for property vv.

Parameters: vvValue New value of property vv.

setW

public void setW(float[] wValue)
Setter for property w.

Parameters: wValue New value of property w.

setW0

public void setW0(float[] w0Value)
Setter for property w0.

Parameters: w0Value New value of property w0.

setW0x

public void setW0x(float w0xValue)
Setter for property w0x.

Parameters: w0xValue New value of property w0x.

setW0y

public void setW0y(float w0yValue)
Setter for property w0y.

Parameters: w0yValue New value of property w0y.

setW1

public void setW1(float[] w1Value)
Setter for property w1.

Parameters: w1Value New value of property w1.

setW1x

public void setW1x(float w1xValue)
Setter for property w1x.

Parameters: w1xValue New value of property w1x.

setW1y

public void setW1y(float w1yValue)
Setter for property w1y.

Parameters: w1yValue New value of property w1y.

setWx

public void setWx(float wxValue)
Setter for property wx.

Parameters: wxValue New value of property wx.

setWy

public void setWy(float wyValue)
Setter for property wy.

Parameters: wyValue New value of property wy.

Copyright © 2008-2010 Apache Software Foundation. All Rights Reserved.