Class AbstractLegend.TextStyle
java.lang.Object
io.jmix.chartsflowui.kit.component.model.ChartObservableObject
io.jmix.chartsflowui.kit.component.model.shared.AbstractText<T>
io.jmix.chartsflowui.kit.component.model.shared.AbstractRichText<AbstractLegend.TextStyle>
io.jmix.chartsflowui.kit.component.model.legend.AbstractLegend.TextStyle
- All Implemented Interfaces:
HasBorder<AbstractLegend.TextStyle>,HasShadow<AbstractLegend.TextStyle>,HasText<AbstractLegend.TextStyle>,HasPadding<AbstractLegend.TextStyle>,Serializable
- Enclosing class:
- AbstractLegend<T extends AbstractLegend<T>>
public static class AbstractLegend.TextStyle
extends AbstractRichText<AbstractLegend.TextStyle>
implements HasShadow<AbstractLegend.TextStyle>, HasBorder<AbstractLegend.TextStyle>, HasPadding<AbstractLegend.TextStyle>
Text font style for legend component.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
ChartObservableObject.ObjectChangeEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Colorprotected Colorprotected Integerprotected Integerprotected Stringprotected Integerprotected Paddingprotected Integerprotected Colorprotected Integerprotected IntegerFields inherited from class io.jmix.chartsflowui.kit.component.model.shared.AbstractRichText
richStylesFields inherited from class io.jmix.chartsflowui.kit.component.model.shared.AbstractText
color, ellipsis, fontFamily, fontSize, fontStyle, fontWeight, height, lineHeight, overflow, textBorderColor, textBorderDashOffset, textBorderType, textBorderWidth, textShadowBlur, textShadowColor, textShadowOffsetX, textShadowOffsetY, widthFields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetBackgroundColor(Color backgroundColor) voidsetBorderColor(Color borderColor) Sets a border color or replaces an existing one.voidsetBorderDashOffset(Integer borderDashOffset) voidsetBorderRadius(Integer borderRadius) Sets a border radius of the text fragment or replaces an existing one.voidsetBorderType(String borderType) voidsetBorderWidth(Integer borderWidth) Sets a border width or replaces an existing one.voidsetPadding(Integer padding) Sets padding on each of the four sides or replaces an existing one.voidsetPadding(Integer vertical, Integer horizontal) Sets the top/bottom and left/right paddings or replaces an existing one.voidsetPadding(Integer top, Integer right, Integer bottom, Integer left) Sets each of the four paddings separately.voidsetShadowBlur(Integer shadowBlur) Sets depth of shadow blur or replaces an existing one.voidsetShadowColor(Color shadowColor) Sets a color for shadow or replaces an existing one.voidsetShadowOffsetX(Integer shadowOffsetX) Sets horizontal offset for shadow or replaces an existing one.voidsetShadowOffsetY(Integer shadowOffsetY) Sets vertical offset for shadow or replaces an existing one.withBackgroundColor(Color backgroundColor) withBorderDashOffset(Integer borderDashOffset) withBorderType(String borderType) Methods inherited from class io.jmix.chartsflowui.kit.component.model.shared.AbstractRichText
addRichStyle, getRichStyles, removeRichStyle, withRichStyleMethods inherited from class io.jmix.chartsflowui.kit.component.model.shared.AbstractText
getColor, getEllipsis, getFontFamily, getFontSize, getFontStyle, getFontWeight, getHeight, getLineHeight, getOverflow, getTextBorderColor, getTextBorderDashOffset, getTextBorderType, getTextBorderWidth, getTextShadowBlur, getTextShadowColor, getTextShadowOffsetX, getTextShadowOffsetY, getWidth, setColor, setEllipsis, setFontFamily, setFontSize, setFontStyle, setFontWeight, setHeight, setLineHeight, setOverflow, setTextBorderColor, setTextBorderDashOffset, setTextBorderType, setTextBorderWidth, setTextShadowBlur, setTextShadowColor, setTextShadowOffsetX, setTextShadowOffsetY, setWidth, withColor, withEllipsis, withFontFamily, withFontSize, withFontStyle, withFontWeight, withHeight, withLineHeight, withOverflow, withWidthMethods inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
addChild, fireChangeEvent, getChildren, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setChartObjectChangeListener, unmarkDirtyInDepthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.chartsflowui.kit.component.model.HasBorder
withBorderColor, withBorderRadius, withBorderWidthMethods inherited from interface io.jmix.chartsflowui.kit.component.model.shared.HasPadding
withPadding, withPadding, withPaddingMethods inherited from interface io.jmix.chartsflowui.kit.component.model.HasShadow
withShadowBlur, withShadowColor, withShadowOffsetX, withShadowOffsetYMethods inherited from interface io.jmix.chartsflowui.kit.component.model.HasText
withTextBorderColor, withTextBorderDashOffset, withTextBorderType, withTextBorderWidth, withTextShadowBlur, withTextShadowColor, withTextShadowOffsetX, withTextShadowOffsetY
-
Field Details
-
backgroundColor
-
borderColor
-
borderWidth
-
borderType
-
borderDashOffset
-
borderRadius
-
padding
-
shadowBlur
-
shadowColor
-
shadowOffsetX
-
shadowOffsetY
-
-
Constructor Details
-
TextStyle
public TextStyle()
-
-
Method Details
-
getBackgroundColor
-
getBorderColor
- Specified by:
getBorderColorin interfaceHasBorder<AbstractLegend.TextStyle>- Returns:
- border color
-
getBorderWidth
- Specified by:
getBorderWidthin interfaceHasBorder<AbstractLegend.TextStyle>- Returns:
- border width in pixels
-
setBorderWidth
Description copied from interface:HasBorderSets a border width or replaces an existing one.- Specified by:
setBorderWidthin interfaceHasBorder<AbstractLegend.TextStyle>- Parameters:
borderWidth- border width in pixels
-
getBorderType
-
setBorderType
-
getBorderDashOffset
-
setBorderDashOffset
-
getBorderRadius
- Specified by:
getBorderRadiusin interfaceHasBorder<AbstractLegend.TextStyle>- Returns:
- border radius of the text fragment
-
setBorderRadius
Description copied from interface:HasBorderSets a border radius of the text fragment or replaces an existing one.- Specified by:
setBorderRadiusin interfaceHasBorder<AbstractLegend.TextStyle>- Parameters:
borderRadius- border radius to set in pixels
-
getPadding
- Specified by:
getPaddingin interfaceHasPadding<AbstractLegend.TextStyle>- Returns:
- space around content
-
setPadding
Description copied from interface:HasPaddingSets padding on each of the four sides or replaces an existing one. The unit is px.- Specified by:
setPaddingin interfaceHasPadding<AbstractLegend.TextStyle>- Parameters:
padding- padding to set
-
setPadding
Description copied from interface:HasPaddingSets the top/bottom and left/right paddings or replaces an existing one. The unit is px.- Specified by:
setPaddingin interfaceHasPadding<AbstractLegend.TextStyle>- Parameters:
vertical- top and bottom padding to sethorizontal- left and right padding to set
-
setPadding
Description copied from interface:HasPaddingSets each of the four paddings separately. The unit is px.- Specified by:
setPaddingin interfaceHasPadding<AbstractLegend.TextStyle>- Parameters:
top- top padding to setright- right padding to setbottom- bottom padding to setleft- left padding to set
-
getShadowBlur
- Specified by:
getShadowBlurin interfaceHasShadow<AbstractLegend.TextStyle>- Returns:
- depth of shadow blur
-
setShadowBlur
Description copied from interface:HasShadowSets depth of shadow blur or replaces an existing one.- Specified by:
setShadowBlurin interfaceHasShadow<AbstractLegend.TextStyle>- Parameters:
shadowBlur- depth of shadow blur
-
getShadowColor
- Specified by:
getShadowColorin interfaceHasShadow<AbstractLegend.TextStyle>- Returns:
- shadow color
-
getShadowOffsetX
- Specified by:
getShadowOffsetXin interfaceHasShadow<AbstractLegend.TextStyle>- Returns:
- horizontal offset for shadow in pixels
-
setShadowOffsetX
Description copied from interface:HasShadowSets horizontal offset for shadow or replaces an existing one.- Specified by:
setShadowOffsetXin interfaceHasShadow<AbstractLegend.TextStyle>- Parameters:
shadowOffsetX- offset to set in pixels
-
getShadowOffsetY
- Specified by:
getShadowOffsetYin interfaceHasShadow<AbstractLegend.TextStyle>- Returns:
- vertical offset for shadow in pixels
-
setShadowOffsetY
Description copied from interface:HasShadowSets vertical offset for shadow or replaces an existing one.- Specified by:
setShadowOffsetYin interfaceHasShadow<AbstractLegend.TextStyle>- Parameters:
shadowOffsetY- offset to set in pixels
-
withBorderType
-
withBorderDashOffset
-