-
public class Spacing
Class 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 int
LEFT
public final static int
TOP
public final static int
RIGHT
public final static int
BOTTOM
public final static int
START
public final static int
END
public final static int
HORIZONTAL
public final static int
VERTICAL
public final static int
ALL
-
Method Summary
Modifier and Type Method Description boolean
set(int spacingType, float value)
Set a spacing value. float
get(int spacingType)
Get the spacing for a direction. float
getRaw(int spacingType)
Get the raw value (that was set using set), without taking into accountany default values. void
reset()
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.
-
-
-
-