-
public class SpacingClass representing CSS spacing (padding, margin, and borders). This is mostly necessary to properly implement interactions and updates for properties like margin, marginLeft, and marginHorizontal.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intLEFTpublic final static intTOPpublic final static intRIGHTpublic final static intBOTTOMpublic final static intSTARTpublic final static intENDpublic final static intHORIZONTALpublic final static intVERTICALpublic final static intALL
-
Method Summary
Modifier and Type Method Description booleanset(int spacingType, float value)Set a spacing value. floatget(int spacingType)Get the spacing for a direction. floatgetRaw(int spacingType)Get the raw value (that was set using set), without taking into accountany default values. voidreset()Resets the spacing instance to its default state. -
-
Constructor Detail
-
Spacing
Spacing()
-
Spacing
Spacing(float defaultValue)
-
Spacing
Spacing(Spacing original)
-
-
Method Detail
-
set
boolean set(int spacingType, float value)
Set a spacing value.
-
get
float get(int spacingType)
Get the spacing for a direction. This takes into account any default values that have been set.
-
getRaw
float getRaw(int spacingType)
Get the raw value (that was set using set), without taking into accountany default values.
-
-
-
-