java.lang.Object
org.jhotdraw8.fxbase.styleable.AbstractStyleablePropertyBean
org.jhotdraw8.draw.figure.AbstractFigure
org.jhotdraw8.draw.figure.AbstractLeafFigure
org.jhotdraw8.svg.draw.figure.SvgImageFigure
- All Implemented Interfaces:
CompositableFigure,ConnectableFigure,Figure,HideableFigure,ImageableFigure,LockableFigure,ResizableFigure,StyleableFigure,TransformableFigure,TransformCachingFigure,org.jhotdraw8.fxbase.beans.PropertyBean,org.jhotdraw8.fxbase.styleable.StyleableBean,org.jhotdraw8.fxbase.styleable.StyleablePropertyBean,org.jhotdraw8.fxbase.tree.TreeNode<Figure>
public class SvgImageFigure
extends AbstractLeafFigure
implements ResizableFigure, TransformableFigure, StyleableFigure, LockableFigure, CompositableFigure, ConnectableFigure, HideableFigure, ImageableFigure
SvgImageFigure presents an SVG image or a bitmap image on a drawing.
- Author:
- Werner Randelshofer
-
Property Summary
Properties inherited from class org.jhotdraw8.draw.figure.AbstractFigure
parentProperties inherited from interface org.jhotdraw8.draw.figure.StyleableFigure
id -
Nested Class Summary
Nested classes/interfaces inherited from interface org.jhotdraw8.fxbase.tree.TreeNode
org.jhotdraw8.fxbase.tree.TreeNode.AncestorIterator<T extends org.jhotdraw8.fxbase.tree.TreeNode<T>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CssRectangle2DStyleableMapAccessorstatic final CssSizeStyleableKeystatic final StringThe CSS type selector for this object is "Image".static final CssSizeStyleableKeystatic final CssSizeStyleableKeystatic final CssSizeStyleableKeyFields inherited from class org.jhotdraw8.fxbase.styleable.AbstractStyleablePropertyBean
keyMaps, propertiesFields inherited from interface org.jhotdraw8.draw.figure.CompositableFigure
BLEND_MODE, EFFECT, OPACITYFields inherited from interface org.jhotdraw8.draw.figure.Figure
declaredAndInheritedKeys, JHOTDRAW_CSS_PREFIX, PARENT_PROPERTYFields inherited from interface org.jhotdraw8.draw.figure.HideableFigure
VISIBLEFields inherited from interface org.jhotdraw8.draw.figure.ImageableFigure
IMAGE_URIFields inherited from interface org.jhotdraw8.draw.figure.LockableFigure
LOCKEDFields inherited from interface org.jhotdraw8.draw.figure.StyleableFigure
ID, PSEUDO_CLASS, STYLE, STYLE_CLASS, TYPE_SELECTOR_NODE_KEYFields inherited from interface org.jhotdraw8.draw.figure.TransformableFigure
CACHE, ROTATE, ROTATION_AXIS, ROTATION_PIVOT, SCALE, SCALE_X, SCALE_Y, SCALE_Z, TRANSFORMS, TRANSLATE, TRANSLATE_X, TRANSLATE_Y, TRANSLATE_ZFields inherited from interface org.jhotdraw8.draw.figure.TransformCachingFigure
CACHE -
Constructor Summary
ConstructorsConstructorDescriptionSvgImageFigure(double x, double y, double width, double height) SvgImageFigure(CssRectangle2D rect) -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.NodecreateNode(RenderContext drawingView) @Nullable ConnectorfindConnector(javafx.geometry.Point2D p, Figure prototype, double tolerance) javafx.geometry.BoundsvoidreshapeInLocal(javafx.scene.transform.Transform transform) voidreshapeInLocal(org.jhotdraw8.css.value.CssSize x, org.jhotdraw8.css.value.CssSize y, org.jhotdraw8.css.value.CssSize width, org.jhotdraw8.css.value.CssSize height) voidupdateNode(RenderContext ctx, javafx.scene.Node node) Methods inherited from class org.jhotdraw8.draw.figure.AbstractLeafFigure
getChildren, isAllowsChildren, isSuitableChild, isSuitableParentMethods inherited from class org.jhotdraw8.draw.figure.AbstractFigure
addedToDrawing, createKeyMap, doAddedToDrawing, doRemovedFromDrawing, getCachedLocalToParent, getCachedLocalToWorld, getCachedParentToLocal, getCachedParentToWorld, getCachedWorldToLocal, getCachedWorldToParent, getDrawing, getLayoutObservers, getPropertyChangeListeners, getReadOnlyLayoutObservers, getStyledNonNull, hasPropertyChangeListeners, onPropertyChanged, parentProperty, removeAllLayoutSubjects, removedFromDrawing, removeLayoutSubject, setCachedLocalToParent, setCachedLocalToWorld, setCachedParentToLocal, setCachedParentToWorld, setCachedWorldToLocal, setCachedWorldToParent, updateCssMethods inherited from class org.jhotdraw8.fxbase.styleable.AbstractStyleablePropertyBean
callObservers, containsMapAccessor, getProperties, getStyleableMap, getStyled, getStyled, remove, removeAll, resetStyledValues, setStyledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.draw.figure.CompositableFigure
applyCompositableFigurePropertiesMethods inherited from interface org.jhotdraw8.draw.figure.ConnectableFigure
findConnectorMethods inherited from interface org.jhotdraw8.draw.figure.Figure
addChild, addedToDrawing, createHandles, disconnect, firePropertyChangeEvent, firePropertyChangeEvent, getBoundsInParent, getBoundsInWorld, getCenterInLocal, getCenterInParent, getChildren, getDrawing, getLayer, getLayoutBounds, getLayoutBoundsInParent, getLayoutBoundsInWorld, getLayoutObservers, getLayoutSubjects, getParent, getPreferredAspectRatio, getPropertyChangeListeners, getReadOnlyLayoutObservers, getRoot, getStyleableParent, getSupportedKeys, getVisualBounds, getVisualBoundsInWorld, hasPropertyChangeListeners, isAllowsChildren, isDecomposable, isDeletWithLastLayoutSubject, isEditableKey, isGroupReshapeableWith, isLayoutable, isShowing, isSuitableChild, isSuitableParent, isSupportedKey, isVisible, layout, layoutChanged, layoutObserverChanged, layoutSubjectChanged, localToParent, localToWorld, localToWorld, parentProperty, propertyChanged, removeAllLayoutSubjects, removeChild, removedFromDrawing, removeFromParent, removeLayoutSubject, reshapeInLocal, reshapeInLocal, setParent, stylesheetChanged, transformChanged, translateInLocal, translateInParent, updateCss, worldToLocal, worldToLocal, worldToParent, worldToParentMethods inherited from interface org.jhotdraw8.draw.figure.HideableFigure
applyHideableFigurePropertiesMethods inherited from interface org.jhotdraw8.draw.figure.LockableFigure
isDeletable, isEditable, isSelectableMethods inherited from interface org.jhotdraw8.fxbase.beans.PropertyBean
get, getNonNull, getProperties, getProperty, put, remove, set, setNonNull, valueAtMethods inherited from interface org.jhotdraw8.draw.figure.StyleableFigure
applyStyleableFigureProperties, getId, getPseudoClassStates, getStyle, getStyleClasses, idPropertyMethods inherited from interface org.jhotdraw8.fxbase.styleable.StyleablePropertyBean
containsMapAccessor, getStyled, getStyled, getStyledNonNull, remove, removeAll, resetStyledValues, setStyledMethods inherited from interface org.jhotdraw8.draw.figure.TransformableFigure
applyTransformableFigureProperties, clearTransforms, flattenTransforms, getInverseTransform, getLocalToParent, getLocalToParent, getLocalToParentAsList, getParentToLocal, getParentToLocal, getTransform, hasCenterTransforms, reshapeInParent, setTransforms, transformInLocal, transformInParentMethods 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
-
Field Details
-
TYPE_SELECTOR
The CSS type selector for this object is "Image".- See Also:
-
X
-
Y
-
WIDTH
-
HEIGHT
-
BOUNDS
-
-
Constructor Details
-
SvgImageFigure
public SvgImageFigure() -
SvgImageFigure
public SvgImageFigure(double x, double y, double width, double height) -
SvgImageFigure
-
-
Method Details
-
getCssLayoutBounds
- Specified by:
getCssLayoutBoundsin interfaceFigure
-
reshapeInLocal
public void reshapeInLocal(javafx.scene.transform.Transform transform) - Specified by:
reshapeInLocalin interfaceFigure- Specified by:
reshapeInLocalin interfaceTransformableFigure
-
reshapeInLocal
public void reshapeInLocal(org.jhotdraw8.css.value.CssSize x, org.jhotdraw8.css.value.CssSize y, org.jhotdraw8.css.value.CssSize width, org.jhotdraw8.css.value.CssSize height) - Specified by:
reshapeInLocalin interfaceFigure
-
createNode
- Specified by:
createNodein interfaceFigure
-
updateNode
- Specified by:
updateNodein interfaceFigure
-
findConnector
public @Nullable Connector findConnector(javafx.geometry.Point2D p, Figure prototype, double tolerance) - Specified by:
findConnectorin interfaceConnectableFigure
-
getTypeSelector
- Specified by:
getTypeSelectorin interfaceorg.jhotdraw8.fxbase.styleable.StyleableBean
-
getBoundsInLocal
public javafx.geometry.Bounds getBoundsInLocal()- Specified by:
getBoundsInLocalin interfaceFigure
-