|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Bend
A class that encapsulates the representation of the bend used for a particular EdgeView.
Method Summary | |
---|---|
void |
addHandle(int insertIndex,
Point2D pt)
Add a PHandle to the edge at the point and index specified. |
void |
addHandle(Point2D pt)
Add a PHandle to the edge at the point specified. |
void |
drawSelected()
Draws any handles previously added. |
void |
drawUnselected()
Removes any handles from the display. |
Point2D[] |
getDrawPoints()
Returns a list of points that define what gets drawn and hence what is visible to the user. |
List |
getHandles()
Returns a (new) List of clones of the Point2Ds that locate the handles. |
Point2D |
getSourceHandlePoint()
Returns the handle Point2D closest to the source node. |
Point2D |
getTargetHandlePoint()
Returns the handle Point2D closest to the target node. |
boolean |
handleAlreadyExists(Point2D pt)
Checks to see if a PHandle already exists for the given point. |
void |
moveHandle(int i,
Point2D pt)
Moves the handle specified at the given index to the given point. |
void |
removeAllHandles()
Removes all handles |
void |
removeHandle(int i)
Removes the PHandle at the given index. |
void |
removeHandle(Point2D pt)
Removes the PHandle at the specified point. |
void |
setHandles(List bendPoints)
Given a list of points removes all existing handles/handlePoints and adds new ones for those specified in the List. |
Method Detail |
---|
void setHandles(List bendPoints)
bendPoints
- A list of Point2Ds to create new handles.List getHandles()
void moveHandle(int i, Point2D pt)
i
- Index of the handle to move.pt
- Point2D to which to move the specified handle.Point2D getSourceHandlePoint()
Point2D getTargetHandlePoint()
void addHandle(Point2D pt)
pt
- The point at which to draw the PHandle and to which the
PHandle will be attached via the locator.void addHandle(int insertIndex, Point2D pt)
insertIndex
- The index at which to add the PHandle to the
list of handles.pt
- The point at which to draw the PHandle and to which the
PHandle will be attached via the locator.void removeHandle(Point2D pt)
pt
- If this point intersects an existing PHandle, then remove that
PHandle.void removeHandle(int i)
i
- The index of the PHandle to remove.void removeAllHandles()
boolean handleAlreadyExists(Point2D pt)
pt
- If this point intersects a currently existing PHandle, then
return true, else return false.void drawSelected()
void drawUnselected()
Point2D[] getDrawPoints()
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |