- All Superinterfaces:
DefaultableFigure,Figure,org.jhotdraw8.fxbase.beans.PropertyBean,org.jhotdraw8.fxbase.styleable.StyleableBean,org.jhotdraw8.fxbase.styleable.StyleablePropertyBean,org.jhotdraw8.fxbase.tree.TreeNode<Figure>
- All Known Implementing Classes:
AbstractSvgGradientFigure,SvgCircleFigure,SvgDefsFigure,SvgDrawing,SvgEllipseFigure,SvgGFigure,SvgLinearGradientFigure,SvgLineFigure,SvgPathFigure,SvgPolygonFigure,SvgPolylineFigure,SvgRadialGradientFigure,SvgRectFigure,SvgTextFigure
The following attributes can be defined on all SVG figures using the "defaulting"
mechanism.
-
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
org.jhotdraw8.fxbase.tree.TreeNode.AncestorIterator<T extends org.jhotdraw8.fxbase.tree.TreeNode<T>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DefaultableStyleableKey<CssColor> color.static final @NonNull DefaultableStyleableKey<SvgDisplay> display.static final SvgDefaultablePaintStyleableKey<Paintable> fill.static final DefaultableStyleableKey<Double> fill-opacity.static final @NonNull DefaultableStyleableKey<javafx.scene.shape.FillRule> fill-rule.static final DefaultableStyleableKey<ImmutableList<String>> font-family.static final DefaultableStyleableKey<SvgFontSize> font-size.static final DefaultableStyleableKey<javafx.scene.effect.BlendMode> mix-blend-mode.static final @NonNull DefaultableStyleableKey<Double> opacity.static final @NonNull DefaultableStyleableKey<SvgShapeRendering> shape-rendering.static final DefaultableStyleableKey<CssColor> stop-color.static final DefaultableStyleableKey<org.jhotdraw8.css.value.CssSize> stop-opacity.static final DefaultableStyleableKey<javafx.scene.shape.StrokeType> stroke-alignment.static final DefaultableStyleableKey<ImmutableList<Double>> stroke-dasharray.static final DefaultableStyleableKey<Double> stroke-dashoffset.static final SvgDefaultablePaintStyleableKey<Paintable> stroke.static final DefaultableStyleableKey<javafx.scene.shape.StrokeLineCap> stroke-linecap.static final DefaultableStyleableKey<javafx.scene.shape.StrokeLineJoin> stroke-linejoin.static final DefaultableStyleableKey<Double> stroke-miterlimit.static final DefaultableStyleableKey<Double> stroke-opacity.static final DefaultableStyleableKey<org.jhotdraw8.css.value.CssSize> stroke-width.static final @NonNull DefaultableStyleableKey<SvgTextAnchor> text-anchor.static final DefaultableStyleableKey<SvgVisibility> visibility.Fields inherited from interface org.jhotdraw8.draw.figure.Figure
declaredAndInheritedKeys, JHOTDRAW_CSS_PREFIX, PARENT_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptiondefault voidapplySvgDefaultableCompositingProperties(@NonNull RenderContext ctx, @NonNull javafx.scene.Node node) Updates a figure node with all effect properties defined in this interface.default voidapplySvgDefaultableFillProperties(@NonNull RenderContext ctx, @NonNull javafx.scene.shape.Shape shape) Applies fill properties to aShapenode.default voidapplySvgDefaultableStrokeProperties(@NonNull RenderContext ctx, @NonNull javafx.scene.shape.Shape shape) Applies stroke properties to aShapenode.default voidapplySvgShapeProperties(@NonNull RenderContext ctx, javafx.scene.shape.Shape fillShape, javafx.scene.shape.Shape strokeShape) getDefaultableStyled(@NonNull javafx.css.StyleOrigin origin, @NonNull SvgDefaultablePaintStyleableMapAccessor<T> key) Returns the styled value.Methods inherited from interface org.jhotdraw8.draw.figure.DefaultableFigure
getDefaultableStyled, getDefaultableStyled, getDefaultableStyledNonNullMethods 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, 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
-
COLOR_KEY
color. link -
STOP_COLOR_KEY
stop-color. -
STOP_OPACITY_KEY
stop-opacity. -
FILL_KEY
fill. link -
FILL_RULE_KEY
fill-rule. -
FONT_FAMILY_KEY
font-family. -
FONT_SIZE_KEY
font-size. -
STROKE_KEY
stroke. link -
STROKE_ALIGNMENT_KEY
stroke-alignment. link -
STROKE_DASHARRAY_KEY
stroke-dasharray. link -
STROKE_DASHOFFSET_KEY
stroke-dashoffset. link -
FILL_OPACITY_KEY
fill-opacity. link -
STROKE_OPACITY_KEY
stroke-opacity. link -
TEXT_ANCHOR_KEY
text-anchor. -
SHAPE_RENDERING_KEY
shape-rendering. -
STROKE_MITERLIMIT_KEY
stroke-miterlimit. link -
STROKE_LINECAP_KEY
stroke-linecap. link -
STROKE_LINEJOIN_KEY
stroke-linejoin. link -
STROKE_WIDTH_KEY
stroke-width. link -
VISIBILITY_KEY
visibility. link -
MIX_BLEND_MODE_KEY
mix-blend-mode. link -
DISPLAY_KEY
-
OPACITY_KEY
opacity. link
-
-
Method Details
-
applySvgDefaultableCompositingProperties
default void applySvgDefaultableCompositingProperties(@NonNull RenderContext ctx, @NonNull javafx.scene.Node node) Updates a figure node with all effect properties defined in this interface.Applies the following properties:
OPACITY_KEY.This method is intended to be used by
Figure.updateNode(org.jhotdraw8.draw.render.RenderContext, javafx.scene.Node).- Parameters:
ctx- the render contextnode- a node which was created with methodFigure.createNode(org.jhotdraw8.draw.render.RenderContext).
-
applySvgDefaultableFillProperties
default void applySvgDefaultableFillProperties(@NonNull RenderContext ctx, @NonNull javafx.scene.shape.Shape shape) Applies fill properties to aShapenode.- Parameters:
ctx- the render contextshape- a shape node
-
applySvgDefaultableStrokeProperties
default void applySvgDefaultableStrokeProperties(@NonNull RenderContext ctx, @NonNull javafx.scene.shape.Shape shape) Applies stroke properties to aShapenode.- Parameters:
ctx- the render contextshape- a shape node
-
applySvgShapeProperties
default void applySvgShapeProperties(@NonNull RenderContext ctx, javafx.scene.shape.Shape fillShape, javafx.scene.shape.Shape strokeShape) -
getDefaultableStyled
default <T extends Paintable> @Nullable Paintable getDefaultableStyled(@NonNull SvgDefaultablePaintStyleableMapAccessor<T> key) Returns the styled value.- Type Parameters:
T- The value type- Parameters:
key- The property key- Returns:
- The styled value.
-
getDefaultableStyled
-