public class DefaultScale extends Object implements Scale
Constructor and Description |
---|
DefaultScale(double max) |
DefaultScale(double min,
double max) |
Modifier and Type | Method and Description |
---|---|
double |
getMax()
Get the value of max.
|
double |
getMin()
Get the value of min.
|
int |
getValueAsRGB(double value) |
double |
getValueAsScale(double value)
Get the corresponding value between 0.0 and 1.0.
|
void |
setMax(double v)
Set the value of max.
|
void |
setMin(double v)
Set the value of min.
|
public DefaultScale(double min, double max)
public DefaultScale(double max)
public double getMin()
public void setMin(double v)
v
- Value to assign to min.public double getMax()
public void setMax(double v)
v
- Value to assign to max.public double getValueAsScale(double value)
Scale
getValueAsScale
in interface Scale
value
- value to get scalepublic int getValueAsRGB(double value)
getValueAsRGB
in interface Scale
Copyright © 1999–2020 CodeLutin. All rights reserved.