- 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 FontStyleableMapAccessorstatic final StringOrIdentStyleableKeyDefines the font used.static final CssSizeStyleableKeystatic final NonNullEnumStyleableKey<javafx.scene.text.FontPosture> static final NonNullEnumStyleableKey<javafx.scene.text.FontWeight> static final NonNullBooleanStyleableKeyWhether to strike through the text.static final NonNullBooleanStyleableKeyWhether to underline the text.Fields inherited from interface org.jhotdraw8.draw.figure.Figure
declaredAndInheritedKeys, JHOTDRAW_CSS_PREFIX, PARENT_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptiondefault voidapplyTextFontableFigureProperties(@Nullable RenderContext ctx, @NonNull javafx.scene.control.Labeled text) Updates a Laeled node with fontable properties.default voidapplyTextFontableFigureProperties(@Nullable RenderContext ctx, @NonNull 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, 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
-
FONT_FAMILY
Defines the font used. Default value:new Font("Arial",12) -
FONT_SIZE
-
FONT_STYLE
-
FONT_WEIGHT
-
FONT
-
STRIKETHROUGH
Whether to strike through the text. Default value:false -
UNDERLINE
Whether to underline the text. Default value:false
-
-
Method Details
-
applyTextFontableFigureProperties
default void applyTextFontableFigureProperties(@Nullable RenderContext ctx, @NonNull javafx.scene.text.Text text) Updates a text node with fontable properties.- Parameters:
ctx- RenderContext, can be nulltext- a text node
-
applyTextFontableFigureProperties
default void applyTextFontableFigureProperties(@Nullable RenderContext ctx, @NonNull javafx.scene.control.Labeled text) Updates a Laeled node with fontable properties.- Parameters:
ctx- contexttext- a text node
-