Class BezierEdgeModificationState
java.lang.Object
jsimgraph.controller.UIStateDefault
jsimgraph.controller.BezierEdgeModificationState
Title: Handles all the events when the user modifies a Bezier connection
Description: This class handles all the all the possible actions when modifying a Bezier connection
- Author:
- Emma Bortone Date: 2020
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Point2Dprotected JMTPathprotected Point2Dprotected Stringprotected Point2DFields inherited from class UIStateDefault
mediator -
Constructor Summary
ConstructorsConstructorDescriptionBezierEdgeModificationState(Mediator mediator, GraphMouseListener ml) Creates the select state -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidHandles press event, it selects the cell that is under the pointer If there is no cell deselects.voidvoidSets the edge to be modifiedvoidUpdates the stateMethods inherited from class UIStateDefault
handleClick, handleExit
-
Field Details
-
path
-
source
-
target
-
state
-
current
-
-
Constructor Details
-
BezierEdgeModificationState
Creates the select state- Parameters:
mediator-ml-
-
-
Method Details
-
handlePress
Handles press event, it selects the cell that is under the pointer If there is no cell deselects. There is also the possibility of activating the marquee handler- Overrides:
handlePressin classUIStateDefault- Parameters:
e- press mouse event
-
handleMove
- Overrides:
handleMovein classUIStateDefault
-
handleDrag
- Overrides:
handleDragin classUIStateDefault
-
handleRelease
- Overrides:
handleReleasein classUIStateDefault
-
handleEnter
- Overrides:
handleEnterin classUIStateDefault
-
setEdge
Sets the edge to be modified -
setState
Updates the state
-