platypus.pdf
Class Leading

java.lang.Object
  extended by platypus.pdf.Leading

public class Leading
extends java.lang.Object

Handles the leading for text. It's a paragraph-level operation.

Author:
alb

Field Summary
private  float amount
           
private  boolean leadingChanged
           
private  int line
           
 
Constructor Summary
Leading()
           
 
Method Summary
 java.lang.String dump()
          Creates a string containing the line # and the value of the bottom margin when last set
 java.lang.String errorMessage(java.lang.String token)
           
 float getAmount()
           
 int getLineNumber()
           
 boolean isLeadingChanged()
           
 void setAmount(float newLeading)
           
 void setAmount(ParsedUnit puLeading)
          Uses the parsed command's quantity and unit-type to determine number of points, then calls setAmount( points ) above to do the actual value setting.
 void setLeadingChangedSwitch(boolean yesNo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

amount

private float amount

line

private int line

leadingChanged

private boolean leadingChanged
Constructor Detail

Leading

public Leading()
Method Detail

setAmount

public void setAmount(float newLeading)

setAmount

public void setAmount(ParsedUnit puLeading)
Uses the parsed command's quantity and unit-type to determine number of points, then calls setAmount( points ) above to do the actual value setting.

Parameters:
puLeading - the parsed unit containing amount and unit-type

getAmount

public float getAmount()

setLeadingChangedSwitch

public void setLeadingChangedSwitch(boolean yesNo)

isLeadingChanged

public boolean isLeadingChanged()

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()

errorMessage

public java.lang.String errorMessage(java.lang.String token)


Copyright © 2006-7 Pacific Data Works LLC