org.pentaho.reporting.engine.classic.core.layout.model
Class RenderLength

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.layout.model.RenderLength

public final class RenderLength
extends Object

Creation-Date: 09.07.2006, 21:03:12

Author:
Thomas Morgner

Field Summary
static RenderLength AUTO
           
static RenderLength EMPTY
           
 
Constructor Summary
RenderLength(long value, boolean percentage)
           
 
Method Summary
static RenderLength createFromRaw(double rawValue)
           
static RenderLength createPercentage(double rawValue)
           
 boolean equals(Object o)
           
 long getValue()
           
 int hashCode()
           
 boolean isPercentage()
           
 long resolve(long parent)
           
 long resolve(long parent, long auto)
           
static long resolveLength(long parent, double rawvalue)
           
 RenderLength resolveToRenderLength(long parent)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

AUTO

public static final RenderLength AUTO

EMPTY

public static final RenderLength EMPTY
Constructor Detail

RenderLength

public RenderLength(long value,
                    boolean percentage)
Method Detail

getValue

public long getValue()

isPercentage

public boolean isPercentage()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

resolve

public long resolve(long parent)

resolve

public long resolve(long parent,
                    long auto)

resolveLength

public static long resolveLength(long parent,
                                 double rawvalue)

createFromRaw

public static RenderLength createFromRaw(double rawValue)

createPercentage

public static RenderLength createPercentage(double rawValue)

resolveToRenderLength

public RenderLength resolveToRenderLength(long parent)

toString

public String toString()
Overrides:
toString in class Object