public abstract class Scaler
extends java.lang.Object
currentScale()
)
or not (given in a standard resolution, e.g. 16x16 for an icon).Modifier and Type | Field and Description |
---|---|
protected double |
initialScale |
Constructor and Description |
---|
Scaler() |
Modifier and Type | Method and Description |
---|---|
protected abstract double |
currentScale()
Supplies the Scaler with the current user scale.
|
boolean |
isPreScaled() |
double |
scaleVal(double value) |
void |
setPreScaled(boolean preScaled) |
boolean |
update(Scaler scaler)
Synchronizes the state with the provided scaler.
|
public boolean isPreScaled()
public void setPreScaled(boolean preScaled)
public double scaleVal(double value)
value
- the value (e.g. a size of the associated UI object) to scalecurrentScale()
protected abstract double currentScale()
UserScaleContext.usrScale
) or something else.public boolean update(Scaler scaler)