org.pentaho.reporting.engine.classic.wizard.model
Class Length

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.wizard.model.Length
All Implemented Interfaces:
Serializable

public final class Length
extends Object
implements Serializable

Todo: Document Me

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
Length(LengthUnit unit, double value)
           
 
Method Summary
 boolean equals(Object o)
           
 Float getNormalizedValue()
           
 LengthUnit getUnit()
           
 double getValue()
           
 int hashCode()
           
static Length parseLength(String s)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Length

public Length(LengthUnit unit,
              double value)
Method Detail

getValue

public double getValue()

getNormalizedValue

public Float getNormalizedValue()

getUnit

public LengthUnit getUnit()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

parseLength

public static Length parseLength(String s)
                          throws IllegalArgumentException
Throws:
IllegalArgumentException

toString

public String toString()
Overrides:
toString in class Object