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.
|
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 MarginType value.
value
- The value to convert.public static final int parse(String value)
Parses a string to a MarginType enumeration value.
value
- The string to parse.Copyright © 2020. All rights reserved.