org.apache.myfaces.tobago.layout
Class Measure

java.lang.Object
  extended by org.apache.myfaces.tobago.layout.Measure
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PixelMeasure

public abstract class Measure
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static Measure MAX
           
static Measure ZERO
           
 
Constructor Summary
Measure()
           
 
Method Summary
abstract  Measure add(int m)
           
abstract  Measure add(Measure m)
           
abstract  Measure divide(int times)
           
abstract  int getPixel()
           
 boolean greaterOrEqualThan(Measure measure)
           
 boolean greaterThan(Measure measure)
           
 boolean lessOrEqualThan(Measure measure)
           
 boolean lessThan(Measure measure)
           
static Measure max(List<Measure> list)
          Returns the maximum.
static Measure max(Measure m1, Measure m2)
          Returns the maximum.
static Measure min(List<Measure> list)
          Returns the minimum.
static Measure min(Measure m1, Measure m2)
          Returns the minimum.
abstract  Measure multiply(int times)
           
static Measure parse(String value)
          Deprecated. since 1.5.0, please use valueOf()
 Measure substractNotNegative(Measure m)
          Deprecated. since 1.5.0, please use subtractNotNegative
abstract  Measure subtract(int m)
           
abstract  Measure subtract(Measure m)
           
abstract  Measure subtractNotNegative(Measure m)
           
static Measure valueOf(int value)
           
static Measure valueOf(Integer value)
           
static Measure valueOf(Measure value)
           
static Measure valueOf(Number value)
           
static Measure valueOf(Object object)
           
static Measure valueOf(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZERO

public static final Measure ZERO

MAX

public static final Measure MAX
Constructor Detail

Measure

public Measure()
Method Detail

valueOf

public static Measure valueOf(Measure value)

valueOf

public static Measure valueOf(int value)

valueOf

public static Measure valueOf(Integer value)

valueOf

public static Measure valueOf(Number value)

valueOf

public static Measure valueOf(String value)

valueOf

public static Measure valueOf(Object object)

parse

@Deprecated
public static Measure parse(String value)
Deprecated. since 1.5.0, please use valueOf()


add

public abstract Measure add(Measure m)

add

public abstract Measure add(int m)

multiply

public abstract Measure multiply(int times)

divide

public abstract Measure divide(int times)

substractNotNegative

@Deprecated
public Measure substractNotNegative(Measure m)
Deprecated. since 1.5.0, please use subtractNotNegative


subtractNotNegative

public abstract Measure subtractNotNegative(Measure m)

subtract

public abstract Measure subtract(Measure m)

subtract

public abstract Measure subtract(int m)

greaterThan

public boolean greaterThan(Measure measure)

greaterOrEqualThan

public boolean greaterOrEqualThan(Measure measure)

lessThan

public boolean lessThan(Measure measure)

lessOrEqualThan

public boolean lessOrEqualThan(Measure measure)

getPixel

public abstract int getPixel()

max

public static Measure max(List<Measure> list)
Returns the maximum. If all parameters are null, than the result is .


min

public static Measure min(List<Measure> list)
Returns the minimum. If all parameters are null, than the result is .


max

public static Measure max(Measure m1,
                          Measure m2)
Returns the maximum. If all parameters are null, than the result is .


min

public static Measure min(Measure m1,
                          Measure m2)
Returns the minimum. If all parameters are null, than the result is .



Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.