public final class MarginType extends Object
Specifies how margin values should be interpreted.
Modifier and Type | Field and Description |
---|---|
static int |
Absolute
Margin value measured in content units.
|
static int |
RelativeToParentDimensions
Margin value should be interpreted as a portion of appropriate parent dimension.
|
static int |
RelativeToParentMinDimension
Margin value should be interpreted as a portion of parent minimum dimension.
|
Modifier and Type | Method and Description |
---|---|
static int |
parse(String value)
Parses a string to a
enumeration value. |
static String |
toString(int value)
Returns a string representation of the
value. |
public static final int Absolute
Margin value measured in content units.
public static final int RelativeToParentDimensions
Margin value should be interpreted as a portion of appropriate parent dimension.
Left and right margins are relative to parent width, top and bottom margins are relative to parent height. If this type is chosen, margin value must be between 0.0 and 1.0.
public static final int RelativeToParentMinDimension
Margin value should be interpreted as a portion of parent minimum dimension.
If this type is chosen, margin value must be between 0.0 and 1.0.
public static final String toString(int value)
Returns a string representation of the
value.
MarginType
value
- The value to convert.MarginType
value.public static final int parse(String value)
Parses a string to a
enumeration value.
MarginType
value
- The string to parse.MarginType
enumeration value.