org.apache.batik.gvt.font
Class HKern
java.lang.Object
|
+--org.apache.batik.gvt.font.HKern
- public class HKern
- extends java.lang.Object
The HKern class describes an entry in the "kerning table". It provides
a horizontal kerning value to be used when laying out characters side
by side.
Constructor Summary |
HKern(char[] firstCharacters,
char[] secondCharacters,
float adjustValue)
Create an HKern object with the given character arrays
and kerning value. |
Method Summary |
float |
getAdjustValue()
Give the kerning adjustment value for this entry (positive
value means the space between characters should decrease) |
boolean |
matchesFirstCharacter(char character)
Returns true if the parameter character is one of the characters considered
as first by this kerning pair. |
boolean |
matchesSecondCharacter(char character)
Returns true if the parameter character is one of the characters considered
as second by this kerning pair. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HKern
public HKern(char[] firstCharacters,
char[] secondCharacters,
float adjustValue)
- Create an HKern object with the given character arrays
and kerning value.
- Parameters:
firstCharacters
- The array of characters that are considered as first in this kerning entry.secondCharacters
- The array of characters that are considered as second in this kerning entry.adjustValue
- The kerning adjustment (positive value means the space between characters should decrease).
matchesFirstCharacter
public boolean matchesFirstCharacter(char character)
- Returns true if the parameter character is one of the characters considered
as first by this kerning pair. Returns false otherwise.
- Parameters:
character
- The character to test- Returns:
- True if this character is in the list of first characters for the kerning entry
matchesSecondCharacter
public boolean matchesSecondCharacter(char character)
- Returns true if the parameter character is one of the characters considered
as second by this kerning pair. Returns false otherwise.
- Parameters:
character
- The character to test- Returns:
- True if this character is in the list of second characters for the kerning entry
getAdjustValue
public float getAdjustValue()
- Give the kerning adjustment value for this entry (positive
value means the space between characters should decrease)
Copyright © 2001 Apache Software Foundation. All Rights Reserved.