public class ConnectionUIInformation extends Object implements UIInformation
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ConnectionUIInformation()
Constructs a
ConnectionUIInformation . |
Modifier and Type | Method and Description |
---|---|
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,
FileWorkflowPersistor.LoadVersion loadVersion)
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() |
public static final String KEY_VERSION
public static final String KEY_BENDPOINTS
public ConnectionUIInformation()
ConnectionUIInformation
.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 indexnull
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, org.knime.core.node.workflow.FileWorkflowPersistor.LoadVersion)
public void load(NodeSettingsRO config, FileWorkflowPersistor.LoadVersion loadVersion) throws InvalidSettingsException
load
in interface UIInformation
config
- Retrieve the data from.loadVersion
- The workflow version that was used to store this
objectInvalidSettingsException
- 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 pointspublic ConnectionUIInformation clone()
clone
in interface UIInformation
clone
in class Object
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.