platypus.pdf
Class Leading
java.lang.Object
platypus.pdf.Leading
public class Leading
- extends java.lang.Object
Handles the leading for text. It's a paragraph-level operation.
- Author:
- alb
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
amount
private float amount
line
private int line
leadingChanged
private boolean leadingChanged
Leading
public Leading()
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