Class FxLabelDecoratorImpl
- 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.FxLabelDecoratorImpl
-
- All Implemented Interfaces:
FxLabelDecorator
,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 FxLabelDecoratorImpl extends javafx.scene.layout.StackPane implements FxLabelDecorator
Implementation of theFxLabelDecorator
interface. TODO: Provide means to set cell width and height manually and make them images then scale accordingly!
-
-
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.FontNameProperty
-
Nested 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.HorizAlignTextModeProperty
-
Nested 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.TextProperty
-
Nested 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
-
-
Constructor Summary
Constructors Constructor Description FxLabelDecoratorImpl(java.lang.Object aText, java.lang.String aFontName, double aTextSizeFactor, javafx.scene.image.Image aImage)
Constructs aFxLabelDecorator
with the required minimum attributes.FxLabelDecoratorImpl(java.lang.String aText, java.lang.String aFontName, double aTextSizeFactor, javafx.scene.image.Image aImage)
Constructs aFxLabelDecorator
with the required minimum attributes.FxLabelDecoratorImpl(java.lang.String aText, java.lang.String aFontName, double aTextSizeFactor, javafx.scene.Node aNode)
Constructs aFxLabelDecorator
with the required minimum attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getBottomTextMarginFactor()
Returns the bottom margin factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text box from the cell.double
getBottomTextPaddingFactor()
Returns the bottom padding factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text from the text box.javafx.scene.Node
getContent()
Returns the node of the cell.java.lang.String
getFontName()
org.refcodes.textual.HorizAlignTextMode
getHorizAlignTextMode()
javafx.scene.image.Image
getImage()
Returns the image of the cell.double
getLeftTextMarginFactor()
Returns the left margin factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text box from the cell.double
getLeftTextPaddingFactor()
Returns the left padding factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text from the text box.double
getRightTextMarginFactor()
Returns the right margin factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text box from the cell.double
getRightTextPaddingFactor()
Returns the right padding factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text from the text box.java.lang.String
getText()
javafx.scene.paint.Paint
getTextBackground()
Returns the background of the text.double
getTextBorderArcFactor()
Returns the arc of the text border relative to the arc of the cell (as ofFxLabelDecorator.getTextLayoutMode()
).javafx.scene.paint.Paint
getTextBorderColor()
Returns the color of the text border.double
getTextBorderSizeFactor()
Returns the size of the text border relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
).javafx.scene.paint.Paint
getTextColor()
Returns the color of the text.org.refcodes.graphical.LayoutMode
getTextLayoutMode()
Returns theLayoutMode
for the text metrics.double
getTextSizeFactor()
Returns the size of the text relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
).double
getTopTextMarginFactor()
Returns the top margin factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text box from the cell.double
getTopTextPaddingFactor()
Returns the top padding factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text from the text box.org.refcodes.textual.VertAlignTextMode
getVertAlignTextMode()
protected void
redraw()
Recalculates the metrics of the elements of this node.void
setBottomTextMarginFactor(double aBottomTextMarginFactor)
Sets the bottom margin factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text box from the cell.void
setBottomTextPaddingFactor(double aBottomTextPaddingFactor)
Sets the bottom padding factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text from the text box.void
setContent(javafx.scene.Node aContent)
Sets the node of the cell.void
setFontName(java.lang.String aFontName)
void
setHorizAlignTextMode(org.refcodes.textual.HorizAlignTextMode aHorizAlignTextMode)
void
setImage(javafx.scene.image.Image aImage)
Sets the image of the cell.void
setLeftTextMarginFactor(double aLeftTextMarginFactor)
Sets the left margin factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text box from the cell.void
setLeftTextPaddingFactor(double aLeftTextPaddingFactor)
Sets the left padding factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text from the text box.void
setRightTextMarginFactor(double aRightTextMarginFactor)
Sets the right margin factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text box from the cell.void
setRightTextPaddingFactor(double aRightTextPaddingFactor)
Sets the right padding factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text from the text box.void
setText(java.lang.String aText)
void
setTextBackground(javafx.scene.paint.Paint aTextBackground)
Sets the background of the text.void
setTextBorderArcFactor(double aTextBorderArcFactor)
Sets the arc of the text border relative to the arc of the cell (as ofFxLabelDecorator.getTextLayoutMode()
).void
setTextBorderColor(javafx.scene.paint.Paint aTextBorderColor)
Sets the color of the text border.void
setTextBorderSizeFactor(double aTextBorderSizeFactor)
Sets the size of the text border relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
).void
setTextColor(javafx.scene.paint.Paint aColor)
Sets the color of the text.void
setTextLayoutMode(org.refcodes.graphical.LayoutMode aLayoutMode)
Sets theLayoutMode
for the text metrics.void
setTextSizeFactor(double aTextSizeFactor)
Sets the size of the text relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
).void
setTopTextMarginFactor(double aTopTextMarginFactor)
Sets the top margin factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text box from the cell.void
setTopTextPaddingFactor(double aTopTextPaddingFactor)
Sets the top padding factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text from the text box.void
setVertAlignTextMode(org.refcodes.textual.VertAlignTextMode aVertAlignTextMode)
-
Methods inherited from interface org.refcodes.graphical.ext.javafx.FxLabelDecorator
setHorizTextMarginFactor, setHorizTextPaddingFactor, setTextMarginFactor, setTextPaddingFactor, setVertTextMarginFactor, setVertTextPaddingFactor, withBottomTextMarginFactor, withBottomTextPaddingFactor, withContent, withFontName, withHorizAlignTextMode, withHorizTextMarginFactor, withHorizTextPaddingFactor, withImage, withLeftTextMarginFactor, withLeftTextPaddingFactor, withRightTextMarginFactor, withRightTextPaddingFactor, withText, withTextBackground, withTextBorderArcFactor, withTextBorderColor, withTextBorderSizeFactor, withTextColor, withTextLayoutMode, withTextMarginFactor, withTextPaddingFactor, withTextSizeFactor, withTopTextMarginFactor, withTopTextPaddingFactor, withVertAlignTextMode, withVertTextMarginFactor, withVertTextPaddingFactor
-
Methods 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, 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, 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, visibleProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class javafx.scene.Parent
getBaselineOffset, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestParentLayout, setNeedsLayout, updateBounds
-
Methods 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, widthProperty
-
Methods inherited from class javafx.scene.layout.StackPane
alignmentProperty, clearConstraints, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getAlignment, getAlignment, getClassCssMetaData, getContentBias, getCssMetaData, getMargin, layoutChildren, requestLayout, setAlignment, setAlignment, setMargin
-
-
-
-
Constructor Detail
-
FxLabelDecoratorImpl
public FxLabelDecoratorImpl(java.lang.String aText, java.lang.String aFontName, double aTextSizeFactor, javafx.scene.image.Image aImage)
Constructs aFxLabelDecorator
with 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.
-
FxLabelDecoratorImpl
public FxLabelDecoratorImpl(java.lang.String aText, java.lang.String aFontName, double aTextSizeFactor, javafx.scene.Node aNode)
Constructs aFxLabelDecorator
with 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.
-
FxLabelDecoratorImpl
public FxLabelDecoratorImpl(java.lang.Object aText, java.lang.String aFontName, double aTextSizeFactor, javafx.scene.image.Image aImage)
Constructs aFxLabelDecorator
with 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.
-
-
Method Detail
-
setTopTextMarginFactor
public void setTopTextMarginFactor(double aTopTextMarginFactor)
Sets the top margin factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text box from the cell.- Specified by:
setTopTextMarginFactor
in interfaceFxLabelDecorator
- Parameters:
aTopTextMarginFactor
- The top margin factor of the text from the text box.
-
getTopTextMarginFactor
public double getTopTextMarginFactor()
Returns the top margin factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text box from the cell.- Specified by:
getTopTextMarginFactor
in interfaceFxLabelDecorator
- Returns:
- The top margin factor relative to the size of the cell of the text from the text box.
-
setBottomTextMarginFactor
public void setBottomTextMarginFactor(double aBottomTextMarginFactor)
Sets the bottom margin factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text box from the cell.- Specified by:
setBottomTextMarginFactor
in interfaceFxLabelDecorator
- Parameters:
aBottomTextMarginFactor
- The bottom margin factor of the text from the text box.
-
getBottomTextMarginFactor
public double getBottomTextMarginFactor()
Returns the bottom margin factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text box from the cell.- Specified by:
getBottomTextMarginFactor
in interfaceFxLabelDecorator
- Returns:
- The bottom margin factor relative to the size of the cell of the text from the text box.
-
setLeftTextMarginFactor
public void setLeftTextMarginFactor(double aLeftTextMarginFactor)
Sets the left margin factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text box from the cell.- Specified by:
setLeftTextMarginFactor
in interfaceFxLabelDecorator
- Parameters:
aLeftTextMarginFactor
- The left margin factor of the text from the text box.
-
getLeftTextMarginFactor
public double getLeftTextMarginFactor()
Returns the left margin factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text box from the cell.- Specified by:
getLeftTextMarginFactor
in interfaceFxLabelDecorator
- Returns:
- The left margin factor relative to the size of the cell 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 ofFxLabelDecorator.getTextLayoutMode()
) of the text box from the cell.- Specified by:
setRightTextMarginFactor
in interfaceFxLabelDecorator
- Parameters:
aRightTextMarginFactor
- The right margin factor of the text from the text box.
-
getRightTextMarginFactor
public double getRightTextMarginFactor()
Returns the right margin factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text box from the cell.- Specified by:
getRightTextMarginFactor
in interfaceFxLabelDecorator
- Returns:
- The right margin factor relative to the size of the cell 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 ofFxLabelDecorator.getTextLayoutMode()
) of the text from the text box.- Specified by:
setTopTextPaddingFactor
in interfaceFxLabelDecorator
- Parameters:
aTopTextPaddingFactor
- The top padding factor of the text from the text box.
-
getTopTextPaddingFactor
public double getTopTextPaddingFactor()
Returns the top padding factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text from the text box.- Specified by:
getTopTextPaddingFactor
in interfaceFxLabelDecorator
- Returns:
- The top padding factor relative to the size of the cell 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 ofFxLabelDecorator.getTextLayoutMode()
) of the text from the text box.- Specified by:
setBottomTextPaddingFactor
in interfaceFxLabelDecorator
- Parameters:
aBottomTextPaddingFactor
- The bottom padding factor of the text from the text box.
-
getBottomTextPaddingFactor
public double getBottomTextPaddingFactor()
Returns the bottom padding factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text from the text box.- Specified by:
getBottomTextPaddingFactor
in interfaceFxLabelDecorator
- Returns:
- The bottom padding factor relative to the size of the cell 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 ofFxLabelDecorator.getTextLayoutMode()
) of the text from the text box.- Specified by:
setLeftTextPaddingFactor
in interfaceFxLabelDecorator
- Parameters:
aLeftTextPaddingFactor
- The left padding factor of the text from the text box.
-
getLeftTextPaddingFactor
public double getLeftTextPaddingFactor()
Returns the left padding factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text from the text box.- Specified by:
getLeftTextPaddingFactor
in interfaceFxLabelDecorator
- Returns:
- The left padding factor relative to the size of the cell 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 ofFxLabelDecorator.getTextLayoutMode()
) of the text from the text box.- Specified by:
setRightTextPaddingFactor
in interfaceFxLabelDecorator
- Parameters:
aRightTextPaddingFactor
- The right padding factor of the text from the text box.
-
getRightTextPaddingFactor
public double getRightTextPaddingFactor()
Returns the right padding factor relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
) of the text from the text box.- Specified by:
getRightTextPaddingFactor
in interfaceFxLabelDecorator
- Returns:
- The right padding factor relative to the size of the cell of the text from the text box.
-
getText
public java.lang.String getText()
- Specified by:
getText
in interfaceorg.refcodes.mixin.TextAccessor
-
setText
public void setText(java.lang.String aText)
- Specified by:
setText
in interfaceorg.refcodes.mixin.TextAccessor.TextMutator
-
setTextSizeFactor
public void setTextSizeFactor(double aTextSizeFactor)
Sets the size of the text relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
). Values form 0 to 1 represents width between 0% and 100%.- Specified by:
setTextSizeFactor
in interfaceFxLabelDecorator
- Parameters:
aTextSizeFactor
- The factor to be used relative to the size of the cell.
-
getTextSizeFactor
public double getTextSizeFactor()
Returns the size of the text relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
). Values form 0 to 1 represents width between 0% and 100%.- Specified by:
getTextSizeFactor
in interfaceFxLabelDecorator
- Returns:
- The factor being used relative to the size of the cell.
-
getHorizAlignTextMode
public org.refcodes.textual.HorizAlignTextMode getHorizAlignTextMode()
- Specified by:
getHorizAlignTextMode
in interfaceorg.refcodes.textual.HorizAlignTextModeAccessor
-
setHorizAlignTextMode
public void setHorizAlignTextMode(org.refcodes.textual.HorizAlignTextMode aHorizAlignTextMode)
- Specified by:
setHorizAlignTextMode
in interfaceorg.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeMutator
-
getVertAlignTextMode
public org.refcodes.textual.VertAlignTextMode getVertAlignTextMode()
- Specified by:
getVertAlignTextMode
in interfaceorg.refcodes.textual.VertAlignTextModeAccessor
-
setVertAlignTextMode
public void setVertAlignTextMode(org.refcodes.textual.VertAlignTextMode aVertAlignTextMode)
- Specified by:
setVertAlignTextMode
in interfaceorg.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeMutator
-
getFontName
public java.lang.String getFontName()
- Specified by:
getFontName
in interfaceorg.refcodes.textual.FontNameAccessor
-
setFontName
public void setFontName(java.lang.String aFontName)
- Specified by:
setFontName
in interfaceorg.refcodes.textual.FontNameAccessor.FontNameMutator
-
setTextBackground
public void setTextBackground(javafx.scene.paint.Paint aTextBackground)
Sets the background of the text.- Specified by:
setTextBackground
in interfaceFxLabelDecorator
- Parameters:
aTextBackground
- The background of the text inside the cell.
-
getTextBackground
public javafx.scene.paint.Paint getTextBackground()
Returns the background of the text.- Specified by:
getTextBackground
in interfaceFxLabelDecorator
- Returns:
- The background of the text inside the cell.
-
setTextColor
public void setTextColor(javafx.scene.paint.Paint aColor)
Sets the color of the text.- Specified by:
setTextColor
in interfaceFxLabelDecorator
- Parameters:
aColor
- The color of the text inside the cell.
-
getTextColor
public javafx.scene.paint.Paint getTextColor()
Returns the color of the text.- Specified by:
getTextColor
in interfaceFxLabelDecorator
- Returns:
- The color of the text inside the cell.
-
setTextLayoutMode
public void setTextLayoutMode(org.refcodes.graphical.LayoutMode aLayoutMode)
Sets theLayoutMode
for the text metrics.- Specified by:
setTextLayoutMode
in interfaceFxLabelDecorator
- Parameters:
aLayoutMode
- TheLayoutMode
to be applied to text metrics. settings.
-
getTextLayoutMode
public org.refcodes.graphical.LayoutMode getTextLayoutMode()
Returns theLayoutMode
for the text metrics.- Specified by:
getTextLayoutMode
in interfaceFxLabelDecorator
- Returns:
- The
LayoutMode
to be applied to text metrics. settings.
-
setTextBorderSizeFactor
public void setTextBorderSizeFactor(double aTextBorderSizeFactor)
Sets the size of the text border relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
). Values form 0 to 1 represents width between 0% and 100%.- Specified by:
setTextBorderSizeFactor
in interfaceFxLabelDecorator
- Parameters:
aTextBorderSizeFactor
- The factor to be used relative to the size of the cell.
-
getTextBorderSizeFactor
public double getTextBorderSizeFactor()
Returns the size of the text border relative to the size of the cell (as ofFxLabelDecorator.getTextLayoutMode()
). Values form 0 to 1 represents width between 0% and 100%.- Specified by:
getTextBorderSizeFactor
in interfaceFxLabelDecorator
- Returns:
- The factor being used relative to the size of the cell.
-
setTextBorderArcFactor
public void setTextBorderArcFactor(double aTextBorderArcFactor)
Sets the arc of the text border relative to the arc of the cell (as ofFxLabelDecorator.getTextLayoutMode()
). Values form 0 to 1 represents width between 0% and 100%.- Specified by:
setTextBorderArcFactor
in interfaceFxLabelDecorator
- Parameters:
aTextBorderArcFactor
- The factor to be used relative to the arc of the cell.
-
getTextBorderArcFactor
public double getTextBorderArcFactor()
Returns the arc of the text border relative to the arc of the cell (as ofFxLabelDecorator.getTextLayoutMode()
). Values form 0 to 1 represents width between 0% and 100%.- Specified by:
getTextBorderArcFactor
in interfaceFxLabelDecorator
- Returns:
- The factor being used relative to the arc of the cell.
-
setTextBorderColor
public void setTextBorderColor(javafx.scene.paint.Paint aTextBorderColor)
Sets the color of the text border.- Specified by:
setTextBorderColor
in interfaceFxLabelDecorator
- Parameters:
aTextBorderColor
- The color of the text border inside the cell.
-
getTextBorderColor
public javafx.scene.paint.Paint getTextBorderColor()
Returns the color of the text border.- Specified by:
getTextBorderColor
in interfaceFxLabelDecorator
- Returns:
- The color of the text border inside the cell.
-
setImage
public void setImage(javafx.scene.image.Image aImage)
Sets the image of the cell.- Specified by:
setImage
in interfaceFxLabelDecorator
- Parameters:
aImage
- The image of the cell.
-
getImage
public javafx.scene.image.Image getImage()
Returns the image of the cell.- Specified by:
getImage
in interfaceFxLabelDecorator
- Returns:
- The image of the cell.
-
setContent
public void setContent(javafx.scene.Node aContent)
Sets the node of the cell.- Specified by:
setContent
in interfaceFxLabelDecorator
- Parameters:
aContent
- The node of the cell.
-
getContent
public javafx.scene.Node getContent()
Returns the node of the cell.- Specified by:
getContent
in interfaceFxLabelDecorator
- Returns:
- The node of the cell.
-
redraw
protected void redraw()
Recalculates the metrics of the elements of this node.
-
-