Class BezierConnectState
java.lang.Object
jsimgraph.controller.UIStateDefault
jsimgraph.controller.BezierConnectState
Title: Handles all the events when the user draws a Bezier connection
Description: This class handles all the steps involved in the drawing of a Bezier connection
- Author:
- Emma Bortone Date: 2020
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Point2Dprotected Graphics2Dprotected org.jgraph.graph.PortViewprotected Point2Dprotected Point2Dprotected GraphMouseListenerprotected JMTPathprotected org.jgraph.graph.PortViewprotected booleanprotected Stringprotected Point2Dprotected Point2Dprotected Stringprotected Point2Dprotected Point2Dprotected Point2DFields inherited from class UIStateDefault
mediator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jgraph.graph.PortViewgetInPortViewAt(int x, int y) Gets the first portView of the input port of the cell at positionprotected org.jgraph.graph.PortViewgetOutPortViewAt(int x, int y) Gets the first portView of the output port of the cell at positionvoidvoidvoidvoidvoidvoidprotected voidMethods inherited from class UIStateDefault
handleClick
-
Field Details
-
start
-
current
-
port
protected org.jgraph.graph.PortView port -
firstPort
protected org.jgraph.graph.PortView firstPort -
path
-
ml
-
pressed
protected boolean pressed -
dashedGraphics
-
sourceArc
-
targetArc
-
tangentSourceArc
-
tangentTargetArc
-
arcs
-
state
-
previous_state
-
last
-
lastMousePosition
-
-
Constructor Details
-
BezierConnectState
-
-
Method Details
-
setState
-
handlePress
- Overrides:
handlePressin classUIStateDefault
-
handleExit
- Overrides:
handleExitin classUIStateDefault
-
handleEnter
- Overrides:
handleEnterin classUIStateDefault
-
handleMove
- Overrides:
handleMovein classUIStateDefault
-
handleDrag
- Overrides:
handleDragin classUIStateDefault
-
handleRelease
- Overrides:
handleReleasein classUIStateDefault
-
getOutPortViewAt
protected org.jgraph.graph.PortView getOutPortViewAt(int x, int y) Gets the first portView of the output port of the cell at position- Parameters:
x-y-- Returns:
- portView of the output port
-
getInPortViewAt
protected org.jgraph.graph.PortView getInPortViewAt(int x, int y) Gets the first portView of the input port of the cell at position- Parameters:
x-y-- Returns:
- portView of the input port
-