- All Superinterfaces:
Figure,PropertyBean,StyleableBean,StyleablePropertyBean,TreeNode<Figure>
- All Known Implementing Classes:
AbstractLabelConnectionFigure,AbstractLabelFigure,BezierPathFigure,CombinedPathFigure,EllipseFigure,ImageFigure,LabelFigure,PageLabelFigure,PolygonFigure,RectangleFigure,RegionFigure,SimpleLabelConnectionFigure,TextAreaFigure,TextFigure
ConnectableFigure.
- Author:
- Werner Randelshofer
-
Property Summary
Properties inherited from interface org.jhotdraw8.fxbase.styleable.StyleableBean
id -
Nested Class Summary
Nested classes/interfaces inherited from interface org.jhotdraw8.fxbase.tree.TreeNode
TreeNode.AncestorIterator<T extends TreeNode<T>> -
Field Summary
Fields inherited from interface org.jhotdraw8.draw.figure.Figure
declaredAndInheritedKeys, JHOTDRAW_CSS_PREFIX, PARENT_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable ConnectorfindConnector(double x, double y, @Nullable Figure prototype, double tolerance) Gets a connector for this figure at the given location.@Nullable ConnectorfindConnector(javafx.geometry.Point2D pointInLocal, @Nullable Figure connectingFigure, double tolerance) Gets a connector for this figure at the given location.Methods inherited from interface org.jhotdraw8.draw.figure.Figure
addChild, addedToDrawing, createHandles, createNode, disconnect, firePropertyChangeEvent, firePropertyChangeEvent, getBoundsInLocal, getBoundsInParent, getBoundsInWorld, getCenterInLocal, getCenterInParent, getChildren, getCssLayoutBounds, getDrawing, getLayer, getLayoutBounds, getLayoutBoundsInParent, getLayoutBoundsInWorld, getLayoutObservers, getLayoutSubjects, getLocalToParent, getLocalToWorld, getParent, getParentToLocal, getParentToWorld, getPreferredAspectRatio, getPropertyChangeListeners, getReadOnlyLayoutObservers, getRoot, getStyleableParent, getSupportedKeys, getVisualBounds, getVisualBoundsInWorld, getWorldToLocal, getWorldToParent, hasPropertyChangeListeners, invalidateTransforms, isAllowsChildren, isDecomposable, isDeletable, isDeletWithLastLayoutSubject, isEditable, isEditableKey, isGroupReshapeableWith, isLayoutable, isSelectable, isShowing, isSuitableChild, isSuitableParent, isSupportedKey, isVisible, layout, layoutChanged, layoutObserverChanged, layoutSubjectChanged, localToParent, localToWorld, localToWorld, parentProperty, propertyChanged, removeAllLayoutSubjects, removeChild, removedFromDrawing, removeFromParent, removeLayoutSubject, reshapeInLocal, reshapeInLocal, reshapeInLocal, reshapeInLocal, reshapeInParent, setParent, stylesheetChanged, transformChanged, transformInLocal, transformInParent, translateInLocal, translateInParent, updateCss, updateNode, worldToLocal, worldToLocal, worldToParent, worldToParentMethods inherited from interface org.jhotdraw8.fxbase.beans.PropertyBean
get, getNonNull, getProperties, getProperty, put, remove, set, setNonNull, valueAtMethods inherited from interface org.jhotdraw8.fxbase.styleable.StyleableBean
getId, getPseudoClassStates, getStyle, getStyleClasses, getTypeSelector, idPropertyMethods inherited from interface org.jhotdraw8.fxbase.styleable.StyleablePropertyBean
containsMapAccessor, getStyled, getStyled, getStyledNonNull, remove, removeAll, resetStyledValues, setStyledMethods inherited from interface org.jhotdraw8.fxbase.tree.TreeNode
ancestorIterable, breadthFirstIterable, depthFirstIterable, dumpTree, dumpTree, getAncestor, getChild, getDepth, getFirstChild, getLastChild, getMaxDepth, getPath, postorderIterable, preorderIterable, preorderSpliterator
-
Method Details
-
findConnector
@Nullable Connector findConnector(javafx.geometry.Point2D pointInLocal, @Nullable Figure connectingFigure, double tolerance) Gets a connector for this figure at the given location.- Parameters:
pointInLocal- the location of the connector in local coordinates.connectingFigure- The connecting figure or null if unknown. This allows for specific connectors for different connection figures.tolerance- tolerance in world coordinates- Returns:
- Returns the connector. Returns null if there is no connector at the given location.
-
findConnector
default @Nullable Connector findConnector(double x, double y, @Nullable Figure prototype, double tolerance) Gets a connector for this figure at the given location.- Parameters:
x- the location of the connector in local coordinates.y- the location of the connector in local coordinates.prototype- The prototype used to create a connection or null if unknown. This allows for specific connectors for different connection figures.tolerance- tolerance in world coordinates- Returns:
- Returns the connector. Returns null if there is no connector at the given location.
-