public class FXBendPolicy extends AbstractPolicy<javafx.scene.Node> implements ITransactional
FXBendPolicy can be used to manipulate the points constituting an
FXConnection, i.e. its start point, way points, and end point. When
moving a point the policy takes care of:
IVisualPart under mouse when
applicable.| Modifier and Type | Field and Description |
|---|---|
protected static double |
DEFAULT_OVERLAY_THRESHOLD |
| Constructor and Description |
|---|
FXBendPolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canAttach() |
IUndoableOperation |
commit() |
void |
createAndSelectSegmentPoint(int segmentIndex,
Point mouseInScene) |
protected IFXAnchor |
findAnchor(Point currentReferencePositionInScene,
boolean canAttach) |
protected FXConnection |
getConnection() |
protected Point |
getInitialMousePositionInScene() |
protected Point |
getInitialReferencePositionInLocal() |
protected double |
getOverlayThreshold() |
protected void |
hideShowOverlain(Point currentPositionInScene) |
void |
init() |
protected boolean |
isOverlain(int candidateIndex,
int currentIndex,
Point currentReferencePositionInScene) |
protected void |
locallyExecuteOperation() |
void |
moveSelectedSegmentPoint(Point mouseInScene) |
void |
selectSegmentPoint(int segmentIndex,
double segmentParameter,
Point mouseInScene) |
java.lang.String |
toString() |
commit, disableRefreshVisuals, enableRefreshVisuals, getAdaptable, getHost, init, setAdaptableprotected static final double DEFAULT_OVERLAY_THRESHOLD
protected boolean canAttach()
public IUndoableOperation commit()
commit in interface ITransactionalpublic void createAndSelectSegmentPoint(int segmentIndex,
Point mouseInScene)
protected FXConnection getConnection()
protected Point getInitialMousePositionInScene()
protected Point getInitialReferencePositionInLocal()
protected double getOverlayThreshold()
protected void hideShowOverlain(Point currentPositionInScene)
public void init()
init in interface ITransactionalprotected boolean isOverlain(int candidateIndex,
int currentIndex,
Point currentReferencePositionInScene)
protected void locallyExecuteOperation()
public void moveSelectedSegmentPoint(Point mouseInScene)
public void selectSegmentPoint(int segmentIndex,
double segmentParameter,
Point mouseInScene)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright (c) 2014 itemis AG and others. All rights reserved.