|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.workflow.ConnectionUIInformation
public class ConnectionUIInformation
Default implementation of a connection extra info. By now it only stores bendpoints used by the modelling editor.
Field Summary | |
---|---|
static String |
KEY_BENDPOINTS
The key under which the bounds are registered. |
static String |
KEY_VERSION
The key under which the type is registered. |
Constructor Summary | |
---|---|
ConnectionUIInformation()
Constructs a ConnectionUIInformation . |
Method Summary | |
---|---|
void |
addBendpoint(int x,
int y,
int index)
Add a bendpoint. |
ConnectionUIInformation |
clone()
UIInformation objects are cloneable without further restriction. |
ConnectionUIInformation |
createNewWithOffsetPosition(int[] moveDist)
Changes the position by setting the bend points according to the given moving distance. |
int[][] |
getAllBendpoints()
Gets all bendpoints. |
int[] |
getBendpoint(int index)
Returns a bendpoint. |
void |
load(NodeSettingsRO config)
Reads the information from the NodeSettings object. |
void |
removeBendpoint(int index)
Removes a bendpoint. |
void |
save(NodeSettingsWO config)
Stores all contained information into the given configuration. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String KEY_VERSION
public static final String KEY_BENDPOINTS
Constructor Detail |
---|
public ConnectionUIInformation()
ConnectionUIInformation
.
Method Detail |
---|
public void addBendpoint(int x, int y, int index)
x
- x coordinatey
- y cordinateindex
- index of the pointpublic void removeBendpoint(int index)
index
- The point indexpublic int[] getBendpoint(int index)
index
- The point index
null
public int[][] getAllBendpoints()
public void save(NodeSettingsWO config)
save
in interface UIInformation
config
- The configuration to write the current settings into.UIInformation.load(org.knime.core.node.NodeSettingsRO)
public void load(NodeSettingsRO config) throws InvalidSettingsException
load
in interface UIInformation
config
- Retrieve the data from.
InvalidSettingsException
- If the required keys are not available
in the NodeSettings.UIInformation.save(org.knime.core.node.NodeSettingsWO)
public ConnectionUIInformation createNewWithOffsetPosition(int[] moveDist)
moveDist
- the distance to change the bend points
public String toString()
toString
in class Object
public ConnectionUIInformation clone()
clone
in interface UIInformation
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |