SelfReferenceEdgepublic class CurvedLabeledEdge extends LabeledEdge
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
CurvedLabeledEdge.BiConnectionType |
Helper Enum which represents all supported representations of
connector type combinations.
|
LabeledEdge.DirectionType| Constructor | Description |
|---|---|
CurvedLabeledEdge(java.lang.String labelText,
LabeledNode startNode,
ConnectorType startConnector,
LabeledNode endNode,
ConnectorType endConnector,
ch.hsr.adv.commons.core.logic.domain.styles.ADVStyle style) |
|
CurvedLabeledEdge(java.lang.String labelText,
LabeledNode startNode,
ConnectorType startConnector,
LabeledNode endNode,
ConnectorType endConnector,
ch.hsr.adv.commons.core.logic.domain.styles.ADVStyle style,
LabeledEdge.DirectionType directionType) |
| Modifier and Type | Method | Description |
|---|---|---|
protected javafx.geometry.Point2D |
createDistanceVector(javafx.geometry.Point2D startIntersectionPoint,
javafx.geometry.Point2D endIntersectionPoint,
double curvatureFactor) |
|
protected void |
createOneControlPoint(double x,
double y) |
Sets the same x and y coordinates for both control points of the curve.
|
protected void |
createTwoControlPoints(double x1,
double y1,
double x2,
double y2) |
|
protected void |
drawLabel() |
Positions the label on the middle of the curve
|
protected void |
setControlPoints(javafx.geometry.Point2D startIntersectionPoint,
javafx.geometry.Point2D endIntersectionPoint) |
Sets both control points to the same point in the middle of the start
and end points.
|
autoSizeChildrenProperty, getChildren, isAutoSizeChildren, layoutChildren, minHeight, minWidth, prefHeight, prefWidth, setAutoSizeChildrengetConnectorPoint, getCurve, getEndBounds, getEndConnector, getLabel, getStartBounds, getStartConnector, updateaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClassCssMetaData, getClip, getContentBias, getCssMetaData, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInitialFocusTraversable, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isResizable, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, maxHeight, maxWidth, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resize, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visiblePropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomputeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getBaselineOffset, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setNeedsLayout, updateBoundspublic CurvedLabeledEdge(java.lang.String labelText,
LabeledNode startNode,
ConnectorType startConnector,
LabeledNode endNode,
ConnectorType endConnector,
ch.hsr.adv.commons.core.logic.domain.styles.ADVStyle style)
public CurvedLabeledEdge(java.lang.String labelText,
LabeledNode startNode,
ConnectorType startConnector,
LabeledNode endNode,
ConnectorType endConnector,
ch.hsr.adv.commons.core.logic.domain.styles.ADVStyle style,
LabeledEdge.DirectionType directionType)
protected void drawLabel()
drawLabel in class LabeledEdgeprotected void setControlPoints(javafx.geometry.Point2D startIntersectionPoint,
javafx.geometry.Point2D endIntersectionPoint)
setControlPoints in class LabeledEdgestartIntersectionPoint - calculated intersection pointendIntersectionPoint - calculated intersection pointprotected javafx.geometry.Point2D createDistanceVector(javafx.geometry.Point2D startIntersectionPoint,
javafx.geometry.Point2D endIntersectionPoint,
double curvatureFactor)
startIntersectionPoint - start pointendIntersectionPoint - end pointcurvatureFactor - the bigger the factor, the more the
curve is bentprotected void createOneControlPoint(double x,
double y)
x - coordinate for the control pointsy - coordinate for the control pointsprotected void createTwoControlPoints(double x1,
double y1,
double x2,
double y2)
x1 - x coordinate of 1st control pointy1 - y coordinate of 1st control pointx2 - x coordinate of 2nd control pointy2 - y coordinate of 2nd control point