- All Superinterfaces:
Figure,PropertyBean,StyleableBean,StyleablePropertyBean,TreeNode<Figure>
- All Known Implementing Classes:
AbstractLabelConnectionFigure,AbstractLabelFigure,LabelFigure,PageLabelFigure,SimpleLabelConnectionFigure,TextAreaFigure,TextFigure
A figure which supports font attributes.
- 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 @Nullable CssSizeStyleableKeyThe line spacing.static final NonNullEnumStyleableKey<javafx.scene.text.TextAlignment> The text alignment.static final NonNullEnumStyleableKey<javafx.geometry.HPos> The horizontal position of the text.static final NonNullEnumStyleableKey<javafx.geometry.VPos> The vertical position of the text.static final DoubleStyleableKeyText wrapping width.Fields inherited from interface org.jhotdraw8.draw.figure.Figure
declaredAndInheritedKeys, JHOTDRAW_CSS_PREFIX, PARENT_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptiondefault voidapplyTextLayoutableFigureProperties(@Nullable RenderContext ctx, javafx.scene.control.Labeled text) Updates a Labeled node with fontable properties.default voidapplyTextLayoutableFigureProperties(@Nullable RenderContext ctx, javafx.scene.text.Text text) Updates a text node with fontable properties.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
-
LINE_SPACING
The line spacing. Default value:0.0 -
TEXT_ALIGNMENT
The text alignment. Default value:left -
TEXT_VPOS
The vertical position of the text. Default value:baseline -
TEXT_HPOS
The horizontal position of the text. Default value:left -
WRAPPING_WIDTH
Text wrapping width. Default value:0.0(no wrapping).
-
-
Method Details
-
applyTextLayoutableFigureProperties
default void applyTextLayoutableFigureProperties(@Nullable RenderContext ctx, javafx.scene.text.Text text) Updates a text node with fontable properties.- Parameters:
ctx- RenderContext, can be nulltext- a text node
-
applyTextLayoutableFigureProperties
default void applyTextLayoutableFigureProperties(@Nullable RenderContext ctx, javafx.scene.control.Labeled text) Updates a Labeled node with fontable properties.- Parameters:
ctx- contexttext- a text node
-