org.extex.typesetter.tc
Class Direction

java.lang.Object
  extended by org.extex.typesetter.tc.Direction
All Implemented Interfaces:
java.io.Serializable

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

This interface provides a limited set of writing directions. The writing directions are defined as constants. The constructor is private to avoid that additional directions are defined.

Version:
$Revision: 5837 $
Author:
Gerd Neugebauer
See Also:
Serialized Form

Nested Class Summary
static class Direction.Dir
          This enumeration restricts the values which can be used as components of a direction.
 
Field Summary
static Direction LR
          The constant LR contains the direction for left-to-right languages.
static Direction RL
          The constant RL contains the direction for right-to-left languages.
protected static long serialVersionUID
          The constant serialVersionUID contains the id for serialization.
 
Constructor Summary
Direction(Direction.Dir beginningOfPage, Direction.Dir beginningOfLine, Direction.Dir topOfLine)
          Creates a new object.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LR

public static final Direction LR
The constant LR contains the direction for left-to-right languages.


RL

public static final Direction RL
The constant RL contains the direction for right-to-left languages.


serialVersionUID

protected static final long serialVersionUID
The constant serialVersionUID contains the id for serialization.

See Also:
Constant Field Values
Constructor Detail

Direction

public Direction(Direction.Dir beginningOfPage,
                 Direction.Dir beginningOfLine,
                 Direction.Dir topOfLine)
Creates a new object.

Parameters:
beginningOfPage - the beginning of the page
beginningOfLine - the beginning of the line
topOfLine - the top of the line
Method Detail

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.
See Also:
Object.toString()