de.dante.extex.font
Class FountKey

java.lang.Object
  extended byde.dante.extex.font.FountKey
All Implemented Interfaces:
java.io.Serializable

public class FountKey
extends java.lang.Object
implements java.io.Serializable

Font key class.

Version:
$Revision: 1.5 $
Author:
Michael Niedermair
See Also:
Serialized Form

Field Summary
protected static long serialVersionUID
          The field serialVersionUID contains the version number for serialization.
 
Constructor Summary
FountKey(java.lang.String n)
          Create a new object.
FountKey(java.lang.String n, Dimen s)
          Create a new object.
FountKey(java.lang.String n, Dimen s, Count sf, Glue ls, boolean lig, boolean kern)
          Create a new object.
 
Method Summary
 boolean eq(FountKey key)
          Check, if the key have the same values.
 FixedGlue getLetterspaced()
          Returns the letter spacing.
 java.lang.String getName()
          Returns the name.
 Count getScale()
          Returns the scale.
 Dimen getSize()
          Returns the size.
 boolean isKerning()
          Returns the kerning.
 boolean isLigatures()
          Returns the ligatures.
 void setKerning(boolean k)
          Set the kerning.
 void setLetterspaced(Glue l)
          Set the letter spaced.
 void setLigatures(boolean l)
          Set the ligatures.
 void setName(java.lang.String n)
          Set the name.
 void setScale(Count s)
          Set the scale.
 void setSize(Dimen s)
          Set the size.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

protected static final long serialVersionUID
The field serialVersionUID contains the version number for serialization.

See Also:
Constant Field Values
Constructor Detail

FountKey

public FountKey(java.lang.String n)
Create a new object.

Parameters:
n - the name

FountKey

public FountKey(java.lang.String n,
                Dimen s)
Create a new object.

Parameters:
n - the name
s - the size

FountKey

public FountKey(java.lang.String n,
                Dimen s,
                Count sf,
                Glue ls,
                boolean lig,
                boolean kern)
Create a new object.

Parameters:
n - the name
s - the size
sf - the scale factor
ls - the letter space
lig - the ligature
kern - the kerning
Method Detail

eq

public boolean eq(FountKey key)
Check, if the key have the same values.

Parameters:
key - the fount key
Returns:
Returns true, if the two objects are equals, or false, if not.

getLetterspaced

public FixedGlue getLetterspaced()
Returns the letter spacing.

Returns:
Returns the letter spacing.

getName

public java.lang.String getName()
Returns the name.

Returns:
Returns the name.

getScale

public Count getScale()
Returns the scale.

Returns:
Returns the scale.

getSize

public Dimen getSize()
Returns the size.

Returns:
Returns the size.

isKerning

public boolean isKerning()
Returns the kerning.

Returns:
Returns the kerning.

isLigatures

public boolean isLigatures()
Returns the ligatures.

Returns:
Returns the ligatures.

setKerning

public void setKerning(boolean k)
Set the kerning.

Parameters:
k - The kerning to set.

setLetterspaced

public void setLetterspaced(Glue l)
Set the letter spaced.

Parameters:
l - The letter spaced to set.

setLigatures

public void setLigatures(boolean l)
Set the ligatures.

Parameters:
l - The ligatures to set.

setName

public void setName(java.lang.String n)
Set the name.

Parameters:
n - The name to set.

setScale

public void setScale(Count s)
Set the scale.

Parameters:
s - The scale to set.

setSize

public void setSize(Dimen s)
Set the size.

Parameters:
s - The size to set.

toString

public java.lang.String toString()
See Also:
Object.toString()