|
|||||||||
| Home >> All >> giny >> [ view overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
giny.view
Interface Bend

- public interface Bend
A class that encapsulates the representation of the bend used for a particular EdgeView.
| Method Summary | |
void |
addHandle(int insertIndex,
java.awt.geom.Point2D pt)
Add a PHandle to the edge at the point and index specified. |
void |
addHandle(java.awt.geom.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. |
java.awt.geom.Point2D[] |
getDrawPoints()
Returns a list of points that define what gets drawn and hence what is visible to the user. |
java.util.List |
getHandles()
Returns a (new) List of clones of the Point2Ds that locate the handles. |
java.awt.geom.Point2D |
getSourceHandlePoint()
Returns the handle Point2D closest to the source node. |
java.awt.geom.Point2D |
getTargetHandlePoint()
Returns the handle Point2D closest to the target node. |
boolean |
handleAlreadyExists(java.awt.geom.Point2D pt)
Checks to see if a PHandle already exists for the given point. |
void |
moveHandle(int i,
java.awt.geom.Point2D pt)
Moves the handle specified at the given index to the given point. |
void |
removeHandle(int i)
Removes the PHandle at the given index. |
void |
removeHandle(java.awt.geom.Point2D pt)
Removes the PHandle at the specified point. |
void |
setHandles(java.util.List bendPoints)
Given a list of points removes all existing handles/handlePoints and adds new ones for those specified in the List. |
| Method Detail |
setHandles
public void setHandles(java.util.List bendPoints)
- Given a list of points removes all existing handles/handlePoints
and adds new ones for those specified in the List.
getHandles
public java.util.List getHandles()
- Returns a (new) List of clones of the Point2Ds that locate the handles.
moveHandle
public void moveHandle(int i,
java.awt.geom.Point2D pt)
- Moves the handle specified at the given index to the given point.
getSourceHandlePoint
public java.awt.geom.Point2D getSourceHandlePoint()
- Returns the handle Point2D closest to the source node.
getTargetHandlePoint
public java.awt.geom.Point2D getTargetHandlePoint()
- Returns the handle Point2D closest to the target node.
addHandle
public void addHandle(java.awt.geom.Point2D pt)
- Add a PHandle to the edge at the point specified. Acts as
an interface to actuallyAddHandle() which does the actual adding.
addHandle
public void addHandle(int insertIndex,
java.awt.geom.Point2D pt)
- Add a PHandle to the edge at the point and index specified. Acts as
an interface to actuallyAddHandle() which does the actual adding.
removeHandle
public void removeHandle(java.awt.geom.Point2D pt)
- Removes the PHandle at the specified point.
removeHandle
public void removeHandle(int i)
- Removes the PHandle at the given index.
handleAlreadyExists
public boolean handleAlreadyExists(java.awt.geom.Point2D pt)
- Checks to see if a PHandle already exists for the given point.
drawSelected
public void drawSelected()
- Draws any handles previously added.
drawUnselected
public void drawUnselected()
- Removes any handles from the display.
getDrawPoints
public java.awt.geom.Point2D[] getDrawPoints()
- Returns a list of points that define what gets drawn and hence
what is visible to the user.
|
|||||||||
| Home >> All >> giny >> [ view overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC