pt.tumba.parser.swf
Class FontDefinition.KerningPair

java.lang.Object
  extended by pt.tumba.parser.swf.FontDefinition.KerningPair
Enclosing class:
FontDefinition

public static class FontDefinition.KerningPair
extends java.lang.Object

A Kerning Pair is an adjustment to the advance between two particular glyphs.

Author:
unknown

Field Summary
protected  double adjustment
          Description of the Field
protected  int code1
          Description of the Field
protected  int code2
          Description of the Field
 
Constructor Summary
FontDefinition.KerningPair(int code1, int code2, double adjustment)
          Constructor for the KerningPair object
 
Method Summary
 double getAdjustment()
          Gets the adjustment attribute of the KerningPair object
 int getCode1()
          Gets the code1 attribute of the KerningPair object
 int getCode2()
          Gets the code2 attribute of the KerningPair object
 void setAdjustment(double offset)
          Sets the adjustment attribute of the KerningPair object
 void setCode1(int code)
          Sets the code1 attribute of the KerningPair object
 void setCode2(int code)
          Sets the code2 attribute of the KerningPair object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code1

protected int code1
Description of the Field


code2

protected int code2
Description of the Field


adjustment

protected double adjustment
Description of the Field

Constructor Detail

FontDefinition.KerningPair

public FontDefinition.KerningPair(int code1,
                                  int code2,
                                  double adjustment)
Constructor for the KerningPair object

Parameters:
code1 - Description of the Parameter
code2 - Description of the Parameter
adjustment - Description of the Parameter
Method Detail

getCode1

public int getCode1()
Gets the code1 attribute of the KerningPair object

Returns:
The code1 value

getCode2

public int getCode2()
Gets the code2 attribute of the KerningPair object

Returns:
The code2 value

getAdjustment

public double getAdjustment()
Gets the adjustment attribute of the KerningPair object

Returns:
The adjustment value

setCode1

public void setCode1(int code)
Sets the code1 attribute of the KerningPair object

Parameters:
code - The new code1 value

setCode2

public void setCode2(int code)
Sets the code2 attribute of the KerningPair object

Parameters:
code - The new code2 value

setAdjustment

public void setAdjustment(double offset)
Sets the adjustment attribute of the KerningPair object

Parameters:
offset - The new adjustment value