- All Superinterfaces:
Figure,PropertyBean,StyleableBean,StyleablePropertyBean,TreeNode<Figure>
- All Known Implementing Classes:
ArcFigure,BezierPathFigure,CombinedPathFigure,EllipseFigure,GroupFigure,ImageFigure,LabelFigure,LayerFigure,LineConnectionFigure,LineConnectionWithMarkersFigure,LineFigure,PageLabelFigure,PolygonFigure,PolylineFigure,RectangleFigure,RegionFigure,SimpleLabelConnectionFigure,TextAreaFigure,TextFigure
Provides properties for compositing a figure.
Usage:
class MyFigureClass implements CompositableFigure {
public void updateNode(RenderContext ctx, Node n) {
applyCompositableFigureProperties(ctx, n);
}
}
- 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 @NonNull NonNullEnumStyleableKey<javafx.scene.effect.BlendMode> Specifies a blend mode applied to the figure.static final @NonNull EffectStyleableKeySpecifies an effect applied to the figure.static final @NonNull DoubleStyleableKeySpecifies the opacity of the figure.Fields inherited from interface org.jhotdraw8.draw.figure.Figure
declaredAndInheritedKeys, JHOTDRAW_CSS_PREFIX, PARENT_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptiondefault voidapplyCompositableFigureProperties(RenderContext ctx, @NonNull javafx.scene.Node node) Updates a figure node with all effect properties defined in this interface.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
-
BLEND_MODE
Specifies a blend mode applied to the figure.Default value:
SRC_OVER. -
EFFECT
Specifies an effect applied to the figure. Thenullvalue means that no effect is applied.Default value:
null. -
OPACITY
Specifies the opacity of the figure. A figure with0opacity is completely translucent. A figure with1opacity is completely opaque.Values smaller than
0are treated as0. Values larger than1are treated as1.Default value:
1.
-
-
Method Details
-
applyCompositableFigureProperties
Updates a figure node with all effect properties defined in this interface.Applies the following properties:
BLEND_MODE,EFFECT,OPACITY.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).
-