Class FxLabelDecorator
java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.layout.Pane
javafx.scene.layout.StackPane
org.refcodes.graphical.ext.javafx.FxLabelDecorator
- All Implemented Interfaces:
javafx.css.Styleable,javafx.event.EventTarget,org.refcodes.mixin.TextAccessor,org.refcodes.mixin.TextAccessor.TextBuilder<FxLabelDecorator>,org.refcodes.mixin.TextAccessor.TextMutator,org.refcodes.mixin.TextAccessor.TextProperty,org.refcodes.textual.FontNameAccessor,org.refcodes.textual.FontNameAccessor.FontNameBuilder<FxLabelDecorator>,org.refcodes.textual.FontNameAccessor.FontNameMutator,org.refcodes.textual.FontNameAccessor.FontNameProperty,org.refcodes.textual.HorizAlignTextModeAccessor,org.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeBuilder<FxLabelDecorator>,org.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeMutator,org.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeProperty,org.refcodes.textual.VertAlignTextModeAccessor,org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeBuilder<FxLabelDecorator>,org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeMutator,org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeProperty
public class FxLabelDecorator
extends javafx.scene.layout.StackPane
implements org.refcodes.mixin.TextAccessor.TextProperty, org.refcodes.mixin.TextAccessor.TextBuilder<FxLabelDecorator>, org.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeProperty, org.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeBuilder<FxLabelDecorator>, org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeProperty, org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeBuilder<FxLabelDecorator>, org.refcodes.textual.FontNameAccessor.FontNameProperty, org.refcodes.textual.FontNameAccessor.FontNameBuilder<FxLabelDecorator>
Implementation of the
FxLabelDecorator interface. Possible extension
(idea): Provide means to set cell width and height manually and make them
images then scale accordingly!-
Property Summary
Properties inherited from class javafx.scene.layout.StackPane
alignmentProperties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthProperties inherited from class javafx.scene.Parent
needsLayoutProperties inherited from class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, focusVisible, focusWithin, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible -
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.textual.FontNameAccessor
org.refcodes.textual.FontNameAccessor.FontNameBuilder<B extends org.refcodes.textual.FontNameAccessor.FontNameBuilder<B>>, org.refcodes.textual.FontNameAccessor.FontNameMutator, org.refcodes.textual.FontNameAccessor.FontNamePropertyNested classes/interfaces inherited from interface org.refcodes.textual.HorizAlignTextModeAccessor
org.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeBuilder<B extends org.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeBuilder<B>>, org.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeMutator, org.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModePropertyNested classes/interfaces inherited from interface org.refcodes.mixin.TextAccessor
org.refcodes.mixin.TextAccessor.TextBuilder<B extends org.refcodes.mixin.TextAccessor.TextBuilder<B>>, org.refcodes.mixin.TextAccessor.TextMutator, org.refcodes.mixin.TextAccessor.TextPropertyNested classes/interfaces inherited from interface org.refcodes.textual.VertAlignTextModeAccessor
org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeBuilder<B extends org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeBuilder<B>>, org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeMutator, org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeProperty -
Field Summary
Fields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZEFields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionFxLabelDecorator(Object aText, String aFontName, double aTextSizeFactor, javafx.scene.image.Image aImage) Constructs aFxLabelDecoratorwith the required minimum attributes.FxLabelDecorator(String aText, String aFontName, double aTextSizeFactor, javafx.scene.image.Image aImage) Constructs aFxLabelDecoratorwith the required minimum attributes.FxLabelDecorator(String aText, String aFontName, double aTextSizeFactor, javafx.scene.Node aNode) Constructs aFxLabelDecoratorwith the required minimum attributes. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the bottom margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.doubleReturns the bottom padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.javafx.scene.NodeReturns the node of the cell.org.refcodes.textual.HorizAlignTextModejavafx.scene.image.ImagegetImage()Returns the image of the cell.doubleReturns the left margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.doubleReturns the left padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.doubleReturns the right margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.doubleReturns the right padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.getText()javafx.scene.paint.PaintReturns the background of the text.doubleReturns the arc of the text border relative to the arc of the cell (as ofgetTextLayoutMode()).javafx.scene.paint.PaintReturns the color of the text border.doubleReturns the size of the text border relative to the size of the cell (as ofgetTextLayoutMode()).javafx.scene.paint.PaintReturns the color of the text.org.refcodes.graphical.LayoutModeReturns theLayoutModefor the text metrics.doubleReturns the size of the text relative to the size of the cell (as ofgetTextLayoutMode()).doubleReturns the top margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.doubleReturns the top padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.org.refcodes.textual.VertAlignTextModeprotected voidredraw()Recalculates the metrics of the elements of this node.voidsetBottomTextMarginFactor(double aBottomTextMarginFactor) Sets the bottom margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.voidsetBottomTextPaddingFactor(double aBottomTextPaddingFactor) Sets the bottom padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.voidsetContent(javafx.scene.Node aContent) Sets the node of the cell.voidsetFontName(String aFontName) voidsetHorizAlignTextMode(org.refcodes.textual.HorizAlignTextMode aHorizAlignTextMode) voidsetHorizTextMarginFactor(double aTextMarginFactor) Sets the horizontal margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.voidsetHorizTextPaddingFactor(double aTextPaddingFactor) Sets the horizontal padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.voidsetImage(javafx.scene.image.Image aImage) Sets the image of the cell.voidsetLeftTextMarginFactor(double aLeftTextMarginFactor) Sets the left margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.voidsetLeftTextPaddingFactor(double aLeftTextPaddingFactor) Sets the left padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.voidsetRightTextMarginFactor(double aRightTextMarginFactor) Sets the right margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.voidsetRightTextPaddingFactor(double aRightTextPaddingFactor) Sets the right padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.voidvoidsetTextBackground(javafx.scene.paint.Paint aTextBackground) Sets the background of the text.voidsetTextBorderArcFactor(double aTextBorderArcFactor) Sets the arc of the text border relative to the arc of the cell (as ofgetTextLayoutMode()).voidsetTextBorderColor(javafx.scene.paint.Paint aTextBorderColor) Sets the color of the text border.voidsetTextBorderSizeFactor(double aTextBorderSizeFactor) Sets the size of the text border relative to the size of the cell (as ofgetTextLayoutMode()).voidsetTextColor(javafx.scene.paint.Paint aColor) Sets the color of the text.voidsetTextLayoutMode(org.refcodes.graphical.LayoutMode aLayoutMode) Sets theLayoutModefor the text metrics.voidsetTextMarginFactor(double aTextMarginFactor) Sets the margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.voidsetTextPaddingFactor(double aTextPaddingFactor) Sets the padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.voidsetTextSizeFactor(double aTextSizeFactor) Sets the size of the text relative to the size of the cell (as ofgetTextLayoutMode()).voidsetTopTextMarginFactor(double aTopTextMarginFactor) Sets the top margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.voidsetTopTextPaddingFactor(double aTopTextPaddingFactor) Sets the top padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.voidsetVertAlignTextMode(org.refcodes.textual.VertAlignTextMode aVertAlignTextMode) voidsetVertTextMarginFactor(double aTextMarginFactor) Sets the vertical margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.voidsetVertTextPaddingFactor(double aTextPaddingFactor) Sets the vertical padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.withBottomTextMarginFactor(double aTextMarginFactor) Sets the bottom margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.withBottomTextPaddingFactor(double aTextPaddingFactor) Sets the bottom padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.withContent(javafx.scene.Node aContent) Sets the node of the cell.withFontName(String aFontName) withHorizAlignTextMode(org.refcodes.textual.HorizAlignTextMode aHorizAlignTextMode) withHorizTextMarginFactor(double aTextMarginFactor) Sets the horizontal margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.withHorizTextPaddingFactor(double aTextPaddingFactor) Sets the horizontal padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.withImage(javafx.scene.image.Image aImage) Sets the image of the cell.withLeftTextMarginFactor(double aTextMarginFactor) Sets the left margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.withLeftTextPaddingFactor(double aTextPaddingFactor) Sets the left padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.withRightTextMarginFactor(double aTextMarginFactor) Sets the right margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.withRightTextPaddingFactor(double aTextPaddingFactor) Sets the right padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.withTextBackground(javafx.scene.paint.Paint aTextBackground) Sets the background of the text.withTextBorderArcFactor(double aTextBorderArcFactor) Sets the arc of the text border relative to the arc of the cell (as ofgetTextLayoutMode()).withTextBorderColor(javafx.scene.paint.Paint aTextBorderColor) Sets the color of the text border.withTextBorderSizeFactor(double aTextBorderSizeFactor) Sets the size of the text border relative to the size of the cell (as ofgetTextLayoutMode()).withTextColor(javafx.scene.paint.Paint aTextColor) Sets the color of the text.withTextLayoutMode(org.refcodes.graphical.LayoutMode aLayoutMode) Sets theLayoutModefor the text metrics.withTextMarginFactor(double aTextMarginFactor) Sets the margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.withTextPaddingFactor(double aTextPaddingFactor) Sets the padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.withTextSizeFactor(double aTextSizeFactor) Sets the size of the text relative to the size of the cell (as ofgetTextLayoutMode()).withTopTextMarginFactor(double aTextMarginFactor) Sets the top margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.withTopTextPaddingFactor(double aTextPaddingFactor) Sets the top padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.withVertAlignTextMode(org.refcodes.textual.VertAlignTextMode aVertAlignTextMode) withVertTextMarginFactor(double aTextMarginFactor) Sets the vertical margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.withVertTextPaddingFactor(double aTextPaddingFactor) Sets the vertical padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.Methods inherited from class javafx.scene.layout.StackPane
alignmentProperty, clearConstraints, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getAlignment, getAlignment, getClassCssMetaData, getContentBias, getCssMetaData, getMargin, layoutChildren, requestLayout, setAlignment, setAlignment, setMarginMethods inherited from class javafx.scene.layout.Pane
getChildrenMethods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthPropertyMethods inherited from class javafx.scene.Parent
getBaselineOffset, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestParentLayout, setNeedsLayout, updateBoundsMethods inherited from class javafx.scene.Node
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInitialFocusTraversable, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isFocusVisible, isFocusWithin, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.refcodes.textual.FontNameAccessor.FontNameProperty
letFontNameMethods inherited from interface org.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeProperty
letHorizAlignTextModeMethods inherited from interface javafx.css.Styleable
getStyleableNodeMethods inherited from interface org.refcodes.mixin.TextAccessor.TextProperty
letTextMethods inherited from interface org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeProperty
letVertAlignTextMode
-
Constructor Details
-
FxLabelDecorator
public FxLabelDecorator(Object aText, String aFontName, double aTextSizeFactor, javafx.scene.image.Image aImage) Constructs aFxLabelDecoratorwith the required minimum attributes.- Parameters:
aText- The with which to initialize the cell.aFontName- The font name to be used when rendering.aTextSizeFactor- The factor to be used relative to the width of the cell.aImage- The background image to be used.
-
FxLabelDecorator
public FxLabelDecorator(String aText, String aFontName, double aTextSizeFactor, javafx.scene.image.Image aImage) Constructs aFxLabelDecoratorwith the required minimum attributes.- Parameters:
aText- The with which to initialize the cell.aFontName- The font name to be used when rendering.aTextSizeFactor- The factor to be used relative to the width of the cell.aImage- The background image to be used.
-
FxLabelDecorator
public FxLabelDecorator(String aText, String aFontName, double aTextSizeFactor, javafx.scene.Node aNode) Constructs aFxLabelDecoratorwith the required minimum attributes.- Parameters:
aText- The with which to initialize the cell.aFontName- The font name to be used when rendering.aTextSizeFactor- The factor to be used relative to the width of the cell.aNode- The background image to be used.
-
-
Method Details
-
getBottomTextMarginFactor
public double getBottomTextMarginFactor()Returns the bottom margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Returns:
- The bottom margin factor relative to the size of the cell of the text from the text box.
-
getBottomTextPaddingFactor
public double getBottomTextPaddingFactor()Returns the bottom padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Returns:
- The bottom padding factor relative to the size of the cell of the text from the text box.
-
getContent
public javafx.scene.Node getContent()Returns the node of the cell.- Returns:
- The node of the cell.
-
getFontName
- Specified by:
getFontNamein interfaceorg.refcodes.textual.FontNameAccessor
-
getHorizAlignTextMode
public org.refcodes.textual.HorizAlignTextMode getHorizAlignTextMode()- Specified by:
getHorizAlignTextModein interfaceorg.refcodes.textual.HorizAlignTextModeAccessor
-
getImage
public javafx.scene.image.Image getImage()Returns the image of the cell.- Returns:
- The image of the cell.
-
getLeftTextMarginFactor
public double getLeftTextMarginFactor()Returns the left margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Returns:
- The left margin factor relative to the size of the cell of the text from the text box.
-
getLeftTextPaddingFactor
public double getLeftTextPaddingFactor()Returns the left padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Returns:
- The left padding factor relative to the size of the cell of the text from the text box.
-
getRightTextMarginFactor
public double getRightTextMarginFactor()Returns the right margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Returns:
- The right margin factor relative to the size of the cell of the text from the text box.
-
getRightTextPaddingFactor
public double getRightTextPaddingFactor()Returns the right padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Returns:
- The right padding factor relative to the size of the cell of the text from the text box.
-
getText
- Specified by:
getTextin interfaceorg.refcodes.mixin.TextAccessor
-
getTextBackground
public javafx.scene.paint.Paint getTextBackground()Returns the background of the text.- Returns:
- The background of the text inside the cell.
-
getTextBorderArcFactor
public double getTextBorderArcFactor()Returns the arc of the text border relative to the arc of the cell (as ofgetTextLayoutMode()). Values form 0 to 1 represents width between 0% and 100%.- Returns:
- The factor being used relative to the arc of the cell.
-
getTextBorderColor
public javafx.scene.paint.Paint getTextBorderColor()Returns the color of the text border.- Returns:
- The color of the text border inside the cell.
-
getTextBorderSizeFactor
public double getTextBorderSizeFactor()Returns the size of the text border relative to the size of the cell (as ofgetTextLayoutMode()). Values form 0 to 1 represents width between 0% and 100%.- Returns:
- The factor being used relative to the size of the cell.
-
getTextColor
public javafx.scene.paint.Paint getTextColor()Returns the color of the text.- Returns:
- The color of the text inside the cell.
-
getTextLayoutMode
public org.refcodes.graphical.LayoutMode getTextLayoutMode()Returns theLayoutModefor the text metrics.- Returns:
- The
LayoutModeto be applied to text metrics. settings.
-
getTextSizeFactor
public double getTextSizeFactor()Returns the size of the text relative to the size of the cell (as ofgetTextLayoutMode()). Values form 0 to 1 represents width between 0% and 100%.- Returns:
- The factor being used relative to the size of the cell.
-
getTopTextMarginFactor
public double getTopTextMarginFactor()Returns the top margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Returns:
- The top margin factor relative to the size of the cell of the text from the text box.
-
getTopTextPaddingFactor
public double getTopTextPaddingFactor()Returns the top padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Returns:
- The top padding factor relative to the size of the cell of the text from the text box.
-
getVertAlignTextMode
public org.refcodes.textual.VertAlignTextMode getVertAlignTextMode()- Specified by:
getVertAlignTextModein interfaceorg.refcodes.textual.VertAlignTextModeAccessor
-
setBottomTextMarginFactor
public void setBottomTextMarginFactor(double aBottomTextMarginFactor) Sets the bottom margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Parameters:
aBottomTextMarginFactor- The bottom margin factor of the text from the text box.
-
setBottomTextPaddingFactor
public void setBottomTextPaddingFactor(double aBottomTextPaddingFactor) Sets the bottom padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Parameters:
aBottomTextPaddingFactor- The bottom padding factor of the text from the text box.
-
setContent
public void setContent(javafx.scene.Node aContent) Sets the node of the cell.- Parameters:
aContent- The node of the cell.
-
setFontName
- Specified by:
setFontNamein interfaceorg.refcodes.textual.FontNameAccessor.FontNameMutator
-
setHorizAlignTextMode
public void setHorizAlignTextMode(org.refcodes.textual.HorizAlignTextMode aHorizAlignTextMode) - Specified by:
setHorizAlignTextModein interfaceorg.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeMutator
-
setHorizTextMarginFactor
public void setHorizTextMarginFactor(double aTextMarginFactor) Sets the horizontal margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Parameters:
aTextMarginFactor- The horizontal margin factor of the text from the text box.
-
setHorizTextPaddingFactor
public void setHorizTextPaddingFactor(double aTextPaddingFactor) Sets the horizontal padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Parameters:
aTextPaddingFactor- The horizontal padding factor of the text from the text box.
-
setImage
public void setImage(javafx.scene.image.Image aImage) Sets the image of the cell.- Parameters:
aImage- The image of the cell.
-
setLeftTextMarginFactor
public void setLeftTextMarginFactor(double aLeftTextMarginFactor) Sets the left margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Parameters:
aLeftTextMarginFactor- The left margin factor of the text from the text box.
-
setLeftTextPaddingFactor
public void setLeftTextPaddingFactor(double aLeftTextPaddingFactor) Sets the left padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Parameters:
aLeftTextPaddingFactor- The left padding factor of the text from the text box.
-
setRightTextMarginFactor
public void setRightTextMarginFactor(double aRightTextMarginFactor) Sets the right margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Parameters:
aRightTextMarginFactor- The right margin factor of the text from the text box.
-
setRightTextPaddingFactor
public void setRightTextPaddingFactor(double aRightTextPaddingFactor) Sets the right padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Parameters:
aRightTextPaddingFactor- The right padding factor of the text from the text box.
-
setText
- Specified by:
setTextin interfaceorg.refcodes.mixin.TextAccessor.TextMutator
-
setTextBackground
public void setTextBackground(javafx.scene.paint.Paint aTextBackground) Sets the background of the text.- Parameters:
aTextBackground- The background of the text inside the cell.
-
setTextBorderArcFactor
public void setTextBorderArcFactor(double aTextBorderArcFactor) Sets the arc of the text border relative to the arc of the cell (as ofgetTextLayoutMode()). Values form 0 to 1 represents width between 0% and 100%.- Parameters:
aTextBorderArcFactor- The factor to be used relative to the arc of the cell.
-
setTextBorderColor
public void setTextBorderColor(javafx.scene.paint.Paint aTextBorderColor) Sets the color of the text border.- Parameters:
aTextBorderColor- The color of the text border inside the cell.
-
setTextBorderSizeFactor
public void setTextBorderSizeFactor(double aTextBorderSizeFactor) Sets the size of the text border relative to the size of the cell (as ofgetTextLayoutMode()). Values form 0 to 1 represents width between 0% and 100%.- Parameters:
aTextBorderSizeFactor- The factor to be used relative to the size of the cell.
-
setTextColor
public void setTextColor(javafx.scene.paint.Paint aColor) Sets the color of the text.- Parameters:
aColor- the new text color
-
setTextLayoutMode
public void setTextLayoutMode(org.refcodes.graphical.LayoutMode aLayoutMode) Sets theLayoutModefor the text metrics.- Parameters:
aLayoutMode- TheLayoutModeto be applied to text metrics. settings.
-
setTextMarginFactor
public void setTextMarginFactor(double aTextMarginFactor) Sets the margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Parameters:
aTextMarginFactor- The margin factor of the text from the text box.
-
setTextPaddingFactor
public void setTextPaddingFactor(double aTextPaddingFactor) Sets the padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Parameters:
aTextPaddingFactor- The padding factor of the text from the text box.
-
setTextSizeFactor
public void setTextSizeFactor(double aTextSizeFactor) Sets the size of the text relative to the size of the cell (as ofgetTextLayoutMode()). Values form 0 to 1 represents width between 0% and 100%.- Parameters:
aTextSizeFactor- The factor to be used relative to the size of the cell.
-
setTopTextMarginFactor
public void setTopTextMarginFactor(double aTopTextMarginFactor) Sets the top margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Parameters:
aTopTextMarginFactor- The top margin factor of the text from the text box.
-
setTopTextPaddingFactor
public void setTopTextPaddingFactor(double aTopTextPaddingFactor) Sets the top padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Parameters:
aTopTextPaddingFactor- The top padding factor of the text from the text box.
-
setVertAlignTextMode
public void setVertAlignTextMode(org.refcodes.textual.VertAlignTextMode aVertAlignTextMode) - Specified by:
setVertAlignTextModein interfaceorg.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeMutator
-
setVertTextMarginFactor
public void setVertTextMarginFactor(double aTextMarginFactor) Sets the vertical margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Parameters:
aTextMarginFactor- The vertical margin factor of the text from the text box.
-
setVertTextPaddingFactor
public void setVertTextPaddingFactor(double aTextPaddingFactor) Sets the vertical padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Parameters:
aTextPaddingFactor- The vertical padding factor of the text from the text box.
-
withBottomTextMarginFactor
Sets the bottom margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Parameters:
aTextMarginFactor- The bottom margin factor relative to the size of the cell of the text box from the cell- Returns:
- The builder for applying multiple build operations.
-
withBottomTextPaddingFactor
Sets the bottom padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Parameters:
aTextPaddingFactor- The bottom padding factor relative to the size of the cell of the text from the text box- Returns:
- The builder for applying multiple build operations.
-
withContent
Sets the node of the cell.- Parameters:
aContent- The color to be used.- Returns:
- The builder for applying multiple build operations.
-
withFontName
- Specified by:
withFontNamein interfaceorg.refcodes.textual.FontNameAccessor.FontNameBuilder<FxLabelDecorator>
-
withHorizAlignTextMode
public FxLabelDecorator withHorizAlignTextMode(org.refcodes.textual.HorizAlignTextMode aHorizAlignTextMode) - Specified by:
withHorizAlignTextModein interfaceorg.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeBuilder<FxLabelDecorator>
-
withHorizTextMarginFactor
Sets the horizontal margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Parameters:
aTextMarginFactor- The horizontal margin factor relative to the size of the cell of the text box from the cell- Returns:
- The builder for applying multiple build operations.
-
withHorizTextPaddingFactor
Sets the horizontal padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Parameters:
aTextPaddingFactor- The horizontal padding factor relative to the size of the cell of the text from the text box- Returns:
- The builder for applying multiple build operations.
-
withImage
Sets the image of the cell.- Parameters:
aImage- The color to be used.- Returns:
- The builder for applying multiple build operations.
-
withLeftTextMarginFactor
Sets the left margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Parameters:
aTextMarginFactor- The left margin factor relative to the size of the cell of the text box from the cell- Returns:
- The builder for applying multiple build operations.
-
withLeftTextPaddingFactor
Sets the left padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Parameters:
aTextPaddingFactor- The left padding factor relative to the size of the cell of the text from the text box- Returns:
- The builder for applying multiple build operations.
-
withRightTextMarginFactor
Sets the right margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Parameters:
aTextMarginFactor- The right margin factor relative to the size of the cell of the text box from the cell- Returns:
- The builder for applying multiple build operations.
-
withRightTextPaddingFactor
Sets the right padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Parameters:
aTextPaddingFactor- The right padding factor relative to the size of the cell of the text from the text box- Returns:
- The builder for applying multiple build operations.
-
withText
- Specified by:
withTextin interfaceorg.refcodes.mixin.TextAccessor.TextBuilder<FxLabelDecorator>
-
withTextBackground
Sets the background of the text.- Parameters:
aTextBackground- The background to be used.- Returns:
- The builder for applying multiple build operations.
-
withTextBorderArcFactor
Sets the arc of the text border relative to the arc of the cell (as ofgetTextLayoutMode()). Values form 0 to 1 represents width between 0% and 100%.- Parameters:
aTextBorderArcFactor- The factor to be used relative to the arc of the cell.- Returns:
- The builder for applying multiple build operations.
-
withTextBorderColor
Sets the color of the text border.- Parameters:
aTextBorderColor- The color to be used.- Returns:
- The builder for applying multiple build operations.
-
withTextBorderSizeFactor
Sets the size of the text border relative to the size of the cell (as ofgetTextLayoutMode()). Values form 0 to 1 represents width between 0% and 100%.- Parameters:
aTextBorderSizeFactor- The factor to be used relative to the size of the cell.- Returns:
- The builder for applying multiple build operations.
-
withTextColor
Sets the color of the text.- Parameters:
aTextColor- The color to be used.- Returns:
- The builder for applying multiple build operations.
-
withTextLayoutMode
Sets theLayoutModefor the text metrics.- Parameters:
aLayoutMode- TheLayoutModeto be applied to text metrics. settings.- Returns:
- The builder for applying multiple build operations.
-
withTextMarginFactor
Sets the margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Parameters:
aTextMarginFactor- The margin factor relative to the size of the cell of the text box from the cell- Returns:
- The builder for applying multiple build operations.
-
withTextPaddingFactor
Sets the padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Parameters:
aTextPaddingFactor- The padding factor relative to the size of the cell of the text from the text box- Returns:
- The builder for applying multiple build operations.
-
withTextSizeFactor
Sets the size of the text relative to the size of the cell (as ofgetTextLayoutMode()). Values form 0 to 1 represents width between 0% and 100%.- Parameters:
aTextSizeFactor- The factor to be used relative to the size of the cell.- Returns:
- The builder for applying multiple build operations.
-
withTopTextMarginFactor
Sets the top margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Parameters:
aTextMarginFactor- The top margin factor relative to the size of the cell of the text box from the cell- Returns:
- The builder for applying multiple build operations.
-
withTopTextPaddingFactor
Sets the top padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Parameters:
aTextPaddingFactor- The top padding factor relative to the size of the cell of the text from the text box- Returns:
- The builder for applying multiple build operations.
-
withVertAlignTextMode
public FxLabelDecorator withVertAlignTextMode(org.refcodes.textual.VertAlignTextMode aVertAlignTextMode) - Specified by:
withVertAlignTextModein interfaceorg.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeBuilder<FxLabelDecorator>
-
withVertTextMarginFactor
Sets the vertical margin factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text box from the cell.- Parameters:
aTextMarginFactor- The vertical margin factor relative to the size of the cell of the text box from the cell- Returns:
- The builder for applying multiple build operations.
-
withVertTextPaddingFactor
Sets the vertical padding factor relative to the size of the cell (as ofgetTextLayoutMode()) of the text from the text box.- Parameters:
aTextPaddingFactor- The vertical padding factor relative to the size of the cell of the text from the text box- Returns:
- The builder for applying multiple build operations.
-
redraw
protected void redraw()Recalculates the metrics of the elements of this node.
-