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.mixin.TextAccessor
, org.refcodes.mixin.TextAccessor.TextBuilder<FxLabelDecorator>
, org.refcodes.mixin.TextAccessor.TextMutator
, org.refcodes.mixin.TextAccessor.TextProperty
, org.refcodes.textual.VertAlignTextModeAccessor
, org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeBuilder<FxLabelDecorator>
, org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeMutator
, org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeProperty
FxLabelDecoratorImpl
public interface FxLabelDecorator extends 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>
FxLabelDecorator
defines functionality for "cells"
being constructed of an image and a "label" text.org.refcodes.textual.FontNameAccessor.FontNameBuilder<B extends org.refcodes.textual.FontNameAccessor.FontNameBuilder<B>>, org.refcodes.textual.FontNameAccessor.FontNameMutator, org.refcodes.textual.FontNameAccessor.FontNameProperty
org.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeBuilder<B extends org.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeBuilder<B>>, org.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeMutator, org.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeProperty
org.refcodes.mixin.TextAccessor.TextBuilder<B extends org.refcodes.mixin.TextAccessor.TextBuilder<B>>, org.refcodes.mixin.TextAccessor.TextMutator, org.refcodes.mixin.TextAccessor.TextProperty
org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeBuilder<B extends org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeBuilder<B>>, org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeMutator, org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeProperty
Modifier and Type | Method | Description |
---|---|---|
double |
getBottomTextMarginFactor() |
Returns the bottom margin factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text box from the cell. |
double |
getBottomTextPaddingFactor() |
Returns the bottom padding factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text from the text box. |
Node |
getContent() |
Returns the node of the cell.
|
Image |
getImage() |
Returns the image of the cell.
|
double |
getLeftTextMarginFactor() |
Returns the left margin factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text box from the cell. |
double |
getLeftTextPaddingFactor() |
Returns the left padding factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text from the text box. |
double |
getRightTextMarginFactor() |
Returns the right margin factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text box from the cell. |
double |
getRightTextPaddingFactor() |
Returns the right padding factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text from the text box. |
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 of
getTextLayoutMode() ). |
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
of
getTextLayoutMode() ). |
Paint |
getTextColor() |
Returns the color of the text.
|
org.refcodes.graphical.LayoutMode |
getTextLayoutMode() |
Returns the
LayoutMode for the text metrics. |
double |
getTextSizeFactor() |
Returns the size of the text relative to the size of the cell (as of
getTextLayoutMode() ). |
double |
getTopTextMarginFactor() |
Returns the top margin factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text box from the cell. |
double |
getTopTextPaddingFactor() |
Returns the top padding factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text from the text box. |
void |
setBottomTextMarginFactor(double aBottomTextMarginFactor) |
Sets the bottom margin factor relative to the size of the cell (as of
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 of
getTextLayoutMode() ) of the text from the text box. |
void |
setContent(Node aContent) |
Sets the node of the cell.
|
default void |
setHorizTextMarginFactor(double aTextMarginFactor) |
Sets the horizontal margin factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text box from the cell. |
default void |
setHorizTextPaddingFactor(double aTextPaddingFactor) |
Sets the horizontal padding factor relative to the size of the cell (as
of
getTextLayoutMode() ) of the text from the text box. |
void |
setImage(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 of
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 of
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 of
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 of
getTextLayoutMode() ) of the text from the text box. |
void |
setTextBackground(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 of
getTextLayoutMode() ). |
void |
setTextBorderColor(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 of
getTextLayoutMode() ). |
void |
setTextColor(Paint aTextColor) |
Sets the color of the text.
|
void |
setTextLayoutMode(org.refcodes.graphical.LayoutMode aLayoutMode) |
Sets the
LayoutMode for the text metrics. |
default void |
setTextMarginFactor(double aTextMarginFactor) |
Sets the margin factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text box from the cell. |
default void |
setTextPaddingFactor(double aTextPaddingFactor) |
Sets the padding factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text from the text box. |
void |
setTextSizeFactor(double aTextSizeFactor) |
Sets the size of the text relative to the size of the cell (as of
getTextLayoutMode() ). |
void |
setTopTextMarginFactor(double aTopTextMarginFactor) |
Sets the top margin factor relative to the size of the cell (as of
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 of
getTextLayoutMode() ) of the text from the text box. |
default void |
setVertTextMarginFactor(double aTextMarginFactor) |
Sets the vertical margin factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text box from the cell. |
default void |
setVertTextPaddingFactor(double aTextPaddingFactor) |
Sets the vertical padding factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text from the text box. |
default FxLabelDecorator |
withBottomTextMarginFactor(double aTextMarginFactor) |
Sets the bottom margin factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text box from the cell. |
default FxLabelDecorator |
withBottomTextPaddingFactor(double aTextPaddingFactor) |
Sets the bottom padding factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text from the text box. |
default FxLabelDecorator |
withContent(Node aContent) |
Sets the node of the cell.
|
default FxLabelDecorator |
withFontName(String aFontName) |
|
default FxLabelDecorator |
withHorizAlignTextMode(org.refcodes.textual.HorizAlignTextMode aHorizAlignTextMode) |
|
default FxLabelDecorator |
withHorizTextMarginFactor(double aTextMarginFactor) |
Sets the horizontal margin factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text box from the cell. |
default FxLabelDecorator |
withHorizTextPaddingFactor(double aTextPaddingFactor) |
Sets the horizontal padding factor relative to the size of the cell (as
of
getTextLayoutMode() ) of the text from the text box. |
default FxLabelDecorator |
withImage(Image aImage) |
Sets the image of the cell.
|
default FxLabelDecorator |
withLeftTextMarginFactor(double aTextMarginFactor) |
Sets the left margin factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text box from the cell. |
default FxLabelDecorator |
withLeftTextPaddingFactor(double aTextPaddingFactor) |
Sets the left padding factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text from the text box. |
default FxLabelDecorator |
withRightTextMarginFactor(double aTextMarginFactor) |
Sets the right margin factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text box from the cell. |
default FxLabelDecorator |
withRightTextPaddingFactor(double aTextPaddingFactor) |
Sets the right padding factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text from the text box. |
default FxLabelDecorator |
withText(String aText) |
|
default FxLabelDecorator |
withTextBackground(Paint aTextBackground) |
Sets the background of the text.
|
default FxLabelDecorator |
withTextBorderArcFactor(double aTextBorderArcFactor) |
Sets the arc of the text border relative to the arc of the cell (as of
getTextLayoutMode() ). |
default FxLabelDecorator |
withTextBorderColor(Paint aTextBorderColor) |
Sets the color of the text border.
|
default FxLabelDecorator |
withTextBorderSizeFactor(double aTextBorderSizeFactor) |
Sets the size of the text border relative to the size of the cell (as of
getTextLayoutMode() ). |
default FxLabelDecorator |
withTextColor(Paint aTextColor) |
Sets the color of the text.
|
default FxLabelDecorator |
withTextLayoutMode(org.refcodes.graphical.LayoutMode aLayoutMode) |
Sets the
LayoutMode for the text metrics. |
default FxLabelDecorator |
withTextMarginFactor(double aTextMarginFactor) |
Sets the margin factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text box from the cell. |
default FxLabelDecorator |
withTextPaddingFactor(double aTextPaddingFactor) |
Sets the padding factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text from the text box. |
default FxLabelDecorator |
withTextSizeFactor(double aTextSizeFactor) |
Sets the size of the text relative to the size of the cell (as of
getTextLayoutMode() ). |
default FxLabelDecorator |
withTopTextMarginFactor(double aTextMarginFactor) |
Sets the top margin factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text box from the cell. |
default FxLabelDecorator |
withTopTextPaddingFactor(double aTextPaddingFactor) |
Sets the top padding factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text from the text box. |
default FxLabelDecorator |
withVertAlignTextMode(org.refcodes.textual.VertAlignTextMode aVertAlignTextMode) |
|
default FxLabelDecorator |
withVertTextMarginFactor(double aTextMarginFactor) |
Sets the vertical margin factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text box from the cell. |
default FxLabelDecorator |
withVertTextPaddingFactor(double aTextPaddingFactor) |
Sets the vertical padding factor relative to the size of the cell (as of
getTextLayoutMode() ) of the text from the text box. |
getHorizAlignTextMode
setHorizAlignTextMode
letHorizAlignTextMode
getVertAlignTextMode
default FxLabelDecorator withFontName(String aFontName)
withFontName
in interface org.refcodes.textual.FontNameAccessor.FontNameBuilder<FxLabelDecorator>
default FxLabelDecorator withText(String aText)
withText
in interface org.refcodes.mixin.TextAccessor.TextBuilder<FxLabelDecorator>
default FxLabelDecorator withHorizAlignTextMode(org.refcodes.textual.HorizAlignTextMode aHorizAlignTextMode)
withHorizAlignTextMode
in interface org.refcodes.textual.HorizAlignTextModeAccessor.HorizAlignTextModeBuilder<FxLabelDecorator>
default FxLabelDecorator withVertAlignTextMode(org.refcodes.textual.VertAlignTextMode aVertAlignTextMode)
withVertAlignTextMode
in interface org.refcodes.textual.VertAlignTextModeAccessor.VertAlignTextModeBuilder<FxLabelDecorator>
void setTextBackground(Paint aTextBackground)
aTextBackground
- The background of the text inside the cell.Paint getTextBackground()
default FxLabelDecorator withTextBackground(Paint aTextBackground)
aTextBackground
- The background to be used.void setTextColor(Paint aTextColor)
aTextColor
- The color of the text inside the cell.Paint getTextColor()
default FxLabelDecorator withTextColor(Paint aTextColor)
aTextColor
- The color to be used.void setTextLayoutMode(org.refcodes.graphical.LayoutMode aLayoutMode)
LayoutMode
for the text metrics.aLayoutMode
- The LayoutMode
to be applied to text metrics.
settings.org.refcodes.graphical.LayoutMode getTextLayoutMode()
LayoutMode
for the text metrics.LayoutMode
to be applied to text metrics. settings.default FxLabelDecorator withTextLayoutMode(org.refcodes.graphical.LayoutMode aLayoutMode)
LayoutMode
for the text metrics.aLayoutMode
- The LayoutMode
to be applied to text metrics.
settings.void setTextSizeFactor(double aTextSizeFactor)
getTextLayoutMode()
). Values form 0 to 1 represents width
between 0% and 100%.aTextSizeFactor
- The factor to be used relative to the size of the
cell.double getTextSizeFactor()
getTextLayoutMode()
). Values form 0 to 1 represents width
between 0% and 100%.default FxLabelDecorator withTextSizeFactor(double aTextSizeFactor)
getTextLayoutMode()
). Values form 0 to 1 represents width
between 0% and 100%.aTextSizeFactor
- The factor to be used relative to the size of the
cell.default void setTextMarginFactor(double aTextMarginFactor)
getTextLayoutMode()
) of the text box from the cell.aTextMarginFactor
- The margin factor of the text from the text box.default FxLabelDecorator withTextMarginFactor(double aTextMarginFactor)
getTextLayoutMode()
) of the text box from the cell.aTextMarginFactor
- The margin factor relative to the size of the
cell of the text box from the celldefault FxLabelDecorator withHorizTextMarginFactor(double aTextMarginFactor)
getTextLayoutMode()
) of the text box from the cell.aTextMarginFactor
- The horizontal margin factor relative to the
size of the cell of the text box from the celldefault void setHorizTextMarginFactor(double aTextMarginFactor)
getTextLayoutMode()
) of the text box from the cell.aTextMarginFactor
- The horizontal margin factor of the text from
the text box.default FxLabelDecorator withVertTextMarginFactor(double aTextMarginFactor)
getTextLayoutMode()
) of the text box from the cell.aTextMarginFactor
- The vertical margin factor relative to the size
of the cell of the text box from the celldefault void setVertTextMarginFactor(double aTextMarginFactor)
getTextLayoutMode()
) of the text box from the cell.aTextMarginFactor
- The vertical margin factor of the text from the
text box.void setTopTextMarginFactor(double aTopTextMarginFactor)
getTextLayoutMode()
) of the text box from the cell.aTopTextMarginFactor
- The top margin factor of the text from the
text box.double getTopTextMarginFactor()
getTextLayoutMode()
) of the text box from the cell.default FxLabelDecorator withTopTextMarginFactor(double aTextMarginFactor)
getTextLayoutMode()
) of the text box from the cell.aTextMarginFactor
- The top margin factor relative to the size of
the cell of the text box from the cellvoid setBottomTextMarginFactor(double aBottomTextMarginFactor)
getTextLayoutMode()
) of the text box from the cell.aBottomTextMarginFactor
- The bottom margin factor of the text from
the text box.double getBottomTextMarginFactor()
getTextLayoutMode()
) of the text box from the cell.default FxLabelDecorator withBottomTextMarginFactor(double aTextMarginFactor)
getTextLayoutMode()
) of the text box from the cell.aTextMarginFactor
- The bottom margin factor relative to the size of
the cell of the text box from the cellvoid setLeftTextMarginFactor(double aLeftTextMarginFactor)
getTextLayoutMode()
) of the text box from the cell.aLeftTextMarginFactor
- The left margin factor of the text from the
text box.double getLeftTextMarginFactor()
getTextLayoutMode()
) of the text box from the cell.default FxLabelDecorator withLeftTextMarginFactor(double aTextMarginFactor)
getTextLayoutMode()
) of the text box from the cell.aTextMarginFactor
- The left margin factor relative to the size of
the cell of the text box from the cellvoid setRightTextMarginFactor(double aRightTextMarginFactor)
getTextLayoutMode()
) of the text box from the cell.aRightTextMarginFactor
- The right margin factor of the text from
the text box.double getRightTextMarginFactor()
getTextLayoutMode()
) of the text box from the cell.default FxLabelDecorator withRightTextMarginFactor(double aTextMarginFactor)
getTextLayoutMode()
) of the text box from the cell.aTextMarginFactor
- The right margin factor relative to the size of
the cell of the text box from the celldefault void setTextPaddingFactor(double aTextPaddingFactor)
getTextLayoutMode()
) of the text from the text box.aTextPaddingFactor
- The padding factor of the text from the text
box.default FxLabelDecorator withTextPaddingFactor(double aTextPaddingFactor)
getTextLayoutMode()
) of the text from the text box.aTextPaddingFactor
- The padding factor relative to the size of the
cell of the text from the text boxdefault FxLabelDecorator withHorizTextPaddingFactor(double aTextPaddingFactor)
getTextLayoutMode()
) of the text from the text box.aTextPaddingFactor
- The horizontal padding factor relative to the
size of the cell of the text from the text boxdefault void setHorizTextPaddingFactor(double aTextPaddingFactor)
getTextLayoutMode()
) of the text from the text box.aTextPaddingFactor
- The horizontal padding factor of the text from
the text box.default FxLabelDecorator withVertTextPaddingFactor(double aTextPaddingFactor)
getTextLayoutMode()
) of the text from the text box.aTextPaddingFactor
- The vertical padding factor relative to the
size of the cell of the text from the text boxdefault void setVertTextPaddingFactor(double aTextPaddingFactor)
getTextLayoutMode()
) of the text from the text box.aTextPaddingFactor
- The vertical padding factor of the text from
the text box.void setTopTextPaddingFactor(double aTopTextPaddingFactor)
getTextLayoutMode()
) of the text from the text box.aTopTextPaddingFactor
- The top padding factor of the text from the
text box.double getTopTextPaddingFactor()
getTextLayoutMode()
) of the text from the text box.default FxLabelDecorator withTopTextPaddingFactor(double aTextPaddingFactor)
getTextLayoutMode()
) of the text from the text box.aTextPaddingFactor
- The top padding factor relative to the size of
the cell of the text from the text boxvoid setBottomTextPaddingFactor(double aBottomTextPaddingFactor)
getTextLayoutMode()
) of the text from the text box.aBottomTextPaddingFactor
- The bottom padding factor of the text
from the text box.double getBottomTextPaddingFactor()
getTextLayoutMode()
) of the text from the text box.default FxLabelDecorator withBottomTextPaddingFactor(double aTextPaddingFactor)
getTextLayoutMode()
) of the text from the text box.aTextPaddingFactor
- The bottom padding factor relative to the size
of the cell of the text from the text boxvoid setLeftTextPaddingFactor(double aLeftTextPaddingFactor)
getTextLayoutMode()
) of the text from the text box.aLeftTextPaddingFactor
- The left padding factor of the text from
the text box.double getLeftTextPaddingFactor()
getTextLayoutMode()
) of the text from the text box.default FxLabelDecorator withLeftTextPaddingFactor(double aTextPaddingFactor)
getTextLayoutMode()
) of the text from the text box.aTextPaddingFactor
- The left padding factor relative to the size of
the cell of the text from the text boxvoid setRightTextPaddingFactor(double aRightTextPaddingFactor)
getTextLayoutMode()
) of the text from the text box.aRightTextPaddingFactor
- The right padding factor of the text from
the text box.double getRightTextPaddingFactor()
getTextLayoutMode()
) of the text from the text box.default FxLabelDecorator withRightTextPaddingFactor(double aTextPaddingFactor)
getTextLayoutMode()
) of the text from the text box.aTextPaddingFactor
- The right padding factor relative to the size
of the cell of the text from the text boxvoid setTextBorderSizeFactor(double aTextBorderSizeFactor)
getTextLayoutMode()
). Values form 0 to 1 represents width
between 0% and 100%.aTextBorderSizeFactor
- The factor to be used relative to the size
of the cell.double getTextBorderSizeFactor()
getTextLayoutMode()
). Values form 0 to 1 represents width
between 0% and 100%.default FxLabelDecorator withTextBorderSizeFactor(double aTextBorderSizeFactor)
getTextLayoutMode()
). Values form 0 to 1 represents width
between 0% and 100%.aTextBorderSizeFactor
- The factor to be used relative to the size
of the cell.void setTextBorderArcFactor(double aTextBorderArcFactor)
getTextLayoutMode()
). Values form 0 to 1 represents width
between 0% and 100%.aTextBorderArcFactor
- The factor to be used relative to the arc of
the cell.double getTextBorderArcFactor()
getTextLayoutMode()
). Values form 0 to 1 represents width
between 0% and 100%.default FxLabelDecorator withTextBorderArcFactor(double aTextBorderArcFactor)
getTextLayoutMode()
). Values form 0 to 1 represents width
between 0% and 100%.aTextBorderArcFactor
- The factor to be used relative to the arc of
the cell.void setTextBorderColor(Paint aTextBorderColor)
aTextBorderColor
- The color of the text border inside the cell.Paint getTextBorderColor()
default FxLabelDecorator withTextBorderColor(Paint aTextBorderColor)
aTextBorderColor
- The color to be used.void setImage(Image aImage)
aImage
- The image of the cell.Image getImage()
default FxLabelDecorator withImage(Image aImage)
aImage
- The color to be used.void setContent(Node aContent)
aContent
- The node of the cell.Node getContent()
default FxLabelDecorator withContent(Node aContent)
aContent
- The color to be used.Copyright © 2021. All rights reserved.