- All Superinterfaces:
Figure,PropertyBean,StyleableBean,StyleablePropertyBean,TreeNode<Figure>
TextStrokeableFigure allows to change the stroke of the
text.- 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
FieldsModifier and TypeFieldDescriptionstatic final NullablePaintableStyleableKeyDefines the paint used for filling the outline of the figure.static final NonNullListStyleableKey<CssSize> Defines the dash array used.static final CssSizeStyleableKeyDefines the distance in user coordinates for the dashing pattern.static final NonNullEnumStyleableKey<javafx.scene.shape.StrokeLineCap> Defines the end cap style.static final NonNullEnumStyleableKey<javafx.scene.shape.StrokeLineJoin> Defines the style applied where path segments meet.static final CssSizeStyleableKeyDefines the limit for theStrokeLineJoin.MITERstyle.static final StrokeStyleableMapAccessorCombined map accessor for all stroke style properties.static final NonNullEnumStyleableKey<javafx.scene.shape.StrokeType> Defines the stroke type used for drawing outline of the figure.static final CssSizeStyleableKeyDefines the width of the outline of the figure.Fields inherited from interface org.jhotdraw8.draw.figure.Figure
declaredAndInheritedKeys, JHOTDRAW_CSS_PREFIX, PARENT_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptiondefault voidapplyTextStrokeableFigureProperties(@Nullable RenderContext ctx, javafx.scene.shape.Shape shape) Updates a shape node.default voidapplyTextStrokeDashProperties(javafx.scene.shape.Shape shape) 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
-
Field Details
-
TEXT_STROKE_DASH_OFFSET
Defines the distance in user coordinates for the dashing pattern. Default value:0.References:
- SVG Stroke Properties
- w3.org
-
TEXT_STROKE_LINE_CAP
-
TEXT_STROKE_LINE_JOIN
Defines the style applied where path segments meet. Default value:MITER.References:
- SVG Stroke Properties
- w3.org
-
TEXT_STROKE_MITER_LIMIT
Defines the limit for theStrokeLineJoin.MITERstyle. Default value:4.0.References:
- SVG Stroke Properties
- w3.org
-
TEXT_STROKE
Defines the paint used for filling the outline of the figure. Default value:null.References:
- SVG Stroke Properties
- w3.org
-
TEXT_STROKE_TYPE
Defines the stroke type used for drawing outline of the figure.Default value:
StrokeType.OUTSIDE. -
TEXT_STROKE_WIDTH
Defines the width of the outline of the figure.Default value:
1.0.References:
- SVG Stroke Properties
- w3.org
-
TEXT_STROKE_DASH_ARRAY
-
TEXT_STROKE_STYLE
Combined map accessor for all stroke style properties.
-
-
Method Details
-
applyTextStrokeableFigureProperties
default void applyTextStrokeableFigureProperties(@Nullable RenderContext ctx, javafx.scene.shape.Shape shape) Updates a shape node.- Parameters:
ctx- the render contextshape- a shape node
-
applyTextStrokeDashProperties
default void applyTextStrokeDashProperties(javafx.scene.shape.Shape shape)
-