|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.data.property.SizeHandler
public final class SizeHandler
Final SizeHandler
implementation which keeps a
SizeModel
to request size settings from.
Nested Class Summary | |
---|---|
(package private) static interface |
SizeHandler.SizeModel
Internal SizeModel used to request sizes by
DataCell attribute value. |
Field Summary | |
---|---|
static double |
DEFAULT_SIZE
Deprecated. use DEFAULT_SIZE_FACTOR instead |
static double |
DEFAULT_SIZE_FACTOR
The default size factor in case no SizeHandler exist, which is one, that is no scaling is done. |
Constructor Summary | |
---|---|
SizeHandler(SizeHandler.SizeModel model)
Creates a new SizeHandler based on the the given
SizeModel . |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
double |
getSize(DataCell dc)
Deprecated. use getSizeFactor(DataCell) instead |
double |
getSizeFactor(DataCell dc)
Returns the size as a scaling factor (in [1, )). |
int |
hashCode()
|
static SizeHandler |
load(ConfigRO config)
Reads size settings from the given Config and returns a new
SizeHandler . |
void |
save(ConfigWO config)
Save the SizeModel class and settings to the given
Config . |
String |
toString()
Returns a string summary of the underlying SizeHandler.SizeModel . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final double DEFAULT_SIZE
DEFAULT_SIZE_FACTOR
instead
public static final double DEFAULT_SIZE_FACTOR
Constructor Detail |
---|
public SizeHandler(SizeHandler.SizeModel model)
SizeHandler
based on the the given
SizeModel
.
model
- The model for sizes.
IllegalArgumentException
- If the model is
null
.Method Detail |
---|
@Deprecated public double getSize(DataCell dc)
getSizeFactor(DataCell)
instead
DataCell
.
dc
- Value to be used to compute size.
public double getSizeFactor(DataCell dc)
dc
- value to use to compute size for
public void save(ConfigWO config)
SizeModel
class and settings to the given
Config
.
config
- To write size settings into.
NullPointerException
- If the config is null
.public static SizeHandler load(ConfigRO config) throws InvalidSettingsException
Config
and returns a new
SizeHandler
.
config
- Read size settings from.
SizeHandler
object.
InvalidSettingsException
- The the size model settings could not
be read.
NullPointerException
- If the config is null
.public String toString()
SizeHandler.SizeModel
.
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 |