Class RichStyle
java.lang.Object
io.jmix.chartsflowui.kit.component.model.ChartObservableObject
io.jmix.chartsflowui.kit.component.model.shared.RichStyle
- All Implemented Interfaces:
HasAlign<RichStyle>,HasBorder<RichStyle>,HasShadow<RichStyle>,HasText<RichStyle>,HasPadding<RichStyle>,Serializable
public class RichStyle
extends ChartObservableObject
implements HasShadow<RichStyle>, HasBorder<RichStyle>, HasText<RichStyle>, HasPadding<RichStyle>, HasAlign<RichStyle>
Common rich text styles. Can be used in labels of series, axis or other components.
More detailed information is provided in the documentation.
- 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 Alignprotected Colorprotected Colorprotected Integerprotected Integerprotected Stringprotected Integerprotected Colorprotected Stringprotected Integerprotected FontStyleprotected Stringprotected Integerprotected Integerprotected Paddingprotected Integerprotected Colorprotected Integerprotected Integerprotected Colorprotected Integerprotected Stringprotected Doubleprotected Integerprotected Colorprotected Integerprotected Integerprotected VerticalAlignprotected IntegerFields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()getColor()getWidth()voidSets horizontal alignment of component or replaces an existing one.voidsetBackgroundColor(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.voidvoidsetFontFamily(String fontFamily) voidsetFontSize(Integer fontSize) voidsetFontStyle(FontStyle fontStyle) voidsetFontWeight(String fontWeight) voidvoidsetLineHeight(Integer lineHeight) 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.voidsetTextBorderColor(Color textBorderColor) Sets a stroke color of the text or replaces an existing one.voidsetTextBorderDashOffset(Integer textBorderDashOffset) Sets offset of the line dash or replaces an existing one.voidsetTextBorderType(String textBorderType) Sets a stroke line type of the text or replaces an existing one.
Possible values are:soliddasheddottedSincev5.0.0, it can also be a number.voidsetTextBorderWidth(Double textBorderWidth) Sets a stroke line width of the text or replaces an existing one.voidsetTextShadowBlur(Integer textShadowBlur) Sets a depth of text shadow blur or replaces an existing one.voidsetTextShadowColor(Color textShadowColor) Sets a color of the text shadow or replaces an existing one.voidsetTextShadowOffsetX(Integer textShadowOffsetX) Sets horizontal offset for text shadow or replaces an existing one.voidsetTextShadowOffsetY(Integer textShadowOffsetY) Sets vertical offset for text shadow or replaces an existing one.voidsetVerticalAlign(VerticalAlign verticalAlign) Sets vertical alignment of component or replaces an existing one.voidwithBackgroundColor(Color backgroundColor) withBorderDashOffset(Integer borderDashOffset) withBorderType(String borderType) withFontFamily(String fontFamily) withFontSize(Integer fontSize) withFontStyle(FontStyle fontStyle) withFontWeight(String fontWeight) withHeight(Integer height) withLineHeight(Integer lineHeight) Methods 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.HasAlign
withAlign, withVerticalAlignMethods 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
-
color
-
fontStyle
-
fontWeight
-
fontFamily
-
fontSize
-
align
-
verticalAlign
-
lineHeight
-
backgroundColor
-
borderColor
-
borderWidth
-
borderType
-
borderDashOffset
-
borderRadius
-
padding
-
shadowColor
-
shadowBlur
-
shadowOffsetX
-
shadowOffsetY
-
width
-
height
-
textBorderColor
-
textBorderWidth
-
textBorderType
-
textBorderDashOffset
-
textShadowColor
-
textShadowBlur
-
textShadowOffsetX
-
textShadowOffsetY
-
-
Constructor Details
-
RichStyle
public RichStyle()
-
-
Method Details
-
getColor
-
getFontStyle
-
getFontWeight
-
setFontWeight
-
getFontFamily
-
setFontFamily
-
getFontSize
-
setFontSize
-
getAlign
-
getVerticalAlign
- Specified by:
getVerticalAlignin interfaceHasAlign<RichStyle>- Returns:
- vertical alignment of component
-
getLineHeight
-
setLineHeight
-
getBackgroundColor
-
getBorderColor
- Specified by:
getBorderColorin interfaceHasBorder<RichStyle>- Returns:
- border color
-
getBorderWidth
- Specified by:
getBorderWidthin interfaceHasBorder<RichStyle>- Returns:
- border width in pixels
-
setBorderWidth
Description copied from interface:HasBorderSets a border width or replaces an existing one.- Specified by:
setBorderWidthin interfaceHasBorder<RichStyle>- Parameters:
borderWidth- border width in pixels
-
getBorderType
-
setBorderType
-
getBorderDashOffset
-
setBorderDashOffset
-
getBorderRadius
- Specified by:
getBorderRadiusin interfaceHasBorder<RichStyle>- 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<RichStyle>- Parameters:
borderRadius- border radius to set in pixels
-
getPadding
- Specified by:
getPaddingin interfaceHasPadding<RichStyle>- 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<RichStyle>- 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<RichStyle>- 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<RichStyle>- Parameters:
top- top padding to setright- right padding to setbottom- bottom padding to setleft- left padding to set
-
getShadowColor
- Specified by:
getShadowColorin interfaceHasShadow<RichStyle>- Returns:
- shadow color
-
getShadowBlur
- Specified by:
getShadowBlurin interfaceHasShadow<RichStyle>- Returns:
- depth of shadow blur
-
setShadowBlur
Description copied from interface:HasShadowSets depth of shadow blur or replaces an existing one.- Specified by:
setShadowBlurin interfaceHasShadow<RichStyle>- Parameters:
shadowBlur- depth of shadow blur
-
getShadowOffsetX
- Specified by:
getShadowOffsetXin interfaceHasShadow<RichStyle>- 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<RichStyle>- Parameters:
shadowOffsetX- offset to set in pixels
-
getShadowOffsetY
- Specified by:
getShadowOffsetYin interfaceHasShadow<RichStyle>- 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<RichStyle>- Parameters:
shadowOffsetY- offset to set in pixels
-
getWidth
-
setWidth
-
getHeight
-
setHeight
-
getTextBorderColor
- Specified by:
getTextBorderColorin interfaceHasText<RichStyle>- Returns:
- stroke color of the text
-
getTextBorderWidth
- Specified by:
getTextBorderWidthin interfaceHasText<RichStyle>- Returns:
- stroke line width of the text in pixels
-
setTextBorderWidth
Description copied from interface:HasTextSets a stroke line width of the text or replaces an existing one.- Specified by:
setTextBorderWidthin interfaceHasText<RichStyle>- Parameters:
textBorderWidth- line width to set in pixels
-
getTextBorderType
- Specified by:
getTextBorderTypein interfaceHasText<RichStyle>- Returns:
- stroke line type of the text
-
setTextBorderType
Description copied from interface:HasTextSets a stroke line type of the text or replaces an existing one.
Possible values are:-
solid -
dashed -
dotted
v5.0.0, it can also be a number. For more flexible customization useJmixChart.setNativeJson(String).- Specified by:
setTextBorderTypein interfaceHasText<RichStyle>- Parameters:
textBorderType- stroke line type to set
-
-
getTextBorderDashOffset
- Specified by:
getTextBorderDashOffsetin interfaceHasText<RichStyle>- Returns:
- offset of the line dash
-
setTextBorderDashOffset
Description copied from interface:HasTextSets offset of the line dash or replaces an existing one.- Specified by:
setTextBorderDashOffsetin interfaceHasText<RichStyle>- Parameters:
textBorderDashOffset- offset of the line dash to set- See Also:
-
getTextShadowColor
- Specified by:
getTextShadowColorin interfaceHasText<RichStyle>- Returns:
- text shadow color
-
getTextShadowBlur
- Specified by:
getTextShadowBlurin interfaceHasText<RichStyle>- Returns:
- shadow blur of the text itself
-
setTextShadowBlur
Description copied from interface:HasTextSets a depth of text shadow blur or replaces an existing one.- Specified by:
setTextShadowBlurin interfaceHasText<RichStyle>- Parameters:
textShadowBlur- depth of text shadow blur
-
getTextShadowOffsetX
- Specified by:
getTextShadowOffsetXin interfaceHasText<RichStyle>- Returns:
- horizontal offset for text shadow in pixels
-
setTextShadowOffsetX
Description copied from interface:HasTextSets horizontal offset for text shadow or replaces an existing one.- Specified by:
setTextShadowOffsetXin interfaceHasText<RichStyle>- Parameters:
textShadowOffsetX- offset to set in pixels
-
getTextShadowOffsetY
- Specified by:
getTextShadowOffsetYin interfaceHasText<RichStyle>- Returns:
- vertical offset for text shadow in pixels
-
setTextShadowOffsetY
Description copied from interface:HasTextSets vertical offset for text shadow or replaces an existing one.- Specified by:
setTextShadowOffsetYin interfaceHasText<RichStyle>- Parameters:
textShadowOffsetY- offset to set in pixels
-
withFontWeight
-
withFontFamily
-
withFontSize
-
withLineHeight
-
withBorderType
-
withBorderDashOffset
-
withWidth
-
withHeight
-