- All Superinterfaces:
Figure,PropertyBean,StyleableBean,StyleablePropertyBean,TreeNode<Figure>
- All Known Subinterfaces:
NonTransformableFigure,TransformableFigure
- All Known Implementing Classes:
AbstractCompositeFigure,AbstractDrawing,AbstractElbowLineConnectionWithMarkersFigure,AbstractFigure,AbstractLabelConnectionFigure,AbstractLabelFigure,AbstractLeafFigure,AbstractLineConnectionFigure,AbstractPathConnectionWithMarkersFigure,AbstractRegionFigure,AbstractStraightLineConnectionWithMarkersFigure,AbstractViewBoxDrawing,ArcFigure,BezierPathFigure,ClippingFigure,CombinedPathFigure,EllipseFigure,GroupFigure,ImageFigure,LabelFigure,LayerFigure,LineConnectionFigure,LineConnectionWithMarkersFigure,LineFigure,PageFigure,PageLabelFigure,PolygonFigure,PolylineFigure,RectangleFigure,RegionFigure,SimpleDrawing,SimpleLabelConnectionFigure,SimpleLayeredDrawing,SliceFigure,TextAreaFigure,TextFigure
This implementation is somewhat inefficient because we store the cached values in a map.
- 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
FieldsFields inherited from interface org.jhotdraw8.draw.figure.Figure
declaredAndInheritedKeys, JHOTDRAW_CSS_PREFIX, PARENT_PROPERTY -
Method Summary
Modifier and TypeMethodDescription@Nullable javafx.scene.transform.Transform@Nullable javafx.scene.transform.Transform@Nullable javafx.scene.transform.Transform@Nullable javafx.scene.transform.Transform@Nullable javafx.scene.transform.Transform@Nullable javafx.scene.transform.Transformdefault javafx.scene.transform.TransformReturns the transformation from local coordinates into world coordinates.default javafx.scene.transform.TransformReturns the transformation from world coordinates into drawing coordinates.default javafx.scene.transform.TransformReturns the transformation from world coordinates into local coordinates.default javafx.scene.transform.TransformReturns the transformation from world coordinates into parent coordinates.default voidInvalidates the transformation matrices of this figure.voidsetCachedLocalToParent(@Nullable javafx.scene.transform.Transform newValue) voidsetCachedLocalToWorld(@Nullable javafx.scene.transform.Transform newValue) voidsetCachedParentToLocal(@Nullable javafx.scene.transform.Transform newValue) voidsetCachedParentToWorld(@Nullable javafx.scene.transform.Transform newValue) voidsetCachedWorldToLocal(@Nullable javafx.scene.transform.Transform newValue) voidsetCachedWorldToParent(@Nullable javafx.scene.transform.Transform newValue) 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, getParent, getParentToLocal, 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, 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
-
Field Details
-
CACHE
static final boolean CACHE- See Also:
-
-
Method Details
-
getCachedLocalToWorld
@Nullable javafx.scene.transform.Transform getCachedLocalToWorld() -
setCachedLocalToWorld
void setCachedLocalToWorld(@Nullable javafx.scene.transform.Transform newValue) -
getCachedParentToWorld
@Nullable javafx.scene.transform.Transform getCachedParentToWorld() -
setCachedParentToWorld
void setCachedParentToWorld(@Nullable javafx.scene.transform.Transform newValue) -
getCachedWorldToLocal
@Nullable javafx.scene.transform.Transform getCachedWorldToLocal() -
setCachedWorldToLocal
void setCachedWorldToLocal(@Nullable javafx.scene.transform.Transform newValue) -
getCachedWorldToParent
@Nullable javafx.scene.transform.Transform getCachedWorldToParent() -
setCachedWorldToParent
void setCachedWorldToParent(@Nullable javafx.scene.transform.Transform newValue) -
getParentToWorld
default javafx.scene.transform.Transform getParentToWorld()Description copied from interface:FigureReturns the transformation from world coordinates into drawing coordinates.This method may use caching and return incorrect results if the cache is stale.
- Specified by:
getParentToWorldin interfaceFigure- Returns:
- the transformation
-
getLocalToWorld
default javafx.scene.transform.Transform getLocalToWorld()Description copied from interface:FigureReturns the transformation from local coordinates into world coordinates.This method may use caching and return incorrect results if the cache is stale.
- Specified by:
getLocalToWorldin interfaceFigure- Returns:
- the transformation
-
getWorldToLocal
default javafx.scene.transform.Transform getWorldToLocal()Description copied from interface:FigureReturns the transformation from world coordinates into local coordinates.This method may use caching and return incorrect results if the cache is stale.
- Specified by:
getWorldToLocalin interfaceFigure- Returns:
- the transformation
-
getWorldToParent
default javafx.scene.transform.Transform getWorldToParent()Description copied from interface:FigureReturns the transformation from world coordinates into parent coordinates.This method may use caching and return incorrect results if the cache is stale.
- Specified by:
getWorldToParentin interfaceFigure- Returns:
- the transformation
-
getCachedLocalToParent
@Nullable javafx.scene.transform.Transform getCachedLocalToParent() -
setCachedLocalToParent
void setCachedLocalToParent(@Nullable javafx.scene.transform.Transform newValue) -
getCachedParentToLocal
@Nullable javafx.scene.transform.Transform getCachedParentToLocal() -
setCachedParentToLocal
void setCachedParentToLocal(@Nullable javafx.scene.transform.Transform newValue) -
invalidateTransforms
default void invalidateTransforms()Description copied from interface:FigureInvalidates the transformation matrices of this figure.This figure does not keep track of changes that cause the invalidation of its transformation matrices. Use a
DrawingModelto manage the transformation matrices of the figures in a drawing. Or call this method on a figure and all its descendants, after you have performed a change which invalidated the transform matrices of the figure.- Specified by:
invalidateTransformsin interfaceFigure
-