com.androidplot.ui
Enum SizeLayoutType

java.lang.Object
  extended by java.lang.Enum<SizeLayoutType>
      extended by com.androidplot.ui.SizeLayoutType
All Implemented Interfaces:
Serializable, Comparable<SizeLayoutType>

public enum SizeLayoutType
extends Enum<SizeLayoutType>

SizeLayoutType is an enumeration of algorithms available for calculating an arbitrary dimension of a widget. Each algorithm also takes a single value called "val" in this doc. ABSOLUTE - Val is treated as absolute. If val is 5 then the size of the widget along the associated axis is 5 pixels. RELATIVE - Val represents the percentage of the display that the widget should fill along the associated axis. For example, if the total size of the owning plot is 120 pixels and val is set to 50 then the size of the widget along the associated axis is 60; 50% of 120 = 60. FILL - Widget completely fills along the associated axis, minus


Enum Constant Summary
ABSOLUTE
           
FILL
           
RELATIVE
           
 
Method Summary
static SizeLayoutType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SizeLayoutType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ABSOLUTE

public static final SizeLayoutType ABSOLUTE

RELATIVE

public static final SizeLayoutType RELATIVE

FILL

public static final SizeLayoutType FILL
Method Detail

values

public static SizeLayoutType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SizeLayoutType c : SizeLayoutType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SizeLayoutType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2010-2013 androidplot.com. All Rights Reserved.