public final class RenderLength extends Object
Modifier and Type | Field and Description |
---|---|
static RenderLength |
AUTO |
static RenderLength |
EMPTY |
Constructor and Description |
---|
RenderLength(long value,
boolean percentage) |
Modifier and Type | Method and Description |
---|---|
static RenderLength |
createFromRaw(double rawValue) |
static RenderLength |
createPercentage(double rawValue) |
boolean |
equals(Object o) |
long |
getValue() |
int |
hashCode() |
boolean |
isPercentage() |
long |
resolve(long parent) |
long |
resolve(long parent,
long auto) |
static long |
resolveLength(long parent,
double rawvalue) |
RenderLength |
resolveToRenderLength(long parent) |
String |
toString() |
public static final RenderLength AUTO
public static final RenderLength EMPTY
public long getValue()
public boolean isPercentage()
public long resolve(long parent)
public long resolve(long parent, long auto)
public static long resolveLength(long parent, double rawvalue)
public static RenderLength createFromRaw(double rawValue)
public static RenderLength createPercentage(double rawValue)
public RenderLength resolveToRenderLength(long parent)