|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.data.property.SizeModelDouble
public class SizeModelDouble
A SizeModel
computing sizes of objects (rows) based on the
double
value of DataCell
.
Nested Class Summary | |
---|---|
static class |
SizeModelDouble.Mapping
Supported mapping methods. |
Constructor Summary | |
---|---|
SizeModelDouble(double min,
double max)
Create new SizeHandler based on double values and a given interval. |
|
SizeModelDouble(double min,
double max,
double factor)
Creates a new SizeHandler based on an interval defined by min and max and a magnification factor which defines the range onto the interval is mapped. |
|
SizeModelDouble(double min,
double max,
double factor,
SizeModelDouble.Mapping mapping)
Creates a new SizeHandler based on an interval defined by min and max and a magnification factor which defines the range onto the interval is mapped. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
double |
getFactor()
|
SizeModelDouble.Mapping |
getMappingMethod()
|
double |
getMaxValue()
|
double |
getMinValue()
|
double |
getSize(DataCell dc)
Deprecated. use getSizeFactor(DataCell) instead. |
double |
getSizeFactor(DataCell dc)
Computes the size based on the actual value of the provided cell, the interval, the scaling factor and the mapping method. |
int |
hashCode()
|
static SizeModelDouble |
load(ConfigRO config)
Reads the size settings and return a new SizeModelDouble . |
void |
save(ConfigWO config)
Saves min and max ranges to the given Config . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SizeModelDouble(double min, double max)
min
- minimum of domainmax
- maximum of domain
IllegalArgumentException
- If min < maxpublic SizeModelDouble(double min, double max, double factor)
min
- minimum of the domainmax
- maximum of the domainfactor
- scaling factor for the mappingpublic SizeModelDouble(double min, double max, double factor, SizeModelDouble.Mapping mapping)
min
- minimum of the domainmax
- maximum of the domainfactor
- scaling factor for the mappingmapping
- the mapping method to use (linear, square root,
logarithmic)Method Detail |
---|
@Deprecated public double getSize(DataCell dc)
getSizeFactor(DataCell)
instead.
getSize
in interface SizeHandler.SizeModel
dc
- value to be used for size computation.
SizeHandler.getSize(DataCell)
public double getSizeFactor(DataCell dc)
n
times
larger.
getSizeFactor
in interface SizeHandler.SizeModel
dc
- the attribute value to get the size factor for
public double getMinValue()
public double getMaxValue()
public double getFactor()
public SizeModelDouble.Mapping getMappingMethod()
public void save(ConfigWO config)
Config
.
save
in interface SizeHandler.SizeModel
config
- To write bounds into.
NullPointerException
- If the config is null
.#save(ConfigWO)
public static SizeModelDouble load(ConfigRO config) throws InvalidSettingsException
SizeModelDouble
.
config
- Read min and max bound from.
InvalidSettingsException
- If the bounds could not be read.
NullPointerException
- If the config is null
.public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |