Class Label
java.lang.Object
io.jmix.chartsflowui.kit.component.model.ChartObservableObject
io.jmix.chartsflowui.kit.component.model.shared.AbstractText<Label>
io.jmix.chartsflowui.kit.component.model.shared.Label
- All Implemented Interfaces:
HasShadow<Label>
,HasText<Label>
,HasPadding<Label>
,Serializable
General label for components.
- 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 Color
protected Color
protected Integer
protected String
protected JsFunction
protected Integer
protected Padding
protected Integer
protected Integer
protected Color
protected Integer
protected Integer
protected Boolean
Fields 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, width
Fields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetShow()
void
setBackgroundColor
(Color backgroundColor) void
setBorderColor
(Color borderColor) void
setBorderWidth
(Integer borderWidth) void
setFormatter
(String formatter) void
setFormatterFunction
(JsFunction formatterFunction) void
setFormatterFunction
(String formatterFunction) void
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
setPrecision
(Integer precision) 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
withBackgroundColor
(Color backgroundColor) withBorderColor
(Color borderColor) withBorderWidth
(Integer borderWidth) withFormatter
(String formatter) withFormatterFunction
(JsFunction formatterFunction) withFormatterFunction
(String formatterFunctionCode) withMargin
(Integer margin) withPrecision
(Integer precision) Methods 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, withWidth
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.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
-
show
-
precision
-
formatter
-
formatterFunction
-
margin
-
padding
-
backgroundColor
-
borderColor
-
borderWidth
-
shadowBlur
-
shadowColor
-
shadowOffsetX
-
shadowOffsetY
-
-
Constructor Details
-
Label
public Label()
-
-
Method Details
-
getShow
-
setShow
-
getPrecision
-
setPrecision
-
getFormatter
-
setFormatter
-
getFormatterFunction
-
setFormatterFunction
-
getMargin
-
setMargin
-
getPadding
- Specified by:
getPadding
in interfaceHasPadding<Label>
- 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<Label>
- 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<Label>
- 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<Label>
- Parameters:
top
- top padding to setright
- right padding to setbottom
- bottom padding to setleft
- left padding to set
-
getBackgroundColor
-
getBorderColor
-
getBorderWidth
-
setBorderWidth
-
getShadowBlur
- Specified by:
getShadowBlur
in interfaceHasShadow<Label>
- 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<Label>
- Parameters:
shadowBlur
- depth of shadow blur
-
getShadowColor
- Specified by:
getShadowColor
in interfaceHasShadow<Label>
- Returns:
- shadow color
-
getShadowOffsetX
- Specified by:
getShadowOffsetX
in interfaceHasShadow<Label>
- 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<Label>
- Parameters:
shadowOffsetX
- offset to set in pixels
-
getShadowOffsetY
- Specified by:
getShadowOffsetY
in interfaceHasShadow<Label>
- 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<Label>
- Parameters:
shadowOffsetY
- offset to set in pixels
-
withShow
-
withPrecision
-
withFormatter
-
withFormatterFunction
-
withMargin
-
withBorderWidth
-