- All Superinterfaces:
Figure,PropertyBean,StyleableBean,StyleablePropertyBean,TreeNode<Figure>
- All Known Implementing Classes:
AbstractLabelConnectionFigure,AbstractLabelFigure,ArcFigure,BezierPathFigure,CombinedPathFigure,EllipseFigure,LabelFigure,LineConnectionFigure,LineConnectionWithMarkersFigure,LineFigure,PageFigure,PageLabelFigure,PolygonFigure,PolylineFigure,RectangleFigure,RegionFigure,SimpleLabelConnectionFigure,TextAreaFigure,TextFigure
Interface for figures which render a
javafx.scene.shape.Shape and can
be stroked.- 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 @Nullable 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 voidapplyStrokableFigureProperties(@Nullable RenderContext ctx, javafx.scene.shape.Shape shape) Updates a shape node.default voidapplyStrokeCapAndJoinProperties(RenderContext ctx, javafx.scene.shape.Shape shape) default voidapplyStrokeColorProperties(@Nullable RenderContext ctx, javafx.scene.shape.Shape shape) default voidapplyStrokeDashProperties(RenderContext ctx, javafx.scene.shape.Shape shape) default voidapplyStrokeTypeProperties(RenderContext ctx, javafx.scene.shape.Shape shape) default voidapplyStrokeWidthProperties(@Nullable RenderContext ctx, javafx.scene.shape.Shape shape) default javafx.geometry.BoundsThe bounds of this figure in local coordinates, including space required for a non-zero stroke.default BasicStrokegetStyledStroke(@Nullable RenderContext ctx) Methods inherited from interface org.jhotdraw8.draw.figure.Figure
addChild, addedToDrawing, createHandles, createNode, disconnect, firePropertyChangeEvent, firePropertyChangeEvent, 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
-
STROKE_DASH_OFFSET
Defines the distance in user coordinates for the dashing pattern. Default value:0.References:
- SVG Stroke Properties
- w3.org
-
STROKE_LINE_CAP
-
STROKE_LINE_JOIN
Defines the style applied where path segments meet. Default value:MITER.References:
- SVG Stroke Properties
- w3.org
-
STROKE_MITER_LIMIT
Defines the limit for theStrokeLineJoin.MITERstyle.Default value:
4.0.References:
- SVG Stroke Properties
- w3.org
-
STROKE
Defines the paint used for filling the outline of the figure. Default value:Color.BLACK.References:
- SVG Stroke Properties
- w3.org
-
STROKE_TYPE
Defines the stroke type used for drawing outline of the figure.Default value:
StrokeType.CENTERED. -
STROKE_WIDTH
Defines the width of the outline of the figure.Default value:
1.0.References:
- SVG Stroke Properties
- w3.org
-
STROKE_DASH_ARRAY
-
STROKE_STYLE
Combined map accessor for all stroke style properties.Note: this is a non-standard composite map accessor and thus transient!
-
-
Method Details
-
applyStrokeCapAndJoinProperties
-
applyStrokeDashProperties
-
applyStrokeTypeProperties
-
applyStrokableFigureProperties
default void applyStrokableFigureProperties(@Nullable RenderContext ctx, javafx.scene.shape.Shape shape) Updates a shape node.- Parameters:
ctx- the render contextshape- a shape node
-
applyStrokeColorProperties
default void applyStrokeColorProperties(@Nullable RenderContext ctx, javafx.scene.shape.Shape shape) -
applyStrokeWidthProperties
default void applyStrokeWidthProperties(@Nullable RenderContext ctx, javafx.scene.shape.Shape shape) -
getStyledStroke
-
getBoundsInLocal
default javafx.geometry.Bounds getBoundsInLocal()Description copied from interface:FigureThe bounds of this figure in local coordinates, including space required for a non-zero stroke.- Specified by:
getBoundsInLocalin interfaceFigure- Returns:
- the local bounds
-