Top Description Fields Constructors Methods
org.apache.fontbox.afm

public Class CharMetric

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Collections, .List, org.apache.fontbox.util.BoundingBox

This class represents a single character metric.
Author
Ben Litchfield

Field Summary

Modifier and TypeField and Description
private BoundingBox
private int
private final List<Ligature>
private String
private float[]
private float[]
w

private float[]
private float
private float
private float[]
private float
private float
private float
private float

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addLigature(Ligature
The ligature to add.
ligature
)

This will add an entry to the list of ligatures.

public BoundingBox

Returns:

Value of property boundingBox.
getBoundingBox
()

Getter for property boundingBox.

public int

Returns:

Value of property characterCode.
getCharacterCode
()

Getter for property characterCode.

public List<Ligature>

Returns:

Value of property ligatures.
getLigatures
()

Getter for property ligatures.

public String

Returns:

Value of property name.
getName
()

Getter for property name.

public float[]

Returns:

Value of property vv.
getVv
()

Getter for property vv.

public float[]

Returns:

Value of property w.
getW
()

Getter for property w.

public float[]

Returns:

Value of property w0.
getW0
()

Getter for property w0.

public float

Returns:

Value of property w0x.
getW0x
()

Getter for property w0x.

public float

Returns:

Value of property w0y.
getW0y
()

Getter for property w0y.

public float[]

Returns:

Value of property w1.
getW1
()

Getter for property w1.

public float

Returns:

Value of property w1x.
getW1x
()

Getter for property w1x.

public float

Returns:

Value of property w1y.
getW1y
()

Getter for property w1y.

public float

Returns:

Value of property wx.
getWx
()

Getter for property wx.

public float

Returns:

Value of property wy.
getWy
()

Getter for property wy.

public void
setBoundingBox(BoundingBox
New value of property boundingBox.
bBox
)

Setter for property boundingBox.

public void
setCharacterCode(int
New value of property characterCode.
cCode
)

Setter for property characterCode.

public void
setName(String
New value of property name.
n
)

Setter for property name.

public void
setVv(float[]
New value of property vv.
vvValue
)

Setter for property vv.

public void
setW(float[]
New value of property w.
wValue
)

Setter for property w.

public void
setW0(float[]
New value of property w0.
w0Value
)

Setter for property w0.

public void
setW0x(float
New value of property w0x.
w0xValue
)

Setter for property w0x.

public void
setW0y(float
New value of property w0y.
w0yValue
)

Setter for property w0y.

public void
setW1(float[]
New value of property w1.
w1Value
)

Setter for property w1.

public void
setW1x(float
New value of property w1x.
w1xValue
)

Setter for property w1x.

public void
setW1y(float
New value of property w1y.
w1yValue
)

Setter for property w1y.

public void
setWx(float
New value of property wx.
wxValue
)

Setter for property wx.

public void
setWy(float
New value of property wy.
wyValue
)

Setter for property wy.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

boundingBoxback to summary
private BoundingBox boundingBox
characterCodeback to summary
private int characterCode
ligaturesback to summary
private final List<Ligature> ligatures
nameback to summary
private String name
vvback to summary
private float[] vv
wback to summary
private float[] w
w0back to summary
private float[] w0
w0xback to summary
private float w0x
w0yback to summary
private float w0y
w1back to summary
private float[] w1
w1xback to summary
private float w1x
w1yback to summary
private float w1y
wxback to summary
private float wx
wyback to summary
private float wy

Constructor Detail

CharMetricback to summary
public CharMetric()

Method Detail

addLigatureback to summary
public void addLigature(Ligature ligature)

This will add an entry to the list of ligatures.

Parameters
ligature:Ligature

The ligature to add.

getBoundingBoxback to summary
public BoundingBox getBoundingBox()

Getter for property boundingBox.

Returns:BoundingBox

Value of property boundingBox.

getCharacterCodeback to summary
public int getCharacterCode()

Getter for property characterCode.

Returns:int

Value of property characterCode.

getLigaturesback to summary
public List<Ligature> getLigatures()

Getter for property ligatures.

Returns:List<Ligature>

Value of property ligatures.

getNameback to summary
public String getName()

Getter for property name.

Returns:String

Value of property name.

getVvback to summary
public float[] getVv()

Getter for property vv.

Returns:float[]

Value of property vv.

getWback to summary
public float[] getW()

Getter for property w.

Returns:float[]

Value of property w.

getW0back to summary
public float[] getW0()

Getter for property w0.

Returns:float[]

Value of property w0.

getW0xback to summary
public float getW0x()

Getter for property w0x.

Returns:float

Value of property w0x.

getW0yback to summary
public float getW0y()

Getter for property w0y.

Returns:float

Value of property w0y.

getW1back to summary
public float[] getW1()

Getter for property w1.

Returns:float[]

Value of property w1.

getW1xback to summary
public float getW1x()

Getter for property w1x.

Returns:float

Value of property w1x.

getW1yback to summary
public float getW1y()

Getter for property w1y.

Returns:float

Value of property w1y.

getWxback to summary
public float getWx()

Getter for property wx.

Returns:float

Value of property wx.

getWyback to summary
public float getWy()

Getter for property wy.

Returns:float

Value of property wy.

setBoundingBoxback to summary
public void setBoundingBox(BoundingBox bBox)

Setter for property boundingBox.

Parameters
bBox:BoundingBox

New value of property boundingBox.

setCharacterCodeback to summary
public void setCharacterCode(int cCode)

Setter for property characterCode.

Parameters
cCode:int

New value of property characterCode.

setNameback to summary
public void setName(String n)

Setter for property name.

Parameters
n:String

New value of property name.

setVvback to summary
public void setVv(float[] vvValue)

Setter for property vv.

Parameters
vvValue:float[]

New value of property vv.

setWback to summary
public void setW(float[] wValue)

Setter for property w.

Parameters
wValue:float[]

New value of property w.

setW0back to summary
public void setW0(float[] w0Value)

Setter for property w0.

Parameters
w0Value:float[]

New value of property w0.

setW0xback to summary
public void setW0x(float w0xValue)

Setter for property w0x.

Parameters
w0xValue:float

New value of property w0x.

setW0yback to summary
public void setW0y(float w0yValue)

Setter for property w0y.

Parameters
w0yValue:float

New value of property w0y.

setW1back to summary
public void setW1(float[] w1Value)

Setter for property w1.

Parameters
w1Value:float[]

New value of property w1.

setW1xback to summary
public void setW1x(float w1xValue)

Setter for property w1x.

Parameters
w1xValue:float

New value of property w1x.

setW1yback to summary
public void setW1y(float w1yValue)

Setter for property w1y.

Parameters
w1yValue:float

New value of property w1y.

setWxback to summary
public void setWx(float wxValue)

Setter for property wx.

Parameters
wxValue:float

New value of property wx.

setWyback to summary
public void setWy(float wyValue)

Setter for property wy.

Parameters
wyValue:float

New value of property wy.