|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.data.property.ShapeModelNominal
public final class ShapeModelNominal
Nominal ShapeModel which maps a set of DataCell
element to Shape.
| Constructor Summary | |
|---|---|
ShapeModelNominal(Map<DataCell,ShapeFactory.Shape> map)
Creates new nominal ShapeModel based on a mapping. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
ShapeFactory.Shape |
getShape(DataCell dc)
Returns a Shape for the given DataCell value, or ShapeFactory.DEFAULT if not set. |
int |
hashCode()
|
Iterator<DataCell> |
iterator()
Returns an iterator over the keys. |
static ShapeModelNominal |
load(ConfigRO config)
Reads Shape settings from given Config and returns a new
ShapeModelNominal object. |
String |
printShapeMapping()
|
void |
save(ConfigWO config)
Saves the DataCell to Shape mapping to the
given Config. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ShapeModelNominal(Map<DataCell,ShapeFactory.Shape> map)
ShapeModel based on a mapping.
map - Mapping form DataCell values to
Shape objects.
IllegalArgumentException - If the map is null.| Method Detail |
|---|
public ShapeFactory.Shape getShape(DataCell dc)
ShapeFactory.DEFAULT if not set.
getShape in interface ShapeHandler.ShapeModeldc - A DataCell value to get shape for.
public Iterator<DataCell> iterator()
iterator in interface Iterable<DataCell>Iterable.iterator()public void save(ConfigWO config)
DataCell to Shape mapping to the
given Config.
save in interface ShapeHandler.ShapeModelconfig - Save settings to.
NullPointerException - If the config is null.
public static ShapeModelNominal load(ConfigRO config)
throws InvalidSettingsException
Config and returns a new
ShapeModelNominal object.
config - Reads shape model from.
ShapeModelNominal object.
InvalidSettingsException - If the ShapeModel settings
could not be read.
NullPointerException - If the config is null.public String printShapeMapping()
ShapeModel as list of
DataCell to Shape mapping.public String toString()
toString in class ObjectObject.toString()public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||