Interface Bend
public interface Bend
Module: presentation-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>presentation-api</artifactId> </dependency>
Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
-
Method Summary
Modifier and TypeMethodDescriptionGet List of all handles on this edgeint
Get index of a HandleCreate string representation of this object for parsing.void
insertHandleAt(int index, Handle handle)
Insert a Handle to the specified position in the Bendvoid
Remove all Handles on this Bendvoid
removeHandleAt(int handleIndex)
Remove a Handle at the given index.
-
Method Details
-
getAllHandles
Get List of all handles on this edge- Returns:
- All
Handle
s belong to this Bend.
-
insertHandleAt
Insert a Handle to the specified position in the Bend- Parameters:
index
- Position of the new Handlehandle
- Handle to be added
-
removeHandleAt
void removeHandleAt(int handleIndex)Remove a Handle at the given index.- Parameters:
handleIndex
- Index of the Handle to be removed
-
removeAllHandles
void removeAllHandles()Remove all Handles on this Bend -
getIndex
Get index of a Handle- Parameters:
handle
-- Returns:
- Index of the given Handle
-
getSerializableString
String getSerializableString()Create string representation of this object for parsing.- Returns:
- serializable string.
-