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
Modifier and TypeFieldDescriptionprotected Align
protected Color
protected Color
protected Integer
protected Integer
protected String
protected Integer
protected Color
protected String
protected Integer
protected FontStyle
protected String
protected Integer
protected Integer
protected Padding
protected Integer
protected Color
protected Integer
protected Integer
protected Color
protected Integer
protected String
protected Double
protected Integer
protected Color
protected Integer
protected Integer
protected VerticalAlign
protected Integer
Fields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAlign()
getColor()
getWidth()
void
Sets horizontal alignment of component or replaces an existing one.void
setBackgroundColor
(Color backgroundColor) void
setBorderColor
(Color borderColor) Sets a border color or replaces an existing one.void
setBorderDashOffset
(Integer borderDashOffset) void
setBorderRadius
(Integer borderRadius) Sets a border radius of the text fragment or replaces an existing one.void
setBorderType
(String borderType) void
setBorderWidth
(Integer borderWidth) Sets a border width or replaces an existing one.void
void
setFontFamily
(String fontFamily) void
setFontSize
(Integer fontSize) void
setFontStyle
(FontStyle fontStyle) void
setFontWeight
(String fontWeight) void
void
setLineHeight
(Integer lineHeight) void
setPadding
(Integer padding) Sets padding on each of the four sides or replaces an existing one.void
setPadding
(Integer vertical, Integer horizontal) Sets the top/bottom and left/right paddings or replaces an existing one.void
setPadding
(Integer top, Integer right, Integer bottom, Integer left) Sets each of the four paddings separately.void
setShadowBlur
(Integer shadowBlur) Sets depth of shadow blur or replaces an existing one.void
setShadowColor
(Color shadowColor) Sets a color for shadow or replaces an existing one.void
setShadowOffsetX
(Integer shadowOffsetX) Sets horizontal offset for shadow or replaces an existing one.void
setShadowOffsetY
(Integer shadowOffsetY) Sets vertical offset for shadow or replaces an existing one.void
setTextBorderColor
(Color textBorderColor) Sets a stroke color of the text or replaces an existing one.void
setTextBorderDashOffset
(Integer textBorderDashOffset) Sets offset of the line dash or replaces an existing one.void
setTextBorderType
(String textBorderType) Sets a stroke line type of the text or replaces an existing one.
Possible values are:solid
dashed
dotted
Sincev5.0.0
, it can also be a number.void
setTextBorderWidth
(Double textBorderWidth) Sets a stroke line width of the text or replaces an existing one.void
setTextShadowBlur
(Integer textShadowBlur) Sets a depth of text shadow blur or replaces an existing one.void
setTextShadowColor
(Color textShadowColor) Sets a color of the text shadow or replaces an existing one.void
setTextShadowOffsetX
(Integer textShadowOffsetX) Sets horizontal offset for text shadow or replaces an existing one.void
setTextShadowOffsetY
(Integer textShadowOffsetY) Sets vertical offset for text shadow or replaces an existing one.void
setVerticalAlign
(VerticalAlign verticalAlign) Sets vertical alignment of component or replaces an existing one.void
withBackgroundColor
(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, unmarkDirtyInDepth
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.chartsflowui.kit.component.model.HasAlign
withAlign, withVerticalAlign
Methods inherited from interface io.jmix.chartsflowui.kit.component.model.HasBorder
withBorderColor, withBorderRadius, withBorderWidth
Methods inherited from interface io.jmix.chartsflowui.kit.component.model.shared.HasPadding
withPadding, withPadding, withPadding
Methods inherited from interface io.jmix.chartsflowui.kit.component.model.HasShadow
withShadowBlur, withShadowColor, withShadowOffsetX, withShadowOffsetY
Methods 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:
getVerticalAlign
in interfaceHasAlign<RichStyle>
- Returns:
- vertical alignment of component
-
getLineHeight
-
setLineHeight
-
getBackgroundColor
-
getBorderColor
- Specified by:
getBorderColor
in interfaceHasBorder<RichStyle>
- Returns:
- border color
-
getBorderWidth
- Specified by:
getBorderWidth
in interfaceHasBorder<RichStyle>
- Returns:
- border width in pixels
-
setBorderWidth
Description copied from interface:HasBorder
Sets a border width or replaces an existing one.- Specified by:
setBorderWidth
in interfaceHasBorder<RichStyle>
- Parameters:
borderWidth
- border width in pixels
-
getBorderType
-
setBorderType
-
getBorderDashOffset
-
setBorderDashOffset
-
getBorderRadius
- Specified by:
getBorderRadius
in interfaceHasBorder<RichStyle>
- Returns:
- border radius of the text fragment
-
setBorderRadius
Description copied from interface:HasBorder
Sets a border radius of the text fragment or replaces an existing one.- Specified by:
setBorderRadius
in interfaceHasBorder<RichStyle>
- Parameters:
borderRadius
- border radius to set in pixels
-
getPadding
- Specified by:
getPadding
in interfaceHasPadding<RichStyle>
- Returns:
- space around content
-
setPadding
Description copied from interface:HasPadding
Sets padding on each of the four sides or replaces an existing one. The unit is px.- Specified by:
setPadding
in interfaceHasPadding<RichStyle>
- Parameters:
padding
- padding to set
-
setPadding
Description copied from interface:HasPadding
Sets the top/bottom and left/right paddings or replaces an existing one. The unit is px.- Specified by:
setPadding
in interfaceHasPadding<RichStyle>
- Parameters:
vertical
- top and bottom padding to sethorizontal
- left and right padding to set
-
setPadding
Description copied from interface:HasPadding
Sets each of the four paddings separately. The unit is px.- Specified by:
setPadding
in interfaceHasPadding<RichStyle>
- Parameters:
top
- top padding to setright
- right padding to setbottom
- bottom padding to setleft
- left padding to set
-
getShadowColor
- Specified by:
getShadowColor
in interfaceHasShadow<RichStyle>
- Returns:
- shadow color
-
getShadowBlur
- Specified by:
getShadowBlur
in interfaceHasShadow<RichStyle>
- Returns:
- depth of shadow blur
-
setShadowBlur
Description copied from interface:HasShadow
Sets depth of shadow blur or replaces an existing one.- Specified by:
setShadowBlur
in interfaceHasShadow<RichStyle>
- Parameters:
shadowBlur
- depth of shadow blur
-
getShadowOffsetX
- Specified by:
getShadowOffsetX
in interfaceHasShadow<RichStyle>
- Returns:
- horizontal offset for shadow in pixels
-
setShadowOffsetX
Description copied from interface:HasShadow
Sets horizontal offset for shadow or replaces an existing one.- Specified by:
setShadowOffsetX
in interfaceHasShadow<RichStyle>
- Parameters:
shadowOffsetX
- offset to set in pixels
-
getShadowOffsetY
- Specified by:
getShadowOffsetY
in interfaceHasShadow<RichStyle>
- Returns:
- vertical offset for shadow in pixels
-
setShadowOffsetY
Description copied from interface:HasShadow
Sets vertical offset for shadow or replaces an existing one.- Specified by:
setShadowOffsetY
in interfaceHasShadow<RichStyle>
- Parameters:
shadowOffsetY
- offset to set in pixels
-
getWidth
-
setWidth
-
getHeight
-
setHeight
-
getTextBorderColor
- Specified by:
getTextBorderColor
in interfaceHasText<RichStyle>
- Returns:
- stroke color of the text
-
getTextBorderWidth
- Specified by:
getTextBorderWidth
in interfaceHasText<RichStyle>
- Returns:
- stroke line width of the text in pixels
-
setTextBorderWidth
Description copied from interface:HasText
Sets a stroke line width of the text or replaces an existing one.- Specified by:
setTextBorderWidth
in interfaceHasText<RichStyle>
- Parameters:
textBorderWidth
- line width to set in pixels
-
getTextBorderType
- Specified by:
getTextBorderType
in interfaceHasText<RichStyle>
- Returns:
- stroke line type of the text
-
setTextBorderType
Description copied from interface:HasText
Sets 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:
setTextBorderType
in interfaceHasText<RichStyle>
- Parameters:
textBorderType
- stroke line type to set
-
-
getTextBorderDashOffset
- Specified by:
getTextBorderDashOffset
in interfaceHasText<RichStyle>
- Returns:
- offset of the line dash
-
setTextBorderDashOffset
Description copied from interface:HasText
Sets offset of the line dash or replaces an existing one.- Specified by:
setTextBorderDashOffset
in interfaceHasText<RichStyle>
- Parameters:
textBorderDashOffset
- offset of the line dash to set- See Also:
-
getTextShadowColor
- Specified by:
getTextShadowColor
in interfaceHasText<RichStyle>
- Returns:
- text shadow color
-
getTextShadowBlur
- Specified by:
getTextShadowBlur
in interfaceHasText<RichStyle>
- Returns:
- shadow blur of the text itself
-
setTextShadowBlur
Description copied from interface:HasText
Sets a depth of text shadow blur or replaces an existing one.- Specified by:
setTextShadowBlur
in interfaceHasText<RichStyle>
- Parameters:
textShadowBlur
- depth of text shadow blur
-
getTextShadowOffsetX
- Specified by:
getTextShadowOffsetX
in interfaceHasText<RichStyle>
- Returns:
- horizontal offset for text shadow in pixels
-
setTextShadowOffsetX
Description copied from interface:HasText
Sets horizontal offset for text shadow or replaces an existing one.- Specified by:
setTextShadowOffsetX
in interfaceHasText<RichStyle>
- Parameters:
textShadowOffsetX
- offset to set in pixels
-
getTextShadowOffsetY
- Specified by:
getTextShadowOffsetY
in interfaceHasText<RichStyle>
- Returns:
- vertical offset for text shadow in pixels
-
setTextShadowOffsetY
Description copied from interface:HasText
Sets vertical offset for text shadow or replaces an existing one.- Specified by:
setTextShadowOffsetY
in interfaceHasText<RichStyle>
- Parameters:
textShadowOffsetY
- offset to set in pixels
-
withFontWeight
-
withFontFamily
-
withFontSize
-
withLineHeight
-
withBorderType
-
withBorderDashOffset
-
withWidth
-
withHeight
-