platypus
Class Alignment

java.lang.Object
  extended by platypus.Alignment

public class Alignment
extends java.lang.Object

Handles alignment of a given paragraph

Author:
alb

Nested Class Summary
static class Alignment.type
          the only allowed alignment values
 
Field Summary
private  int lineNumber
          line number where alignment was set
private  Alignment.type present
          the present alignment
 
Constructor Summary
Alignment()
          sets default alignment to left
 
Method Summary
 java.lang.String dump()
          Creates a string containing the line # and the value of the bottom margin when last set
 int getLineNumber()
           
 Alignment.type getPresent()
           
 void setPresent(Alignment.type present)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

present

private Alignment.type present
the present alignment


lineNumber

private int lineNumber
line number where alignment was set

Constructor Detail

Alignment

public Alignment()
sets default alignment to left

Method Detail

getPresent

public Alignment.type getPresent()

setPresent

public void setPresent(Alignment.type present)

getLineNumber

public int getLineNumber()

dump

public java.lang.String dump()
Creates a string containing the line # and the value of the bottom margin when last set

Returns:
formatted string suitable for use in dump()


Copyright © 2006-7 Pacific Data Works LLC