Platypus

platypus
Class Margin

java.lang.Object
  extended by platypus.CommandValue
      extended by platypus.Margin

public class Margin
extends CommandValue

Handles the command specifying the amount of in the page margins.


Field Summary
 
Fields inherited from class platypus.CommandValue
amount, lineNumber, units
 
Constructor Summary
Margin(float f)
           
Margin(java.lang.String s, java.lang.String t)
           
 
Method Summary
 java.lang.String stateError(java.lang.String s)
          Prints some kind of error message.
 
Methods inherited from class platypus.CommandValue
dump, getAmount, getLineNumber, getUnits, setAmountInPoints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Margin

Margin(java.lang.String s,
       java.lang.String t)

Margin

Margin(float f)
Method Detail

stateError

public java.lang.String stateError(java.lang.String s)
Description copied from class: CommandValue
Prints some kind of error message. Should be overwritten by implementing class.

Overrides:
stateError in class CommandValue
Parameters:
s - the command string originally passed to the constructor
Returns:
a string containing the error statement, or null in case of error.

Platypus

Copyright © 2006-7 Pacific Data Works LLC. (http://platypus.pz.org)