- All Superinterfaces:
Figure,PropertyBean,StyleableBean,StyleablePropertyBean,TransformCachingFigure,TreeNode<Figure>
- All Known Implementing Classes:
AbstractElbowLineConnectionWithMarkersFigure,AbstractLineConnectionFigure,AbstractPathConnectionWithMarkersFigure,AbstractStraightLineConnectionWithMarkersFigure,ClippingFigure,LayerFigure,LineConnectionFigure,LineConnectionWithMarkersFigure,SimpleLayeredDrawing
Provides default implementations for figures which can not be transformed.
- 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_PROPERTYFields inherited from interface org.jhotdraw8.draw.figure.TransformCachingFigure
CACHE -
Method Summary
Modifier and TypeMethodDescriptiondefault javafx.scene.transform.TransformReturns the transformation from local coordinates into parent coordinates.default javafx.scene.transform.TransformReturns the transformation from parent coordinates into local coordinates.default voidreshapeInLocal(javafx.scene.transform.Transform transform) Attempts to change the local bounds of the figure.default voidreshapeInParent(javafx.scene.transform.Transform transform) Attempts to change the parent bounds of the figure.default voidtransformInLocal(javafx.scene.transform.Transform transform) Attempts to transform the figure.default voidtransformInParent(javafx.scene.transform.Transform transform) Attempts to transform the figure.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, getParent, getPreferredAspectRatio, getPropertyChangeListeners, getReadOnlyLayoutObservers, getRoot, getStyleableParent, getSupportedKeys, getVisualBounds, getVisualBoundsInWorld, hasPropertyChangeListeners, 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, setParent, stylesheetChanged, transformChanged, 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.draw.figure.TransformCachingFigure
getCachedLocalToParent, getCachedLocalToWorld, getCachedParentToLocal, getCachedParentToWorld, getCachedWorldToLocal, getCachedWorldToParent, getLocalToWorld, getParentToWorld, getWorldToLocal, getWorldToParent, invalidateTransforms, setCachedLocalToParent, setCachedLocalToWorld, setCachedParentToLocal, setCachedParentToWorld, setCachedWorldToLocal, setCachedWorldToParentMethods 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
-
transformInParent
default void transformInParent(javafx.scene.transform.Transform transform) Description copied from interface:FigureAttempts to transform the figure.The figure may choose to only partially change its transformation.
- Specified by:
transformInParentin interfaceFigure- Parameters:
transform- the desired transformation in parent coordinates
-
transformInLocal
default void transformInLocal(javafx.scene.transform.Transform transform) Description copied from interface:FigureAttempts to transform the figure.The figure may choose to only partially change its transformation.
- Specified by:
transformInLocalin interfaceFigure- Parameters:
transform- the desired transformation in local coordinates
-
reshapeInParent
default void reshapeInParent(javafx.scene.transform.Transform transform) Description copied from interface:FigureAttempts to change the parent bounds of the figure.The figure may choose to only partially change its parent bounds.
This method may also call
reshapeInLocalon child figures.- Specified by:
reshapeInParentin interfaceFigure- Parameters:
transform- the desired transformation in parent coordinates
-
getLocalToParent
default javafx.scene.transform.Transform getLocalToParent()Description copied from interface:FigureReturns the transformation from local coordinates into parent coordinates.This method may use caching and return incorrect results if the cache is stale.
- Specified by:
getLocalToParentin interfaceFigure- Returns:
- the transformation
-
getParentToLocal
default javafx.scene.transform.Transform getParentToLocal()Description copied from interface:FigureReturns the transformation from parent coordinates into local coordinates.This method may use caching and return incorrect results if the cache is stale.
- Specified by:
getParentToLocalin interfaceFigure- Returns:
- the transformation
-
reshapeInLocal
default void reshapeInLocal(javafx.scene.transform.Transform transform) Description copied from interface:FigureAttempts to change the local bounds of the figure.The figure may choose to only partially change its local bounds.
- Specified by:
reshapeInLocalin interfaceFigure- Parameters:
transform- the desired transformation in local coordinates
-