public abstract class JBValue
extends java.lang.Object
JBUIScale.scale(float)
.
JBValue
can be used separately or in a group, see JBValue.JBValueGroup
.
Also, a JBValue.UIInteger
value can be used as a wrapper over an integer value stored in UIDefaults
.
Modifier and Type | Class and Description |
---|---|
static class |
JBValue.Float
JBValue wrapper over a float.
|
static class |
JBValue.JBValueGroup
A group of values, utilizing caching strategy per value.
|
static class |
JBValue.UIInteger
JBValue wrapper over an integer value in
UIDefaults . |
Modifier | Constructor and Description |
---|---|
protected |
JBValue() |
Modifier and Type | Method and Description |
---|---|
int |
get()
Returns scaled rounded to int value.
|
int |
get(PaintUtil.RoundingMode rm)
Returns scaled rounded to int (according to
rm ) value. |
float |
getFloat()
Returns scaled float value.
|
protected abstract float |
getUnscaled()
Returns initial unscaled value.
|
public int get()
public float getFloat()
public int get(PaintUtil.RoundingMode rm)
rm
) value.protected abstract float getUnscaled()