java.lang.Enum<SizeConstraint.SizeConstraintType>
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SizeConstraint.SizeConstraintType>
Enclosing class:
SizeConstraint


public static enum SizeConstraint.SizeConstraintType
extends java.lang.Enum<SizeConstraint.SizeConstraintType>
равила формирования размера объектов.
  • FIXED — Размер содержимого будет иметь фиксированный размер, определенный в value метода SizeConstraint(SizeConstraintType, float).
  • FIXED_RATIO — Ширина содержимого относительно ширины контейнера (в котором находится это содержимое) будет иметь фиксированный размер, определенный в value метода SizeConstraint(SizeConstraintType, float).
  • PREFERRED_RATIO — Ширина содержимого относительно ширины контейнера (в котором находится это содержимое) будет иметь размер, определенный в value метода SizeConstraint(SizeConstraintType, float), но не более реальной ширины содержимого.

Enum Constant Summary

Enum Constants
Enum Constant and Description
FIXED 
FIXED_RATIO 
PREFERRED_RATIO 

Method Summary

All Methods
Static Methods
Concrete Methods
Modifier and TypeMethod and Description
static SizeConstraint.SizeConstraintTypevalueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
static SizeConstraint.SizeConstraintType[]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

FIXED

public static final SizeConstraint.SizeConstraintType FIXED

FIXED_RATIO

public static final SizeConstraint.SizeConstraintType FIXED_RATIO

PREFERRED_RATIO

public static final SizeConstraint.SizeConstraintType PREFERRED_RATIO

Method Detail

values

public static SizeConstraint.SizeConstraintType[] 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 (SizeConstraint.SizeConstraintType c : SizeConstraint.SizeConstraintType.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SizeConstraint.SizeConstraintType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null