ru.novosoft.dc.rtf.dom.objects
Class CharacterSpacing
java.lang.Object
|
+--ru.novosoft.dc.core.util.Values
|
+--ru.novosoft.dc.rtf.dom.objects.CharacterSpacing
- public final class CharacterSpacing
- extends Values
The character spacing specification class. It contains 4 character
spacing parameters. The SCALE parameter is measured in persents
(default is 100).
A positive value of the RAISE parameter is the raising and a negative
value is the lowering in half-points. A positive value of the EXPAND
parameter is the expansion and a negative value is the compression
in twips. The KERN parameter specifies the kerning bound in half-points.
It is the point size above which to kern character pairs.
Zero value means no kerning.
|
Field Summary |
static byte |
EXPAND
An index of the character expansion/compression parameter. |
static byte |
KERN
An index of the character kern bound parameter. |
static byte |
RAISE
An index of the character raising/lowering parameter. |
static byte |
SCALE
An index of the character scale parameter. |
|
Method Summary |
boolean |
equals(java.lang.Object obj)
Compare this spacing with another spacing and return true
if spacings coinside. |
void |
exportTo(org.w3c.dom.Element elem)
Export the contents of this object to the specified DOM element. |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SCALE
public static final byte SCALE
- An index of the character scale parameter.
RAISE
public static final byte RAISE
- An index of the character raising/lowering parameter.
EXPAND
public static final byte EXPAND
- An index of the character expansion/compression parameter.
KERN
public static final byte KERN
- An index of the character kern bound parameter.
CharacterSpacing
public CharacterSpacing()
equals
public boolean equals(java.lang.Object obj)
- Compare this spacing with another spacing and return true
if spacings coinside.
- Overrides:
- equals in class Values
exportTo
public void exportTo(org.w3c.dom.Element elem)
- Export the contents of this object to the specified DOM element.